:root {
    --primary-color: #FF6600; /* Saffron */
    --secondary-color: #138808; /* Green */
    --accent-color: #1a365d; /* Modern Navy Blue */
    --light-bg: #F7FAFC;
    --border-color: #E2E8F0;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Container improvements for elegant spacing */
.container,
.container-fluid {
    max-width: 1400px; /* Limit maximum width */
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1200px) {
    .container,
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Add elegant spacing to main sections */
.gov-header .container,
.emblem-section .container,
.navbar .container {
    margin-bottom: 0;
}

/* Section spacing improvements */
.gov-header {
    margin-bottom: 0.5rem;
}

.emblem-section {
    margin-bottom: 0.5rem;
}

.navbar-gov {
    margin-bottom: 2rem;
}

/* Modern Header */
.gov-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

    .gov-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        pointer-events: none;
    }

/* Modern Emblem Section */
.emblem-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    border-radius: 0 0 12px 12px;
}

    .emblem-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    }

    .emblem-section h1 {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 0.5rem;
    }

    .emblem-section h2 {
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 0.25rem;
    }

/* Header User Avatar */
.header-user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Modern User Profile */
.user-profile-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    overflow: hidden;
    z-index: 1065 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: translateY(0.5rem);
}

.user-profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
}

    .user-profile-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    }

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 16px;
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
    margin-left: 8px;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.notification-badge {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: var(--shadow-md);
    border: 2px solid white;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Modern Buttons */
.btn-gov-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

    .btn-gov-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        background: linear-gradient(135deg, #e55a00 0%, var(--primary-color) 100%);
    }

    .btn-gov-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn-gov-primary:hover::before {
        left: 100%;
    }

.btn-gov-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f6b06 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .btn-gov-secondary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-gov-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .btn-gov-outline::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
        transition: var(--transition);
        z-index: -1;
    }

    .btn-gov-outline:hover {
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

        .btn-gov-outline:hover::before {
            left: 0;
        }

/* Modern Navigation */
.navbar-gov {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1040;
    margin: 0;
    border-radius: 12px;
}

.navbar-brand-gov {
    color: var(--accent-color) !important;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

    .navbar-brand-gov:hover {
        color: var(--primary-color) !important;
        transform: translateX(2px);
    }

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: var(--transition);
    position: relative;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
        background: rgba(255, 102, 0, 0.05);
        transform: translateY(-1px);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background: var(--primary-color);
        transition: var(--transition);
    }
#navbarNav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Modern Cards and Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 0.5rem;
    z-index: 1060 !important;
    position: absolute !important;
    top: 100% !important;
    transform: translateY(0.5rem) !important;
}

.dropdown-item {
    border-radius: 8px;
    margin: 0.125rem 0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-weight: 500;
}

    .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(19, 136, 8, 0.1) 100%);
        color: var(--primary-color);
        transform: translateX(4px);
    }

    .dropdown-item.text-danger:hover {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
        color: #dc2626;
    }

    /* Logout button styling to match dropdown items */
    .dropdown-item[type="submit"] {
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        font-family: inherit;
        font-size: inherit;
        cursor: pointer;
    }

/* Modern Footer */
footer {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2d3748 100%);
    color: white;
    position: relative;
    margin-top: 1rem;
}

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" patternUnits="userSpaceOnUse" width="10" height="10"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-opacity="0.03" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    }

/* Header container fixes for dropdown visibility */
.gov-header,
.container-fluid {
    overflow: visible !important;
}

.navbar-nav,
.nav-item,
.dropdown {
    position: static;
    overflow: visible !important;
}

    .dropdown.show .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0.5rem);
        transition: all 0.3s ease;
    }

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0 0.5rem;
    }

    .gov-header,
    .emblem-section,
    .navbar-gov,
    footer {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .user-profile-dropdown {
        min-width: 280px;
    }

    .emblem-section h1 {
        font-size: 1.5rem;
    }

    .emblem-section h2 {
        font-size: 1rem;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-gov-primary, .btn-gov-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Main content spacing */
main.main-content {
    min-height: calc(100vh - 400px);
}

@media (max-width: 768px) {
    main.main-content {
        margin: 0 0.5rem;
    }

    .content-container {
        padding: 0 0.5rem;
    }
}

/* Loading Animation */
.loading-spinner {
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
        /* Enhanced Accessibility */
  .btn:focus, .nav-link:focus, .dropdown-item:focus

{
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Transitions */
.container,
.row,
.col-md-2,
.col-md-4,
.col-md-6,
.col-md-8 {
    transition: var(--transition);
}

/* Content area styling for better visual hierarchy */
.content-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
        margin: 0.5rem 0;
    }
}
.hover-lift {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.input-focused {
    transform: scale(1.02);
    /*box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);*/
}

.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.toast {
    backdrop-filter: blur(10px);
}

/* Modern form styles */
.form-control:focus,
.form-select:focus {
    /*border-color: var(--primary-color);*/
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

    .form-control:hover,
    .form-select:hover {
        border-color: var(--primary-color);
    }

/* Enhanced table styles */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

    .table th {
        background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
        border: none;
        font-weight: 600;
        color: var(--text-primary);
    }

    .table td {
        border-color: var(--border-color);
        vertical-align: middle;
    }

    .table tbody tr:hover {
        background-color: rgba(255, 102, 0, 0.05);
    }

/* Modern alert styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(19, 136, 8, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--secondary-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--primary-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
}

.alert-info {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--accent-color);
}
.accessibility-toolbar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    padding: 0.75rem;
    z-index: 1045;
    box-shadow: var(--shadow-md);
}
/* Landing Page Specific Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.08), rgba(19, 136, 8, 0.08));
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" patternUnits="userSpaceOnUse" width="50" height="50"><circle cx="25" cy="25" r="1" fill="rgba(255, 102, 0, 0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.stats-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .step-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
        transition: width 0.3s ease;
    }

    .step-card:hover::before {
        width: 100%;
        opacity: 0.05;
    }

    .step-card:hover {
        transform: translateX(10px);
        box-shadow: var(--shadow-lg);
    }

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2d3748 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" patternUnits="userSpaceOnUse" width="30" height="30"><path d="M 30 0 L 0 0 0 30" fill="none" stroke="white" stroke-opacity="0.05" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
    }

.cta-content {
    position: relative;
    z-index: 2;
}


.language-toggle {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

    .language-toggle:hover {
        background: #0f6b06;
        transform: scale(1.05);
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stats-section {
        padding: 2rem;
    }

    .accessibility-toolbar {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 1rem 0;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }

    .step-card {
        margin-bottom: 1.5rem;
    }
}
.high-contrast {
    /*filter: contrast(200%);*/
    background: white !important;
    color: black !important;
}

    .high-contrast * {
        background: white !important;
        color: black !important;
        border-color: black !important;
        -webkit-text-fill-color: black !important;
    }