        * {
            font-family: 'Inter', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        /* Modern Glass Morphism */
        .glass-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 24px;
            box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
        }
        
        .glass-nav {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.1);
        }
        
        /* Modern Button Styles */
        .nav-btn {
            color: #94a3b8;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        
        .nav-btn.active {
            color: #6366f1;
            transform: translateY(-8px);
        }
        
        .nav-btn.active i {
            text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
        }
        
        .nav-btn.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            border-radius: 3px;
        }
        
        /* Modern Input Styles */
        .modern-input {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 12px 16px;
            transition: all 0.2s ease;
            font-size: 14px;
        }
        
        .modern-input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }
        
        /* Modern Button */
        .modern-btn {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border: none;
            border-radius: 16px;
            padding: 14px 24px;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.3);
        }
        
        .modern-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.4);
        }
        
        .modern-btn:active {
            transform: translateY(0);
        }
        
        /* Card Hover Effects */
        .hover-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .hover-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
        }
        
        /* Animated Splash Screen */
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        .splash-logo {
            animation: pulse 2s ease-in-out infinite;
        }
        
        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 10px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            border-radius: 10px;
        }
        
        /* Table Styling */
        .modern-table {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .modern-table th {
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: white;
            font-weight: 600;
            padding: 12px;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .modern-table td {
            padding: 12px;
            border-bottom: 1px solid #f1f5f9;
        }

        .admin-desktop-command-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 14px;
        }

        .admin-command-card {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 18px;
            padding: 18px;
            box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.45);
            min-width: 0;
        }

        .admin-command-card-primary {
            background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 58%);
            border-color: #bbf7d0;
        }

        .admin-command-label {
            color: #64748b;
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .admin-command-value {
            color: #0f172a;
            font-size: 28px;
            font-weight: 950;
            line-height: 1.05;
            margin-top: 8px;
        }

        .admin-command-note {
            color: #64748b;
            font-size: 12px;
            font-weight: 700;
            margin-top: 6px;
        }

        .admin-command-icon {
            align-items: center;
            border-radius: 14px;
            display: inline-flex;
            height: 42px;
            justify-content: center;
            min-width: 42px;
            width: 42px;
        }

        .admin-attendance-card-body {
            align-items: center;
            display: grid;
            grid-template-columns: 96px minmax(0, 1fr);
            gap: 16px;
        }

        .admin-attendance-donut {
            align-items: center;
            aspect-ratio: 1;
            border-radius: 999px;
            display: grid;
            justify-items: center;
            min-width: 88px;
            position: relative;
            transform: perspective(520px) rotateX(16deg);
            transform-style: preserve-3d;
            width: 96px;
            box-shadow: 0 18px 24px -14px rgba(15, 23, 42, 0.55), inset 0 -10px 18px rgba(15, 23, 42, 0.18), inset 0 8px 14px rgba(255, 255, 255, 0.42);
        }

        .admin-attendance-donut.staff {
            background: conic-gradient(#10b981 0 var(--present, 0deg), #ef4444 var(--present, 0deg) 360deg);
        }

        .admin-attendance-donut.students {
            background: conic-gradient(
                #10b981 0 var(--present, 0deg),
                #ef4444 var(--present, 0deg) calc(var(--present, 0deg) + var(--absent, 0deg)),
                #f59e0b calc(var(--present, 0deg) + var(--absent, 0deg)) 360deg
            );
        }

        .admin-attendance-donut::after {
            background: #fff;
            border-radius: inherit;
            box-shadow: inset 0 0 0 1px #e2e8f0;
            content: '';
            inset: 13px;
            position: absolute;
        }

        .admin-attendance-donut::before {
            background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 42%, rgba(15,23,42,.15));
            border-radius: inherit;
            content: '';
            inset: 0;
            pointer-events: none;
            position: absolute;
            z-index: 1;
        }

        .admin-attendance-donut > div {
            position: relative;
            text-align: center;
            transform: rotateX(-16deg);
            z-index: 2;
        }

        .admin-attendance-donut strong {
            color: #0f172a;
            display: block;
            font-size: 18px;
            font-weight: 950;
            line-height: 1;
        }

        .admin-attendance-donut span {
            color: #64748b;
            display: block;
            font-size: 9px;
            font-weight: 900;
            margin-top: 3px;
            text-transform: uppercase;
        }

        .admin-attendance-metrics {
            display: grid;
            gap: 10px;
        }

        .admin-attendance-metrics.three {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .admin-attendance-metrics p:last-child {
            color: #94a3b8;
            font-size: 9px;
            font-weight: 900;
            text-transform: uppercase;
        }

        .class-fee-stack-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 14px;
        }

        .class-fee-stack-legend span {
            align-items: center;
            color: #64748b;
            display: inline-flex;
            font-size: 11px;
            font-weight: 900;
            gap: 6px;
            text-transform: uppercase;
        }

        .class-fee-stack-legend i {
            border-radius: 4px;
            display: inline-block;
            height: 10px;
            width: 10px;
        }

        .class-fee-stack-chart {
            display: grid;
            min-height: 260px;
        }

        .class-fee-svg-wrap {
            overflow: hidden;
            padding: 2px 2px 10px;
            width: 100%;
        }

        .class-fee-svg-chart {
            display: block;
            height: auto;
            min-width: 0;
            width: 100%;
        }

        .class-fee-svg-grid {
            fill: none;
            stroke: rgba(148, 163, 184, 0.42);
            stroke-dasharray: 4 5;
            stroke-width: 1;
        }

        .class-fee-svg-axis-line {
            stroke: #94a3b8;
            stroke-width: 1.25;
        }

        .class-fee-svg-axis {
            fill: #64748b;
            font-size: 11px;
            font-weight: 800;
        }

        .class-fee-svg-class {
            fill: #334155;
            font-size: 13px;
            font-weight: 900;
        }

        .class-fee-svg-total {
            fill: #0f172a;
            font-size: 10px;
            font-weight: 900;
        }

        .class-fee-svg-column-track {
            fill: rgba(226, 232, 240, 0.72);
        }

        .class-fee-svg-column {
            transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
        }

        .class-fee-svg-column:hover {
            filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.16));
            opacity: 0.92;
        }

        .class-fee-svg-legend text {
            fill: #334155;
            font-size: 12px;
            font-weight: 900;
        }

        .class-fee-combined-plot {
            display: grid;
            grid-template-columns: 54px 1fr;
            gap: 10px;
            min-height: 240px;
            width: 100%;
        }

        .class-fee-y-axis {
            color: #64748b;
            display: flex;
            flex-direction: column;
            font-size: 10px;
            font-weight: 900;
            justify-content: space-between;
            padding: 0 0 24px;
            text-align: right;
        }

        .class-fee-plot-area {
            border-bottom: 2px solid #94a3b8;
            border-left: 2px solid #94a3b8;
            min-height: 220px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 0 10px 0;
            position: relative;
        }

        .class-fee-grid-lines {
            inset: 0 10px 24px 0;
            pointer-events: none;
            position: absolute;
            z-index: 0;
        }

        .class-fee-grid-lines span {
            border-top: 1px solid rgba(100, 116, 139, 0.35);
            left: 0;
            position: absolute;
            right: 0;
        }

        .class-fee-grid-lines span:nth-child(1) { top: 0; }
        .class-fee-grid-lines span:nth-child(2) { top: 25%; }
        .class-fee-grid-lines span:nth-child(3) { top: 50%; }
        .class-fee-grid-lines span:nth-child(4) { top: 75%; }
        .class-fee-grid-lines span:nth-child(5) { top: 100%; }

        .class-fee-columns {
            align-items: end;
            display: grid;
            gap: 14px;
            grid-auto-columns: minmax(44px, 1fr);
            grid-auto-flow: column;
            height: 220px;
            min-width: 620px;
            position: relative;
            z-index: 1;
        }

        .class-fee-stack-row {
            align-items: center;
            display: grid;
            gap: 7px;
            grid-template-rows: 1fr 20px;
            height: 100%;
            justify-items: center;
            min-width: 0;
        }

        .class-fee-stack-label,
        .class-fee-stack-total {
            color: #64748b;
            font-size: 10px;
            font-weight: 900;
            line-height: 1;
            text-align: center;
        }

        .class-fee-stack-bars {
            align-items: stretch;
            background: transparent;
            border: 0;
            border-radius: 8px 8px 2px 2px;
            box-shadow: 8px 0 0 rgba(15, 23, 42, 0.25);
            display: flex;
            flex-direction: column-reverse;
            gap: 0;
            height: 176px;
            justify-content: flex-start;
            overflow: hidden;
            padding: 0;
            width: 28px;
        }

        .class-fee-stack-bars span {
            border-radius: 0;
            display: block;
            min-height: 0;
            width: 100%;
            box-shadow: inset -5px 0 9px rgba(15,23,42,.16), inset 3px 0 7px rgba(255,255,255,.25);
            transition: height 0.55s ease;
        }

        .class-fee-stack-bars .paid,
        .class-fee-stack-legend .paid {
            background: linear-gradient(180deg, #34d399, #059669);
        }

        .class-fee-stack-bars .unpaid,
        .class-fee-stack-legend .unpaid {
            background: linear-gradient(180deg, #fb7185, #dc2626);
        }

        .class-fee-stack-bars .concession,
        .class-fee-stack-legend .concession {
            background: linear-gradient(180deg, #60a5fa, #2563eb);
        }

        .admin-recent-receipt-row,
        .admin-home-search-row {
            align-items: center;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            display: flex;
            gap: 12px;
            justify-content: space-between;
            padding: 10px 12px;
            text-align: left;
            width: 100%;
        }

        .admin-home-search-results {
            display: grid;
            gap: 8px;
            margin-top: 10px;
            max-height: 260px;
            overflow-y: auto;
            padding-right: 2px;
        }

        .admin-hub-page .admin-welcome-card {
            min-height: 150px;
        }

        .admin-home:not(.admin-hub-page) > .admin-action-groups {
            display: none;
        }

        @media (min-width: 1024px) {
            .admin-home {
                max-width: 1440px;
                margin: 0 auto;
            }

            .admin-desktop-command-grid {
                grid-column: 1 / -1;
                width: 100%;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                align-items: stretch;
            }

            .admin-command-wide {
                grid-column: span 3;
            }
        }

        @media (min-width: 1280px) {
            .admin-desktop-command-grid {
                grid-template-columns: repeat(6, minmax(0, 1fr));
            }

            .admin-command-card:not(.admin-command-wide) {
                grid-column: span 2;
            }

            .admin-command-wide {
                grid-column: span 3;
            }
        }
        
        /* Language specific fonts */
        .lang-en {
            font-family: 'Inter', sans-serif;
        }
        
        .lang-mr {
            font-family: 'Kokila', 'Noto Sans Devanagari', sans-serif;
        }
        
        .lang-ur {
            font-family: 'Noto Nastaliq Urdu', serif;
            direction: rtl;
            text-align: right;
        }
        
        /* Notification Badge */
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -8px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            border-radius: 20px;
            padding: 2px 6px;
            font-size: 9px;
            font-weight: bold;
        }
        
        /* Gradient Text */
        .gradient-text {
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        /* Loading Animation */
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e2e8f0;
            border-top: 3px solid #6366f1;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Attendance Toggle Switch */
        .attendance-switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }
        
        .attendance-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .attendance-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #cbd5e1;
            transition: 0.3s;
            border-radius: 24px;
        }
        
        .attendance-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }
        
        input:checked + .attendance-slider {
            background: linear-gradient(135deg, #22c55e, #16a34a);
        }
        
        input:checked + .attendance-slider:before {
            transform: translateX(20px);
        }
        
        /* Floating Action Button */
        .fab {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 56px;
            height: 56px;
            min-width: 56px;
            min-height: 56px;
            padding: 0;
            border-radius: 28px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: white;
            display: grid;
            place-items: center;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 60;
            line-height: 1;
            text-align: center;
            overflow: hidden;
        }

        .fab i {
            display: block;
            line-height: 1;
            margin: 0;
            width: 1em;
            height: 1em;
            text-align: center;
        }
        
        .fab:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
        }

        .admin-quick-arrow,
        .admin-action-count,
        .admin-eyebrow,
        .admin-welcome-meta {
            display: none;
        }
 /* Dark mode styles */
