html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #f8f9fa;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

.card-footer {
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.table thead th {
    border-bottom-width: 2px;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

.badge {
    padding: 8px 12px;
    font-weight: 500;
    border-radius: 6px;
}

.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-sm {
    padding: 5px 12px;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
}

    .form-control:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    }

.alert {
    border-radius: 10px;
    border: none;
}

.validation-summary-errors {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

/* Dashboard Cards */
.card.text-white .card-footer {
    background-color: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.2);
}

    .card.text-white .card-footer a {
        color: white;
        text-decoration: none;
    }

        .card.text-white .card-footer a:hover {
            text-decoration: underline;
        }

/* Status Indicators */
.bg-draft {
    background-color: #ffc107;
    color: #212529;
}

.bg-submitted {
    background-color: #28a745;
    color: white;
}

.bg-pending {
    background-color: #17a2b8;
    color: white;
}

/* Responsive Tables */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
