/* ==========================================
   MUNICIPALITY SURVEY SYSTEM - MODERN UI
   Modern Glassmorphism Theme (Light Blue + Vibrant Accents)
   ========================================== */

/* ==========================================
   1. CSS CUSTOM PROPERTIES (MODERN COLOR PALETTE)
   ========================================== */
:root {
    /* Modern Primary Blue Palette - Lighter, more contemporary */
    --primary-blue-dark: #1976D2;        /* Modern medium blue for navbar */
    --primary-blue: #2196F3;             /* Bright primary blue */
    --primary-blue-light: #42A5F5;       /* Light blue for hover states */
    --primary-blue-lighter: #64B5F6;     /* Even lighter for backgrounds */
    --primary-blue-ultra-light: #BBDEFB; /* Ultra light for glassmorphism */

    /* Vibrant Accent Colors */
    --accent-purple: #7C4DFF;            /* Modern purple accent */
    --accent-pink: #E91E63;              /* Pink for important elements */
    --accent-orange: #FF6F00;            /* Orange for highlights */
    --accent-cyan: #00BCD4;              /* Cyan for special elements */

    /* Gradient Backgrounds */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-pink: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
    --gradient-orange: linear-gradient(135deg, #FA709A 0%, #FEE140 100%);
    --gradient-cyan: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* Stat Card Modern Colors */
    --stat-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --stat-green: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --stat-orange: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%);
    --stat-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);

    /* Glassmorphism Properties */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --glass-backdrop: blur(12px);

    /* Neutral Backgrounds */
    --bg-light: #F8F9FA;                 /* Very light grey page background */
    --bg-lighter: #FFFFFF;               /* White background */
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    /* Text Colors */
    --text-dark: #2C3E50;                /* Dark for headings */
    --text-body: #5A6C7D;                /* Medium grey for body */
    --text-muted: #95A5A6;               /* Light grey for secondary */
    --text-white: #FFFFFF;               /* White text */

    /* Border Colors */
    --border-light: rgba(0, 0, 0, 0.08); /* Very light border */
    --border-medium: rgba(0, 0, 0, 0.12);/* Medium border */

    /* Modern Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.5);

    /* Status Colors */
    --status-draft: #95A5A6;
    --status-submitted: #2196F3;
    --status-verified: #4CAF50;
    --status-rejected: #E91E63;

    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ==========================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================== */