body.dark {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
}

body.dark .bg-white {
    background-color: #1f2937 !important;
    color: #f3f4f6;
}

body.dark .text-gray-800 {
    color: #f3f4f6;
}

body.dark .text-gray-600 {
    color: #9ca3af;
}

body.dark .border-gray-100 {
    border-color: #374151;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hover-card {
    animation: fadeIn 0.3s ease-out;
} 

/* Directory management tables */
.directory-table-scroll {
    position: relative;
    scrollbar-width: auto;
    scrollbar-color: #2563eb #e2e8f0;
}

.directory-table-scroll::-webkit-scrollbar {
    width: 12px;
    height: 14px;
}

.directory-table-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
}

.directory-table-scroll::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 999px;
    border: 3px solid #e2e8f0;
}

.directory-wide-table {
    min-width: max(920px, max-content);
    border-collapse: separate;
    border-spacing: 0;
}

.directory-sticky-left {
    position: sticky;
    left: 0;
    z-index: 4;
    box-shadow: 10px 0 18px -18px rgba(15, 23, 42, 0.8);
}

.directory-sticky-photo {
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 64px;
    width: 64px;
    box-shadow: 10px 0 18px -18px rgba(15, 23, 42, 0.8);
}

.directory-sticky-after-photo {
    position: sticky;
    left: 64px;
    z-index: 4;
    box-shadow: 10px 0 18px -18px rgba(15, 23, 42, 0.8);
}

