/* Dashboards Quick Actions Styling */
.quick-action-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 15px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: var(--bs-card-bg, #ffffff);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Modern Dashboard Components */
.glass-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.card-modern {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stats-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
}

/* Advanced Premium Aesthetics */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card-glass:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(31, 38, 135, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.stats-gradient-box {
    width: 56px;
    height: 56px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-gradient-box::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: inherit;
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.1);
}

/* Vibrant HSL Gradients for Stats */
.grad-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; }
.grad-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important; }
.grad-orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important; }
.grad-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }
.grad-red { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%) !important; }
.grad-cyan { background: linear-gradient(135deg, #2af598 0%, #009efd 100%) !important; }

/* Action Boxes & Labels */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 10px;
    color: white;
}

.icon-box i {
    font-size: 24px;
}

.action-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

/* Background Gradients */
.bg-gradient-purple { background: linear-gradient(135deg, #8E2DE2, #4A00E0) !important ; }
.bg-gradient-ocean { background: linear-gradient(135deg, #2193b0, #6dd5ed) !important; }
.bg-gradient-forest { background: linear-gradient(135deg, #11998e, #38ef7d) !important; }
.bg-gradient-sunset { background: linear-gradient(135deg, #ff9966, #ff5e62) !important; }
.bg-gradient-royal { background: linear-gradient(135deg, #141E30, #243B55) !important; }
.bg-gradient-berry { background: linear-gradient(135deg, #ec008c, #6721ab) !important; }
.bg-gradient-mango { background: linear-gradient(135deg, #f7971e, #ffd200) !important; }
.bg-gradient-steel { background: linear-gradient(135deg, #556270, #4ECDC4) !important; }
.bg-gradient-cosmic { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important; }
.bg-gradient-moonlit { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364) !important; }
.bg-gradient-meridian { background: linear-gradient(135deg, #1bdb0a, #417209, #10e256) !important; }
.bg-gradient-maroon { background: linear-gradient(135deg, #800000, #a52a2a) !important; }
.bg-gradient-cherry { background: linear-gradient(135deg, #d2042d, #ff3333) !important; }
.bg-gradient-orange { background: linear-gradient(135deg, #f46b45, #eea849) !important; }
.bg-gradient-info { background: linear-gradient(135deg, #00b09b, #96c93d) !important; }
.bg-gradient-danger { background: linear-gradient(135deg, #cb2d3e, #ef473a) !important; }
.bg-gradient-primary { background: linear-gradient(135deg, #007bff, #0062cc) !important; }
.bg-gradient-glass-primary { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }

/* Light Status Colors */
.bg-light-info { background-color: rgba(13, 202, 240, 0.1) !important; }
.bg-light-success { background-color: rgba(25, 135, 84, 0.1) !important; }
.bg-light-danger { background-color: rgba(220, 53, 69, 0.1) !important; }
.bg-light-warning { background-color: rgba(255, 193, 7, 0.1) !important; }
.bg-light-primary { background-color: rgba(13, 110, 253, 0.1) !important; }
.bg-light-secondary { background-color: rgba(108, 117, 125, 0.1) !important; }
.bg-light-purple { background-color: rgba(111, 66, 193, 0.1) !important; }

/* Chart Containers */
.chart-container-1 {
    position: relative;
    height: 320px;
    width: 100%;
}

.chart-container-2 {
    position: relative;
    height: 280px;
    width: 100%;
}

.chart-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
    background: var(--bs-card-bg, #fff);
    height: 100%;
}
.chart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bs-border-color, #f0f0f0);
}
.chart-body {
    padding: 1.5rem;
    height: 300px;
    position: relative;
}

/* DataTable Customization */
.dataTables_wrapper .row:first-child {
    padding: 1rem 0;
    background: var(--bs-tertiary-bg, #f8f9fa);
    margin: 0;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.dataTables_filter { text-align: right; }
.dataTables_filter input {
    border-radius: 20px;
    padding-left: 1rem;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
}

.dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .dataTables_filter { text-align: left; margin-top: 0.5rem; }
    .dataTables_filter input { width: 100% !important; margin-left: 0 !important; }
    .dataTables_paginate { justify-content: center; margin-top: 1rem; }
}

/* Recent Lists & Tables */
.recent-list-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.table-modern th {
    border-top: none;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #adb5bd;
}
.table-modern td {
    vertical-align: middle;
    border-bottom: 1px solid var(--bs-border-color, #f8f9fa);
    padding: 1rem 0.75rem;
}
.table-modern tr:last-child td { border-bottom: none; }

.status-badge {
    padding: 0.35em 0.8em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 50rem;
}

/* Mobile App Icon Grid System */
.app-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1.5rem;
}

.app-shortcut {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    border-radius: 24px !important;
    background: var(--bs-card-bg, rgba(255, 255, 255, 0.9)) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.app-shortcut:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    background: var(--bs-card-bg, #fff) !important;
}

.app-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin: 0 auto 12px;
    font-size: 28px;
    transition: all 0.3s ease;
}

.app-shortcut:hover .app-icon-wrapper {
    border-radius: 22px;
    transform: scale(1.05);
}

.app-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bs-body-color, #444);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gradients for App Icons */
.bg-app-primary { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.bg-app-success { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.bg-app-warning { background: linear-gradient(135deg, #f09819 0%, #edde5d 100%); }
.bg-app-info { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.bg-app-purple { background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%); }
.bg-app-ocean { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }
.bg-app-forest { background: linear-gradient(135deg, #134e5e 0%, #71b280 100%); }
.bg-app-danger { background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); }
.bg-app-royal { background: linear-gradient(135deg, #141e30 0%, #243b55 100%); }
.bg-app-mango { background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%); }
.bg-app-cherry { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); }
.bg-app-berry { background: linear-gradient(135deg, #834d9b 0%, #d04ed6 100%); }
.bg-app-sunset { background: linear-gradient(135deg, #f12711 0%, #f5af19 100%); }
.bg-app-mountain { background: linear-gradient(135deg, #304352 0%, #d7d2cc 100%); }
.bg-app-secondary { background: linear-gradient(135deg, #3e5151 0%, #decba4 100%); }
.bg-app-steel { background: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%); }
.bg-app-dark { background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%); }
.bg-app-teal { background: linear-gradient(135deg, #008080 0%, #20b2aa 100%); }
.bg-app-indigo { background: linear-gradient(135deg, #4b0082 0%, #6a5acd 100%); }
.bg-app-rose { background: linear-gradient(135deg, #e91e63 0%, #f06292 100%); }
.bg-app-amber { background: linear-gradient(135deg, #ffbf00 0%, #ffdb58 100%); }
.bg-app-emerald { background: linear-gradient(135deg, #50c878 0%, #2ecc71 100%); }
.bg-app-slate { background: linear-gradient(135deg, #708090 0%, #95a5a6 100%); }
.bg-app-cyan { background: linear-gradient(135deg, #00ffff 0%, #00ced1 100%); }
.bg-app-pink { background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%); }

/* ---------- STUDENT PROFILE & GENERAL UTILITIES ---------- */
:root {
    --primary-gradient: linear-gradient(135deg, #0d6efd, #0b5ed7);
    --success-gradient: linear-gradient(135deg, #198754, #157347);
    --warning-gradient: linear-gradient(135deg, #ffc107, #fd7e14);
    --danger-gradient: linear-gradient(135deg, #dc3545, #bb2d3b);
    --info-gradient: linear-gradient(135deg, #0dcaf0, #0aa2c0);
}

.bg-soft-primary { background-color: rgba(13, 110, 253, 0.08); }
.bg-soft-success { background-color: rgba(25, 135, 84, 0.08); }
.bg-soft-danger { background-color: rgba(220, 53, 69, 0.08); }
.bg-soft-warning { background-color: rgba(255, 193, 7, 0.08); }
.bg-soft-info { background-color: rgba(13, 202, 240, 0.08); }
.bg-soft-purple { background-color: rgba(111, 66, 193, 0.08); }

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}

.avatar-xl {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.avatar-md {
    width: 48px;
    height: 48px;
    object-fit: cover;
}
.avatar-sm {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.info-label {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.25rem;
}
.info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bs-body-color, #212529);
    word-break: break-word;
}

.border-dashed {
    border-style: dashed !important;
}

/* Enhanced Navigation Tabs */
.nav-tabs .nav-link {
    color: var(--bs-body-color, #4a5568);
    font-weight: 500;
    border: none;
    padding: 0.6rem 1rem;
    margin-right: 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    position: relative;
}
.nav-tabs .nav-link i {
    margin-right: 0.35rem;
    font-size: 1.1rem;
    vertical-align: middle;
}
.nav-tabs .nav-link:hover {
    background-color: #f1f5f9;
    color: #0d6efd;
}
.nav-tabs .nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.3);
}
.nav-tabs .nav-link .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
}

/* Attendance Dots */
.attendance-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    transition: transform 0.2s;
    cursor: pointer;
}
.attendance-dot:hover {
    transform: scale(1.2);
}
.attendance-dot.present { background-color: #d1fae5; color: #0b5e42; }
.attendance-dot.absent { background-color: #fee2e2; color: #b91c1c; }
.attendance-dot.leave { background-color: #fef9c3; color: #854d0e; }
.attendance-dot.holiday { background-color: #e0e7ff; color: #3730a3; }
.attendance-dot.na { background-color: #f1f5f9; color: #64748b; }

.calendar-day {
    width: 42px;
    text-align: center;
}

/* Quick Actions Floating Button */
.quick-actions-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1030;
}

/* Status Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 20px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #0d6efd;
}

/* Print Styles */
@media print {
    .no-print { display: none !important; }
    .card { box-shadow: none !important; border: 1px solid #dee2e6 !important; }
    .nav-tabs { display: none !important; }
    .tab-pane { display: block !important; opacity: 1 !important; }
    .quick-actions-fab { display: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-tabs .nav-link span { display: none; }
    .nav-tabs .nav-link i { margin-right: 0; font-size: 1.2rem; }
    .nav-tabs .nav-link { padding: 0.6rem 0.8rem; }
    .stat-card { margin-bottom: 0.5rem; }
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 0.25rem;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom Scrollbar */
.custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: #555; }

/* Quick Stat Cards */
.stat-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.stat-card:hover {
    transform: translateY(-2px);
}
.stat-card.primary { border-left-color: #0d6efd; }
.stat-card.success { border-left-color: #198754; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.danger { border-left-color: #dc3545; }

.sibling-hover-parent:hover .sibling-hover-popup { display: block !important; }

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
}


/* Added from system_admin.html */
/* Advanced Aesthetic Enhancements */
    :root {
        --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --success-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
        --warning-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
        --danger-gradient: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
        --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        --glass-bg: rgba(255, 255, 255, 0.85);
        --glass-border: rgba(0, 0, 0, 0.08);
    }
    
    .hover-elevate {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-radius: 24px;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    }
    .hover-elevate:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    .advanced-glass-banner {
        background: var(--primary-gradient);
        border-radius: 20px;
        color: white;
        padding: 2.5rem 2rem;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
    }

    .advanced-glass-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        filter: blur(20px);
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-20px) rotate(180deg); }
        100% { transform: translateY(0px) rotate(360deg); }
    }

    .app-shortcut-adv {
        border-radius: 22px;
        background: #fff;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        border: none;
        overflow: hidden;
        position: relative;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .app-shortcut-adv:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    }
    .app-icon-adv {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        margin: 0 auto 12px;
        background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
        color: #4a5568;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 4px 8px rgba(0,0,0,0.05);
    }
    .app-shortcut-adv:hover .app-icon-adv {
        background: var(--primary-gradient);
        color: white;
        transform: scale(1.1);
    }

    .report-hub-card {
        border-radius: 20px;
        background: #fff;
        border: none;
        box-shadow: 0 8px 25px rgba(0,0,0,0.04);
        transition: all 0.3s ease;
    }
    .report-btn {
        border-radius: 10px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: all 0.2s;
    }
    .report-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    /* Kpi Cards */
    .kpi-card {
        border-radius: 15px;
        padding: 20px;
        color: white;
        position: relative;
        overflow: hidden;
    }
    .kpi-card .bx {
        position: absolute;


/* Dark Theme Adjustments for Dashboard Components */
html.dark-theme .quick-action-card {
    background-color: #12181a;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}
html.dark-theme .quick-action-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
}
html.dark-theme .glass-banner {
    background: rgba(18, 24, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
html.dark-theme .card-modern {
    background-color: #12181a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
html.dark-theme .card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
html.dark-theme .card-glass {
    background: rgba(18, 24, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
html.dark-theme .card-glass:hover {
    background: rgba(18, 24, 26, 0.85);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}
html.dark-theme .action-label {
    color: #e4e5e6;
}
html.dark-theme .chart-card {
    background: #12181a;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
html.dark-theme .chart-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
html.dark-theme .dataTables_wrapper .row:first-child {
    background: #1a2024;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
html.dark-theme .dataTables_filter input {
    background-color: #12181a;
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #e4e5e6;
}
html.dark-theme .recent-list-card {
    background-color: #12181a;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
html.dark-theme .table-modern th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    color: #8c969e;
}
html.dark-theme .table-modern td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e5e6;
}
html.dark-theme .app-shortcut {
    background: rgba(18, 24, 26, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html.dark-theme .app-shortcut:hover {
    background: #12181a !important;
}
html.dark-theme .app-label {
    color: #e4e5e6;
}
html.dark-theme .info-label {
    color: #8c969e;
}
html.dark-theme .info-value {
    color: #e4e5e6;
}
html.dark-theme .nav-tabs .nav-link {
    color: #c3c5c8;
}
html.dark-theme .nav-tabs .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
html.dark-theme .timeline::before {
    background: rgba(255, 255, 255, 0.12);
}
html.dark-theme .timeline-item::before {
    border: 2px solid #12181a;
}
html.dark-theme .hover-elevate {
    background: rgba(18, 24, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
html.dark-theme .app-shortcut-adv {
    background: #12181a;
}
html.dark-theme .app-icon-adv {
    background: #1a2024;
    color: #c3c5c8;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3);
}
html.dark-theme .report-hub-card {
    background: #12181a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
html.dark-theme .attendance-dot.na {
    background-color: #1a2024;
    color: #8c969e;
}
html.dark-theme .attendance-dot.present {
    background-color: rgba(25, 135, 84, 0.2);
    color: #84fab0;
}
html.dark-theme .attendance-dot.absent {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ffb199;
}
html.dark-theme .attendance-dot.leave {
    background-color: rgba(255, 193, 7, 0.2);
    color: #f6d365;
}
html.dark-theme .attendance-dot.holiday {
    background-color: rgba(13, 202, 240, 0.2);
    color: #8fd3f4;
}
html.dark-theme .kpi-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

html.dark-theme .hover-elevate {
    background: rgba(18, 24, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* App Grid (Premium Mobile App Icons) Styles */
        .mobile-app-icon {
            width: 64px;
            height: 64px;
            border-radius: 24px; /* Smooth squircle */
            background-color: var(--bs-body-bg, #ffffff);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.3),
                inset 0 -3px 5px rgba(0, 0, 0, 0.15),
                0 6px 12px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }
        
        /* Glossy inner glare */
        .mobile-app-icon::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 50%;
            background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
            border-radius: 24px 24px 0 0;
            pointer-events: none;
        }

        /* Better icon contrast */
        .mobile-app-icon i {
            position: relative;
            z-index: 2;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
            font-size: 28px !important;
        }
        .mobile-app-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--bs-body-color, #333);
            margin-top: 10px;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2; /* Limit to two lines */
            -webkit-box-orient: vertical;
            opacity: 0.85;
        }
        
        .transition-hover {
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .transition-hover:hover {
            transform: translateY(-6px) scale(1.05);
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.4),
                inset 0 -3px 5px rgba(0, 0, 0, 0.15),
                0 15px 25px rgba(0, 0, 0, 0.15),
                0 5px 10px rgba(0, 0, 0, 0.1) !important;
            opacity: 1;
        }

        /* Gradients from dashboard theme - More vibrant and modern */
        .bg-gradient-primary { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
        .bg-gradient-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
        .bg-gradient-info { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
        .bg-gradient-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
        .bg-gradient-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
        .bg-gradient-secondary { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
        .bg-gradient-bloody { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); }
        
        /* Responsive tweaks for smaller screens */
        @media (max-width: 576px) {
            .mobile-app-icon {
                width: 52px;
                height: 52px;
                border-radius: 20px;
            }
            .mobile-app-icon i {
                font-size: 1.5rem !important;
            }
            .mobile-app-label {
                font-size: 0.7rem;
            }
        }
        
        /* Dark mode specific tweaks */
        [data-bs-theme="dark"] .mobile-app-label,
        .dark-mode .mobile-app-label,
        body.dark-theme .mobile-app-label,
        html.dark-theme .mobile-app-label {
            color: #e2e8f0;
        }
        [data-bs-theme="dark"] .mobile-app-icon,
        .dark-mode .mobile-app-icon,
        body.dark-theme .mobile-app-icon,
        html.dark-theme .mobile-app-icon {
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.12),
                inset 0 -3px 5px rgba(0, 0, 0, 0.3),
                0 8px 16px rgba(0, 0, 0, 0.4);
        }

        [data-bs-theme="dark"] html.dark-theme .transition-hover:hover, body.dark-theme .transition-hover:hover, .dark-mode .transition-hover:hover {
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.15),
                inset 0 -3px 5px rgba(0, 0, 0, 0.3),
                0 15px 25px rgba(0, 0, 0, 0.6) !important;
        }

/* Dashboard Hero Styles */
.dashboard-hero {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}


/* Fix for label text colors in icon grids */
html:not(.dark-theme) .card.radius-10 .card-body h6.small,
html:not(.dark-theme) .app-shortcut .card-body .app-label,
html:not(.dark-theme) .app-icon-grid h6.small {
    color: #333333 !important;
}

html.dark-theme .card.radius-10 .card-body h6.small,
html.dark-theme .app-shortcut .card-body .app-label,
html.dark-theme .app-icon-grid h6.small {
    color: #f8f9fa !important;
}



/* Additional Dark Theme Adjustments */
html.dark-theme .advanced-glass-banner {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark-theme .bg-glass {
    background: rgba(18, 24, 26, 0.5) !important;
}

html.dark-theme .hover-lift:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4) !important;
}

html.dark-theme .avatar-xl,
html.dark-theme .avatar-md,
html.dark-theme .avatar-sm {
    border-color: #12181a;
}

html.dark-theme .nav-tabs .nav-link.active {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
}

html.dark-theme .dashboard-hero {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}


/* ========================================= */
/* Token Pay Page Styles */
/* ========================================= */

    /* ── Page Layout ── */
    .token-pay-wrapper { max-width: 960px; margin: 0 auto; }

    /* ── Token Input Card ── */
    .token-input-card {
        border-radius: 16px;
        padding: 2rem 2.5rem;
        position: relative;
        overflow: hidden;
    }
    .token-number-input {
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: 0.25rem;
        text-align: center;
        text-transform: uppercase;
        border-radius: 12px;
        padding: 0.75rem 1.5rem;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .token-number-input::placeholder { font-size: 1.2rem; letter-spacing: 0.1rem; opacity: 0.5; }
    .token-number-input:focus {
        box-shadow: 0 0 0 4px rgba(79,195,247,0.25);
    }
    .lookup-btn {
        font-size: 1rem;
        font-weight: 600;
        border-radius: 10px;
        padding: 0.75rem 2rem;
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .lookup-btn:hover { transform: translateY(-2px); }
    .lookup-btn:active { transform: translateY(0); }

    /* ── Result Panels ── */
    #result-area { transition: all 0.3s ease; }

    /* Student profile card */
    .student-profile-card {
        border-radius: 14px;
        border: 2px solid #e3f2fd;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }
    .student-profile-header {
        background: linear-gradient(135deg, #1565c0, #0288d1);
        padding: 1.5rem;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 1.25rem;
    }
    .student-avatar {
        width: 64px; height: 64px;
        border-radius: 50%;
        background: rgba(255,255,255,0.25);
        display: flex; align-items: center; justify-content: center;
        font-size: 1.75rem; font-weight: 700;
        flex-shrink: 0;
        border: 3px solid rgba(255,255,255,0.4);
    }
    .student-profile-body { padding: 1.5rem; }
    .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .info-item label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05rem; color: #888; font-weight: 600; display: block; margin-bottom: 2px; }
    .info-item span { font-weight: 600; color: #1a1a2e; }

    /* Token badge */
    .token-badge {
        display: inline-flex; align-items: center; gap: 0.5rem;
        background: #e3f2fd; color: #1565c0;
        border-radius: 100px;
        padding: 0.35rem 0.9rem;
        font-weight: 700; font-size: 0.95rem;
        border: 1.5px solid #bbdefb;
    }

    /* Invoice table */
    .invoice-table-card {
        border-radius: 14px;
        border: 2px solid #fff3e0;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }
    .invoice-table-card .card-header {
        background: linear-gradient(135deg, #e65100, #ff8f00);
        color: #fff;
        padding: 1rem 1.5rem;
        font-weight: 700;
        border: none;
    }
    .inv-row { transition: background 0.15s; }
    .inv-row:hover { background: #fff8e1; }
    .pay-inv-btn {
        font-size: 0.8rem;
        font-weight: 600;
        border-radius: 8px;
        padding: 0.35rem 0.9rem;
        white-space: nowrap;
    }

    /* Total due banner */
    .due-banner {
        background: linear-gradient(135deg, #b71c1c, #d32f2f);
        border-radius: 12px;
        color: #fff;
        padding: 1.25rem 1.75rem;
        display: flex; align-items: center; justify-content: space-between;
        box-shadow: 0 4px 15px rgba(183,28,28,0.3);
    }
    .due-amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; }

    /* Quick Pay fallback */
    .quick-pay-card {
        border-radius: 14px;
        border: 2px dashed #bdbdbd;
        background: #fafafa;
        padding: 2.5rem;
        text-align: center;
    }
    .quick-pay-card .icon-circle {
        width: 72px; height: 72px;
        border-radius: 50%;
        background: #fff3e0;
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto 1rem;
        font-size: 2rem; color: #f57c00;
    }

    /* State panels */
    #state-idle, #state-loading, #state-found, #state-not-found, #state-error { display: none; }
    #state-idle { display: block; }

    /* Spinner */
    .lookup-spinner {
        width: 48px; height: 48px;
        border: 4px solid #e3f2fd;
        border-top-color: #1565c0;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 1rem;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── Animations ── */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .animate-in { animation: fadeInUp 0.4s ease both; }