html {
    font-size: 14px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Devanagari', sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    padding-bottom: 0; /* Remove bottom padding since footer is now relative */
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper to push footer down */
main {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

/* Improved focus states */
.btn:focus,
.btn:active:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    border-color: var(--primary-blue);
}

/* ==========================================
   3. TYPOGRAPHY SCALE
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.display-4 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* ==========================================
   4. MODERN NAVBAR (Glassmorphism)
   ========================================== */
.navbar-enhanced {
    background: rgba(33, 150, 243, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-enhanced .navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-enhanced .navbar-brand:hover {
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Remove the emoji icon, we'll use a real logo if provided */
.navbar-enhanced .navbar-brand::before {
    content: '';
}

.navbar-enhanced .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.navbar-enhanced .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar-enhanced .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(33, 150, 243, 0.1);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

.navbar-enhanced .dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    margin: 0.25rem 0.5rem;
}

.navbar-enhanced .dropdown-item:hover {
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Language Switcher - Modern */
.navbar-enhanced .language-switch {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.75rem;
    margin-right: 1rem;
}

.navbar-enhanced .language-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.navbar-enhanced .language-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.navbar-enhanced .language-link.active {
    color: #fff;
    font-weight: 700;
    background: var(--accent-purple);
    box-shadow: 0 2px 8px rgba(124, 77, 255, 0.4);
}

/* ==========================================
   5. MODERN FOOTER (Fixed Overlap Issue)
   ========================================== */
.footer-enhanced {
    flex-shrink: 0; /* Prevent footer from shrinking */
    width: 100%;
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: rgba(255, 255, 255, 0.95);
    border-top: 3px solid var(--accent-purple);
    padding: 0;
    margin-top: auto; /* Push footer to bottom */
    position: relative; /* Changed from absolute to relative */
}

.footer-enhanced .footer-top {
    padding: 2.5rem 0 2rem;
    background: rgba(0, 0, 0, 0.1);
}

.footer-enhanced .footer-section h6 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-enhanced .footer-section p,
.footer-enhanced .footer-section small {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-enhanced .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-enhanced .footer-links li {
    margin-bottom: 0.75rem;
}

.footer-enhanced .footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-enhanced .footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-enhanced .footer-links a::before {
    content: "›";
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.footer-enhanced .footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;
    text-align: center;
}

.footer-enhanced .footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ==========================================
   6. GLASSMORPHISM CARDS
   ========================================== */
.card-enhanced {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card-enhanced:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: rgba(33, 150, 243, 0.3);
}

.card-enhanced .card-header {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(25, 118, 210, 0.05) 100%);
    border-bottom: 2px solid rgba(33, 150, 243, 0.2);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.card-enhanced .card-body {
    padding: 1.5rem;
}

.card-compact .card-body {
    padding: 1.25rem;
}

/* ==========================================
   7. MODERN STAT CARDS (Glassmorphism + Gradients)
   ========================================== */
.stat-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--spacing-lg);
}

/* Gradient overlay for stat cards */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.9;
    z-index: 0;
}

.stat-card * {
    position: relative;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Stat card color variants */
.stat-card.stat-blue::before {
    background: var(--stat-blue);
}

.stat-card.stat-teal::before {
    background: var(--stat-green);
}

.stat-card.stat-cyan::before {
    background: var(--stat-orange);
}

.stat-card.stat-indigo::before {
    background: var(--stat-purple);
}

.stat-card .card-body {
    padding: 1.75rem 2rem;
}

.stat-card .stat-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    opacity: 0.2;
}

.stat-card .stat-title {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-value {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.stat-card .card-footer {
    background: rgba(0, 0, 0, 0.15);
    border: none;
    padding: 1rem 2rem;
}

.stat-card .card-footer a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card .card-footer a:hover {
    opacity: 1;
    transform: translateX(4px);
}

/* ==========================================
   8. MODERN BUTTONS
   ========================================== */
.btn-primary-enhanced {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

.btn-primary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.btn-primary-enhanced:active {
    transform: translateY(0);
}

.btn-primary-enhanced.btn-lg {
    padding: 1.1rem 2.75rem;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-accent-red {
    background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
    transition: all 0.3s ease;
}

.btn-accent-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.5);
    color: #fff;
}

.btn-outline-primary-enhanced {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.btn-outline-primary-enhanced:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-sm-enhanced {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
}

/* ==========================================
   9. MODERN TABLES
   ========================================== */
.table-enhanced {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
}

.table-enhanced thead th {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1.25rem 1rem;
    border: none;
}

.table-enhanced thead th:first-child {
    border-top-left-radius: var(--radius-md);
}

.table-enhanced thead th:last-child {
    border-top-right-radius: var(--radius-md);
}

.table-enhanced tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-body);
    font-size: 0.95rem;
}

.table-enhanced tbody tr {
    transition: all 0.2s ease;
}

.table-enhanced tbody tr:hover {
    background: rgba(33, 150, 243, 0.05);
    transform: scale(1.01);
}

.table-compact tbody td {
    padding: 0.75rem 1rem;
}

/* ==========================================
   10. MODERN STATUS BADGES
   ========================================== */
.badge-enhanced {
    padding: 0.5em 1em;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-draft {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: #fff;
}

.badge-submitted {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.badge-verified {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
}

.badge-rejected {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.badge-role {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.badge-role.badge-admin {
    background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
}

.badge-role.badge-enumerator {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ==========================================
   11. LANDING PAGE HERO
   ========================================== */
.hero-section {
    background: var(--gradient-primary);
    color: #fff;
    padding: 4rem 0 5rem;
    margin: -1rem -15px 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-pink) 50%, var(--accent-purple) 100%);
}

.hero-section h1 {
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
}

/* Feature cards on landing page */
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-card .card-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card .card-text {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    display: block;
}

/* ==========================================
   12. DASHBOARD SPECIFIC
   ========================================== */
.dashboard-container {
    padding: 2rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.dashboard-header h2 {
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
}

.status-overview {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
}

.status-item {
    text-align: center;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    flex: 1;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.status-item .status-count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.status-item.draft .status-count {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-item.submitted .status-count {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-item.verified .status-count {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-item .status-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ==========================================
   13. PAGE HEADER
   ========================================== */
.page-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.page-header-enhanced h2 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 700;
}

/* ==========================================
   14. GRID TOOLBAR
   ========================================== */
.grid-toolbar-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.grid-toolbar-enhanced .grid-info {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* ==========================================
   15. UTILITY CLASSES
   ========================================== */
.py-compact { padding-top: var(--spacing-lg) !important; padding-bottom: var(--spacing-lg) !important; }
.px-compact { padding-left: var(--spacing-lg) !important; padding-right: var(--spacing-lg) !important; }
.my-compact { margin-top: var(--spacing-lg) !important; margin-bottom: var(--spacing-lg) !important; }

.text-primary-blue { color: var(--primary-blue) !important; }
.bg-light-enhanced { background-color: var(--bg-light) !important; }

.icon-sm { font-size: 1rem; }
.icon-md { font-size: 1.5rem; }
.icon-lg { font-size: 2rem; }
.icon-xl { font-size: 3rem; }

/* ==========================================
   16. ANIMATIONS
   ========================================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner-enhanced {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 0.3rem solid var(--primary-blue);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-rotate 0.75s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

/* ==========================================
   17. RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 991px) {
    .stat-card {
        margin-bottom: var(--spacing-md);
    }

    .hero-section {
        padding: 3rem 0 4rem;
    }

    .dashboard-container {
        padding: 1.5rem 0;
    }

    .status-overview {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .stat-card .stat-value {
        font-size: 2.25rem;
    }

    .hero-section {
        padding: 2rem 0 3rem;
    }

    .feature-card {
        padding: 1.5rem;
        margin-bottom: var(--spacing-md);
    }

    .page-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .grid-toolbar-enhanced {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .footer-enhanced .footer-section {
        margin-bottom: 2rem;
    }
}

/* ==========================================
   18. PRINT STYLES
   ========================================== */
@media print {
    .navbar-enhanced,
    .footer-enhanced,
    .btn,
    .dropdown,
    .language-switch {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card-enhanced {
        box-shadow: none;
        border: 1px solid #000;
    }
}