.directory-wide-table thead .directory-sticky-left {
    z-index: 6;
}

.directory-wide-table thead .directory-sticky-photo {
    z-index: 7;
}

.directory-wide-table thead .directory-sticky-after-photo {
    z-index: 6;
}

.directory-photo-thumb {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ecfeff, #f5f3ff);
    border: 1px solid #dbeafe;
    color: #0e7490;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.directory-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directory-pagination {
    position: sticky;
    bottom: 0;
    z-index: 8;
}

.directory-page-btn,
.directory-page-ellipsis {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.directory-page-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.directory-page-btn:hover:not(:disabled) {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.directory-page-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.directory-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.directory-page-ellipsis {
    color: #94a3b8;
}

.admin-student-photo-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    text-align: left;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-student-photo-stat:hover,
.admin-student-photo-stat.active {
    transform: translateY(-2px);
    border-color: #fda4af;
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.14);
}

.admin-student-photo-stat span,
.admin-student-photo-stat small {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.admin-student-photo-stat strong {
    display: block;
    margin: 4px 0;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.admin-student-photo-stat.photographed.active,
.admin-student-photo-stat.photographed:hover {
    border-color: #86efac;
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.14);
}

.admin-student-photo-stat.pending.active,
.admin-student-photo-stat.pending:hover {
    border-color: #fcd34d;
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.16);
}

.admin-student-photo-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-student-photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.admin-student-photo-thumb {
    width: 72px;
    height: 86px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff1f2, #eff6ff);
    border: 1px solid #fecdd3;
    color: #be123c;
    font-size: 15px;
    font-weight: 900;
    flex: 0 0 auto;
}

.admin-student-photo-thumb.empty {
    background: repeating-linear-gradient(135deg, #fff7ed, #fff7ed 8px, #ffedd5 8px, #ffedd5 16px);
}

.admin-student-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-student-photo-badge {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-student-photo-badge.photographed {
    background: #dcfce7;
    color: #15803d;
}

.admin-student-photo-badge.pending {
    background: #fef3c7;
    color: #b45309;
}

/* Desktop admin shell */
.admin-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    body {
        background: #eef2f7;
        color: #0f172a;
    }

    #main-app {
        min-height: 100vh;
        padding-bottom: 0 !important;
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0) 280px),
            #eef2f7;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        display: flex;
        width: 264px;
        flex-direction: column;
        padding: 22px 18px;
        background: #0f172a;
        color: #e5e7eb;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 18px 0 45px rgba(15, 23, 42, 0.16);
        z-index: 45;
    }

    .admin-sidebar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 8px 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 18px;
    }

    .admin-sidebar-logo {
        width: 46px;
        height: 46px;
        object-fit: contain;
        border-radius: 12px;
        background: #fff;
        padding: 4px;
    }

    .admin-sidebar-title {
        font-size: 16px;
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: 0;
    }

    .admin-sidebar-subtitle {
        margin-top: 2px;
        font-size: 11px;
        color: #94a3b8;
        font-weight: 700;
        text-transform: uppercase;
    }

    .admin-sidebar-nav {
        display: grid;
        gap: 6px;
    }

    .admin-sidebar-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 10px;
        color: #cbd5e1;
        font-size: 14px;
        font-weight: 800;
        text-align: left;
    }

    .admin-sidebar-btn i {
        width: 20px;
        text-align: center;
        font-size: 16px;
    }

    .admin-sidebar-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .admin-sidebar-btn.active {
        transform: none;
        background: #2563eb;
        color: #fff;
        box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
    }

    .admin-sidebar-btn.active::after {
        display: none;
    }

    .app-header {
        margin-left: 264px;
        padding: 16px 32px !important;
        background: rgba(255, 255, 255, 0.92) !important;
        color: #0f172a !important;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
        backdrop-filter: blur(18px);
    }

    .app-header img {
        background: #fff !important;
        border: 1px solid #e2e8f0;
    }

    .app-header #user-name-display,
    .app-header .text-white\/80 {
        color: #64748b !important;
    }

    .app-header button {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        color: #334155;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .mobile-bottom-nav {
        display: none !important;
    }

    .admin-content {
        margin-left: 264px;
        padding: 30px 34px 54px !important;
        max-width: 1520px;
    }

    .admin-home {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 20px;
        align-items: stretch;
    }

    .admin-welcome-card {
        grid-column: span 6;
        min-height: 188px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        background:
            linear-gradient(135deg, rgba(14, 116, 144, 0.96), rgba(15, 23, 42, 0.98)) !important;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 18px !important;
        box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18) !important;
    }

    .admin-welcome-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 100%),
            linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%);
        background-size: 34px 34px;
        opacity: 0.22;
        pointer-events: none;
    }

    .admin-welcome-card > * {
        position: relative;
        z-index: 1;
    }

    .admin-eyebrow {
        display: block;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0;
    }

    .admin-welcome-card h2 {
        font-size: 30px !important;
        line-height: 1.05;
        letter-spacing: 0;
    }

    .admin-welcome-meta {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .admin-welcome-meta span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 32px;
        padding: 0 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: rgba(255, 255, 255, 0.9);
        font-size: 12px;
        font-weight: 800;
    }

    .admin-summary-card {
        min-height: 188px;
        border-radius: 18px !important;
        border-color: #e2e8f0 !important;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
    }

    .admin-summary-card::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 3px;
        background: #2563eb;
    }

    .admin-summary-students::after {
        background: #16a34a;
    }

    .admin-summary-card h3 {
        color: #64748b !important;
        letter-spacing: 0;
    }

    .admin-summary-card p[id] {
        letter-spacing: 0;
    }

    .admin-summary-staff,
    .admin-summary-students {
        grid-column: span 3;
    }

    .admin-summary-card:hover,
    .admin-action-group:hover {
        border-color: #cbd5e1 !important;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1) !important;
    }

    .admin-action-groups {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .admin-hub-page .admin-welcome-card {
        grid-column: 1 / -1;
    }

    .admin-hub-page .admin-action-groups {
        grid-column: 1 / -1;
    }

    .admin-action-group {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        padding: 18px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .admin-action-group-header {
        padding-bottom: 10px;
        border-bottom: 1px solid #f1f5f9;
    }

    .admin-action-group-icon {
        border-radius: 10px !important;
    }

    .admin-action-group h3 {
        color: #1e293b !important;
        letter-spacing: 0;
        font-size: 12px !important;
    }

    .admin-action-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        min-width: 26px;
        height: 24px;
        border-radius: 8px;
        background: #f8fafc;
        color: #64748b;
        border: 1px solid #e2e8f0;
        font-size: 11px;
        font-weight: 900;
    }

    .admin-action-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 9px !important;
        text-align: left !important;
    }

    .admin-quick-action {
        min-height: 58px;
        flex-direction: row !important;
        justify-content: flex-start;
        position: relative;
        padding: 9px 34px 9px 9px !important;
        border: 1px solid #f1f5f9;
        border-radius: 12px !important;
        box-shadow: none;
    }

    .admin-quick-action:hover {
        background: #f8fafc !important;
        border-color: #dbeafe;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .admin-quick-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px;
        border-radius: 11px !important;
    }

    .admin-quick-icon i {
        font-size: 15px !important;
    }

    .admin-quick-label {
        font-size: 12px !important;
        line-height: 1.25;
        font-weight: 800 !important;
        color: #1f2937 !important;
    }

    .admin-quick-arrow {
        display: block;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #cbd5e1;
        font-size: 11px;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .admin-quick-action:hover .admin-quick-arrow {
        color: #2563eb;
        transform: translate(2px, -50%);
    }

    .fab {
        bottom: 24px;
        right: 28px;
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        border-radius: 14px;
        background: #2563eb;
        box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
    }
}

@media (min-width: 1280px) {
    .admin-action-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-action-grid {
        grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    body.dark {
        background: #0b1120;
    }

    body.dark #main-app {
        background:
            linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0) 280px),
            #0b1120;
    }

    body.dark .app-header {
        background: rgba(15, 23, 42, 0.9) !important;
        color: #e5e7eb !important;
        border-bottom-color: #1f2937;
    }

    body.dark .app-header button {
        background: #111827;
        border-color: #374151;
        color: #cbd5e1;
    }

    body.dark .admin-action-group,
    body.dark .admin-summary-card {
        background: #111827 !important;
        border-color: #1f2937 !important;
    }

    body.dark .admin-action-group-header {
        border-bottom-color: #1f2937;
    }

    body.dark .admin-action-group h3,
    body.dark .admin-quick-label {
        color: #e5e7eb !important;
    }

    body.dark .admin-action-count {
        background: #0f172a;
        color: #94a3b8;
        border-color: #1f2937;
    }

    body.dark .admin-quick-action {
        border-color: #1f2937;
    }

    body.dark .admin-quick-action:hover {
        background: #0f172a !important;
        border-color: #334155;
    }

body.dark .admin-quick-arrow {
        color: #475569;
    }
}

.pre-login-install-card {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.finance-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.finance-command-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: #fff;
    text-align: left;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.finance-command-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
}

.finance-command-card i {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 17px;
}

.finance-command-card b {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.finance-command-card small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
}

.finance-command-card.income i { background: #dcfce7; color: #15803d; }
.finance-command-card.receipt i { background: #dbeafe; color: #2563eb; }
.finance-command-card.concession i { background: #fef3c7; color: #b45309; }
.finance-command-card.ledger i { background: #ede9fe; color: #7c3aed; }
.finance-command-card.sample i { background: #fce7f3; color: #be185d; }

@keyframes adminSoftRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes adminShimmer {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(140%); }
}

@keyframes adminFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (min-width: 1024px) {
    .admin-home:not(.admin-hub-page) .admin-welcome-card,
    .admin-home:not(.admin-hub-page) .admin-summary-card,
    .admin-home:not(.admin-hub-page) .admin-action-group {
        animation: adminSoftRise 0.45s ease both;
    }

    .admin-home:not(.admin-hub-page) .admin-welcome-card {
        position: relative;
        overflow: hidden;
        background:
            linear-gradient(135deg, rgba(20, 184, 166, 0.92), rgba(37, 99, 235, 0.88) 52%, rgba(124, 58, 237, 0.9)),
            #0f172a !important;
        box-shadow: 0 22px 52px rgba(37, 99, 235, 0.2);
    }

    .admin-home:not(.admin-hub-page) .admin-welcome-card::after {
        content: "";
        position: absolute;
        inset: 0;
        width: 45%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
        animation: adminShimmer 5s ease-in-out infinite;
        pointer-events: none;
    }

    .admin-home:not(.admin-hub-page) .admin-summary-card:nth-of-type(1) {
        background: linear-gradient(135deg, #ecfdf5, #ffffff) !important;
        border-color: #bbf7d0 !important;
    }

    .admin-home:not(.admin-hub-page) .admin-summary-card:nth-of-type(2) {
        background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
        border-color: #bfdbfe !important;
    }

    .admin-home:not(.admin-hub-page) .admin-summary-card:nth-of-type(3) {
        background: linear-gradient(135deg, #fff7ed, #ffffff) !important;
        border-color: #fed7aa !important;
    }

    .admin-home:not(.admin-hub-page) .admin-command-card,
    .admin-home:not(.admin-hub-page) .admin-quick-action {
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .admin-home:not(.admin-hub-page) .admin-command-card:hover,
    .admin-home:not(.admin-hub-page) .admin-quick-action:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    }

    .admin-home:not(.admin-hub-page) .admin-command-card i,
    .admin-home:not(.admin-hub-page) .admin-quick-icon {
        animation: adminFloat 4.5s ease-in-out infinite;
    }
}

/* Admin colour and motion refresh */
@keyframes adminGradientTravel {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes adminTinyPop {
    0% { opacity: 0; transform: translateY(8px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes adminGlowLine {
    0%, 100% { opacity: 0.55; transform: scaleX(0.88); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes adminIconWiggle {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    35% { transform: rotate(-3deg) translateY(-1px); }
    70% { transform: rotate(3deg) translateY(-1px); }
}

@media (min-width: 1024px) {
    #main-app {
        background:
            linear-gradient(120deg, rgba(20, 184, 166, 0.10), transparent 28%),
            linear-gradient(240deg, rgba(244, 114, 182, 0.10), transparent 30%),
            linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0) 300px),
            #eef4fb !important;
    }

    .admin-sidebar {
        overflow: hidden;
        background:
            linear-gradient(155deg, #0f172a 0%, #172554 34%, #134e4a 70%, #0f172a 100%) !important;
    }

    .admin-sidebar::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(115deg, transparent 0 18%, rgba(45, 212, 191, 0.14) 18% 19%, transparent 19% 52%, rgba(251, 191, 36, 0.10) 52% 53%, transparent 53% 100%);
        pointer-events: none;
    }

    .admin-sidebar > * {
        position: relative;
        z-index: 1;
    }

    .admin-sidebar-brand {
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 18px;
        margin-bottom: 20px;
        padding: 10px;
    }

    .admin-sidebar-logo {
        box-shadow: 0 10px 24px rgba(20, 184, 166, 0.24);
    }

    .admin-sidebar-btn {
        border: 1px solid transparent;
        transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .admin-sidebar-btn:hover {
        border-color: rgba(255, 255, 255, 0.12);
        transform: translateX(3px);
    }

    .admin-sidebar-btn.active {
        background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    }

    .admin-sidebar-nav .admin-sidebar-btn:nth-child(2).active {
        background: linear-gradient(135deg, #0d9488, #22c55e) !important;
    }

    .admin-sidebar-nav .admin-sidebar-btn:nth-child(3).active {
        background: linear-gradient(135deg, #16a34a, #84cc16) !important;
    }

    .admin-sidebar-nav .admin-sidebar-btn:nth-child(4).active {
        background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    }

    .admin-sidebar-nav .admin-sidebar-btn:nth-child(5).active {
        background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
    }

    .admin-sidebar-nav .admin-sidebar-btn:nth-child(6).active {
        background: linear-gradient(135deg, #475569, #2563eb) !important;
    }

    .app-header {
        position: sticky;
        overflow: hidden;
    }

    .app-header::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background: linear-gradient(90deg, #14b8a6, #3b82f6, #a855f7, #f97316, #22c55e);
        transform-origin: center;
        animation: adminGlowLine 3.8s ease-in-out infinite;
    }

    .admin-home > * {
        animation: adminTinyPop 0.42s ease both;
    }

    .admin-home > *:nth-child(2) { animation-delay: 0.04s; }
    .admin-home > *:nth-child(3) { animation-delay: 0.08s; }
    .admin-home > *:nth-child(4) { animation-delay: 0.12s; }
    .admin-home > *:nth-child(5) { animation-delay: 0.16s; }

    .admin-welcome-card {
        background:
            linear-gradient(130deg, rgba(13, 148, 136, 0.96), rgba(37, 99, 235, 0.94), rgba(124, 58, 237, 0.95), rgba(236, 72, 153, 0.86)) !important;
        background-size: 220% 220% !important;
        animation: adminTinyPop 0.42s ease both, adminGradientTravel 12s ease infinite !important;
        border-color: rgba(255, 255, 255, 0.22) !important;
    }

    .admin-welcome-meta span {
        background: rgba(255, 255, 255, 0.16);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .admin-summary-staff {
        background: linear-gradient(135deg, #eff6ff, #ffffff 48%, #ecfeff) !important;
        border-color: #bfdbfe !important;
    }

    .admin-summary-students {
        background: linear-gradient(135deg, #ecfdf5, #ffffff 48%, #f0fdf4) !important;
        border-color: #bbf7d0 !important;
    }

    .admin-summary-card::after {
        height: 5px;
        background: linear-gradient(90deg, #2563eb, #06b6d4);
    }

    .admin-summary-students::after {
        background: linear-gradient(90deg, #16a34a, #84cc16);
    }

    .admin-command-card,
    .admin-action-group {
        border-color: rgba(148, 163, 184, 0.28) !important;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
    }

    .admin-command-card:nth-child(1) {
        background: linear-gradient(135deg, #ecfdf5, #ffffff 62%) !important;
        border-color: #bbf7d0 !important;
    }

    .admin-command-card:nth-child(2) {
        background: linear-gradient(135deg, #fff7ed, #ffffff 62%) !important;
        border-color: #fed7aa !important;
    }

    .admin-command-card:nth-child(3) {
        background: linear-gradient(135deg, #eef2ff, #ffffff 62%) !important;
        border-color: #c7d2fe !important;
    }

    .admin-command-card:nth-child(4) {
        background: linear-gradient(135deg, #f0f9ff, #ffffff 62%) !important;
        border-color: #bae6fd !important;
    }

    .admin-command-card:nth-child(5) {
        background: linear-gradient(135deg, #fdf2f8, #ffffff 62%) !important;
        border-color: #fbcfe8 !important;
    }

    .admin-command-chart {
        background: linear-gradient(135deg, #f8fafc, #ffffff 45%, #f0fdf4) !important;
        border-color: #bbf7d0 !important;
    }

    .admin-command-icon {
        transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .admin-command-card:hover .admin-command-icon,
    .admin-quick-action:hover .admin-quick-icon,
    .finance-command-card:hover i {
        animation: adminIconWiggle 0.42s ease;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
    }

    .admin-action-group:nth-child(1) {
        background: linear-gradient(135deg, #f0fdf4, #ffffff 58%) !important;
    }

    .admin-action-group:nth-child(2) {
        background: linear-gradient(135deg, #fffbeb, #ffffff 58%) !important;
    }

    .admin-action-group:nth-child(3) {
        background: linear-gradient(135deg, #ecfeff, #ffffff 58%) !important;
    }

    .admin-action-group:nth-child(4) {
        background: linear-gradient(135deg, #f5f3ff, #ffffff 58%) !important;
    }

    .admin-action-group:nth-child(5) {
        background: linear-gradient(135deg, #fdf2f8, #ffffff 58%) !important;
    }

    .admin-quick-action {
        background: rgba(255, 255, 255, 0.82) !important;
    }

    .admin-quick-action:hover {
        border-color: rgba(37, 99, 235, 0.28) !important;
        background: #ffffff !important;
    }

    .finance-command-card {
        background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    }
}

@media (max-width: 1023px) {
    .glass-nav,
    .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.96) !important;
        border-top: 3px solid transparent;
        border-image: linear-gradient(90deg, #14b8a6, #3b82f6, #a855f7, #f97316) 1;
    }

    .nav-btn.active {
        color: #0d9488;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-home > *,
    .admin-welcome-card,
    .admin-command-card i,
    .admin-quick-icon,
    .finance-command-card i,
    .app-header::after {
        animation: none !important;
    }
}

@media (min-width: 1024px) {
    body.dark .admin-summary-card,
    body.dark .admin-command-card,
    body.dark .admin-action-group,
    body.dark .finance-command-card {
        background: #111827 !important;
        border-color: #1f2937 !important;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24) !important;
    }

    body.dark .admin-command-label,
    body.dark .admin-command-note,
    body.dark .class-fee-svg-axis,
    body.dark .class-fee-svg-class,
    body.dark .class-fee-svg-legend text {
        color: #94a3b8 !important;
        fill: #cbd5e1 !important;
    }

    body.dark .admin-command-value,
    body.dark .finance-command-card b {
        color: #e5e7eb !important;
    }
}
