@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
    /* Brand Colors */
    --primary: #0f3d2e;
    --primary-light: #10b981;
    --primary-dark: #071f17;
    --accent: #d4af37;

    /* Dark Green-Navy Theme (Default — matches reference design) */
    --bg-body: #0b1e2d;
    /* Deep navy-teal background */
    --bg-body-2: #0d2418;
    /* Slightly green tint for variety */
    --bg-card: rgba(13, 30, 45, 0.85);
    /* Dark card glass */
    --bg-card-solid: #0f2535;
    /* Solid dark card */
    --bg-sidebar: #07150f;
    /* Very deep forest for sidebar */
    --text-main: #e8f4f1;
    /* Soft white with slight teal tint */
    --text-muted: #7da99a;
    /* Muted teal-grey */
    --border-color: rgba(16, 185, 129, 0.12);
    /* Subtle emerald border */

    /* Glass & Vibrancy */
    --glass-bg: rgba(10, 28, 38, 0.75);
    --glass-border: rgba(16, 185, 129, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Glowing Effects */
    --glow-primary: 0 0 20px rgba(16, 185, 129, 0.25);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.2);
    --glow-card: 0 0 0 1px rgba(16, 185, 129, 0.08), 0 4px 24px rgba(0, 0, 0, 0.4);

    /* Layout */
    --sidebar-width: 270px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --topbar-height: 64px;

    /* Shadows & Borders */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Sidebar */
    --sidebar-bg: #07150f;

    /* Ultra-Dark Dashboard Palette (Reference Image) */
    --dashboard-bg: #050a10;
    --dashboard-card-bg: rgba(13, 22, 34, 0.6);
    --dashboard-card-border: rgba(16, 185, 129, 0.1);
    --dashboard-accent: #10b981;
    --dashboard-text: #e8f4f1;
    --dashboard-muted: #7da99a;

    /* Vibrant Portal Colors */
    --ecde-vibrant: #10b981;
    --primary-vibrant: #3b82f6;
    --jss-vibrant: #8b5cf6;
    --ops-vibrant: #f59e0b;
    --admin-vibrant: #f43f5e;
    --system-vibrant: #64748b;
    --student-vibrant: #eab308;
    --emerald-vibrant: #10b981;
}

/* Dark Mode — same palette, slightly deeper */
body.dark-mode {
    --bg-body: #060f18;
    --bg-card: rgba(8, 20, 30, 0.9);
    --bg-card-solid: #08141e;
    --bg-sidebar: #040c08;
    --text-main: #e8f4f1;
    --text-muted: #6b9a8e;
    --border-color: rgba(16, 185, 129, 0.1);
    --glass-bg: rgba(6, 15, 24, 0.85);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.85);
    --sidebar-bg: #040c08;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--shadow-md);
}

.hover-lift {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.premium-gradient-green {
    background: linear-gradient(135deg, #0b6623 0%, #1a8335 100%);
}

.premium-gradient-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(6, 78, 59, 0.08) 0%, transparent 50%);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Reference-Style Dashboard Components */
.dashboard-v2 {
    background-color: var(--dashboard-bg);
    color: var(--dashboard-text);
}

.pathway-header {
    margin-bottom: 2rem;
}

.pathway-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pathway-subtitle {
    color: var(--dashboard-muted);
    font-size: 1.1rem;
}

.stat-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card-v2 {
    background: var(--dashboard-card-bg);
    border: 1px solid var(--dashboard-card-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card-v2:hover {
    border-color: var(--dashboard-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--dashboard-accent);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.stat-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-unit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dashboard-accent);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-icon-v2 {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--dashboard-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transfer-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dashboard-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-skeleton {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.skeleton-widget {
    background: rgba(13, 22, 34, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    height: 400px;
    position: relative;
    padding: 2rem;
}

.skeleton-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.05) 100%);
    height: 40px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.mid { width: 70%; }
.skeleton-line.wide { width: 90%; }

.back-hub-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.back-hub-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Cards and dark text overrides — applied globally since we always use dark theme */
.card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.text-dark {
    color: var(--text-main) !important;
}

/* Ensure text-dark remains dark on warning/yellow backgrounds */
.bg-warning .text-dark,
.btn-warning .text-dark,
.bg-warning.text-dark,
.attendance-indicator.bg-warning {
    color: #000000 !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* page-header, grade-card, learner-card */
.page-header,
.grade-card-modern,
.learner-card-modern {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.form-control,
.form-select {
    background-color: rgba(16, 185, 129, 0.06);
    border-color: var(--border-color);
    color: var(--text-main);
}

body.dark-mode .form-control::placeholder {
    color: var(--text-muted);
}

/* Force dark background for dropdown options across all browsers */
select option {
    background-color: var(--bg-card-solid);
    color: var(--text-main);
}

/* Specific fix for browsers that ignore inherited colors on select elements */
.form-select option, .form-control option {
    background-color: #0f2535 !important;
    color: #e8f4f1 !important;
}

/* ==================================================
   TABLE OVERRIDES — Force dark theme on all tables
   Bootstrap uses white backgrounds — override with !important
   ================================================== */
.table,
.table> :not(caption)>*>* {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

.table>thead>tr>th,
.table>thead>tr>td {
    background-color: rgba(16, 185, 129, 0.07) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
    font-weight: 600;
}

.table>tbody>tr>td,
.table>tbody>tr>th {
    background-color: #0f2535 !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

.table-hover>tbody>tr:hover>* {
    background-color: rgba(16, 185, 129, 0.06) !important;
    color: var(--text-main) !important;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-main) !important;
}

.table-modern thead th {
    background-color: rgba(16, 185, 129, 0.07) !important;
    color: var(--text-main) !important;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-main) !important;
}

/* Code badges in tables */
code {
    background-color: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.85em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: 'Outfit', sans-serif;
}

/* ================= SIDEBAR ================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    color: white;
    z-index: 1050;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4), inset -1px 0 0 rgba(16, 185, 129, 0.08);
}

body.dark-mode .sidebar {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--border-color) !important;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Header Logo Area */
.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    overflow: hidden;
    white-space: nowrap;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    transition: opacity 0.2s;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* Premium Logo Styling */
.logo-container img,
.ticker-logo img {
    background: #ffffff;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* User Profile Section */
.user-profile-section {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    white-space: nowrap;
}

/* Large Logo Highlight (for About sections) */
.logo-large-highlight {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.logo-large-highlight:hover {
    transform: scale(1.02);
}

.sidebar.collapsed .user-profile-section {
    padding: 1rem 0.5rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.sidebar.collapsed .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0;
}

.user-name,
.user-role {
    transition: opacity 0.2s;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-role {
    font-size: 0.85rem;
    opacity: 0.8;
}

.sidebar.collapsed .user-name,
.sidebar.collapsed .user-role {
    display: none;
}

/* Main Navigation Area */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

/* Nav Section Titles with distinctive features */
/* Nav Section Titles with premium vibrant features */
.nav-section-title {
    padding: 0.9rem 1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.nav-section-title::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    right: 2rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.nav-section-title.section-ecde {
    color: var(--ecde-vibrant);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, transparent 100%);
    box-shadow: -2px 0 0 0 var(--ecde-vibrant);
}

.nav-section-title.section-primary {
    color: var(--primary-vibrant);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%);
    box-shadow: -2px 0 0 0 var(--primary-vibrant);
}

.nav-section-title.section-jss {
    color: var(--jss-vibrant);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, transparent 100%);
    box-shadow: -2px 0 0 0 var(--jss-vibrant);
}

.nav-section-title.section-ops {
    color: var(--ops-vibrant);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, transparent 100%);
    box-shadow: -2px 0 0 0 var(--ops-vibrant);
}

.nav-section-title.section-admin {
    color: var(--admin-vibrant);
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.2) 0%, transparent 100%);
    box-shadow: -2px 0 0 0 var(--admin-vibrant);
}

.nav-section-title.section-system {
    color: var(--system-vibrant);
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.15) 0%, transparent 100%);
    box-shadow: -2px 0 0 0 var(--system-vibrant);
}

.nav-section-title.section-student {
    color: var(--student-vibrant);
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.15) 0%, transparent 100%);
    box-shadow: -2px 0 0 0 var(--student-vibrant);
}

.sidebar.collapsed .nav-section-title {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-weight: 600;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--primary-light) !important;
    box-shadow: var(--glow-primary) !important;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 15%;
    bottom: 15%;
    width: 4px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--accent);
}

.nav-link i {
    font-size: 1.1rem;
    min-width: 25px;
    margin-right: 14px;
    opacity: 0.8;
}

.nav-link.active i {
    opacity: 1;
    color: var(--accent);
}

/* Dropdown Support */
.cursor-pointer {
    cursor: pointer;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.nav-section-title[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.nav-section-wrapper {
    margin-bottom: 0.5rem;
}

.nav-section-title:hover {
    filter: brightness(1.2);
}

/* Indent items in collapse */
.collapse .nav-link {
    padding-left: 1.5rem;
}

/* Footer Area */
.sidebar-footer {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dark-mode-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: opacity 0.2s;
}

.sidebar.collapsed .dark-mode-label {
    display: none;
}

/* MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* ================= TOP BAR ================= */
.top-bar {
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    height: var(--topbar-height);
    background: rgba(10, 22, 34, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark-mode .top-bar {
    background: rgba(6, 15, 24, 0.92);
    border-bottom-color: rgba(16, 185, 129, 0.08);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* TopBar User Dropdown */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-main);
}

.topbar-user:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .topbar-user:hover {
    background: rgba(255, 255, 255, 0.1);
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

body.dark-mode .topbar-avatar {
    box-shadow: var(--glow-primary);
}

.topbar-info {
    line-height: 1.2;
}

.topbar-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.topbar-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* Adjust Main Content for Sticky Header */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    /* Changed to 0 so topbar spans full width */
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-inner {
    padding: 2rem;
}

@media (max-width: 991.98px) {

    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
        /* Force full width even if collapsed class exists */
    }

    /* Show sidebar when menu is opened */
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        /* Stronger shadow on mobile */
    }

    /* Reset collapsed state styles on mobile */
    .sidebar.collapsed .nav-link span,
    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .user-name,
    .sidebar.collapsed .user-role {
        display: block !important;
        /* Force show text */
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .sidebar.collapsed .nav-link {
        justify-content: flex-start !important;
        padding: 0.85rem 1rem !important;
    }

    .sidebar.collapsed .nav-link i {
        margin-right: 12px !important;
    }

    /* Remove main content margin on mobile */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        overflow-x: hidden;
    }

    .content-inner {
        padding: 0 !important;
        width: 100% !important;
    }

    /* Aggressive reset for containers to ensure edge-to-edge on mobile */
    .main-content .container, 
    .main-content .container-fluid,
    .dashboard-v2,
    .content-inner {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0 !important;
        max-width: 100% !important;
    }
    
    /* Pages that must be strictly zero-padding (Login, Dashboards) */
    .login-container, .dashboard-grid {
        padding: 0 !important;
    }

    .top-bar {
        padding: 0 1rem;
        width: 100%;
    }

    .topbar-info {
        display: none;
    }

    .mobile-toggle {
        display: block !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        /* Darker overlay */
        backdrop-filter: blur(3px);
        /* Glassmorphism background blur */
        z-index: 1040;
    }

    .sidebar-overlay.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .sidebar-collapse-btn {
        display: none !important;
    }
}

/* ================= NEW YEAR BANNER ================= */
.new-year-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(11, 102, 35, 0.15);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.new-year-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

.firework-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Dark mode adjustment for banner */
body.dark-mode .new-year-banner {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================
   GLOBAL DARK THEME — Kill all remaining Bootstrap whites
   ========================================================== */

/* Bootstrap white utility overrides */
.bg-white,
.bg-transparent {
    background-color: #0f2535 !important;
}

/* Modal dialogs */
.modal-content {
    background-color: #0d1e2e !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
    color: var(--text-main) !important;
}

.modal-header,
.modal-footer {
    border-color: rgba(16, 185, 129, 0.12) !important;
    background-color: rgba(16, 185, 129, 0.05) !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: #0d1e2e !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
}

.dropdown-item {
    color: var(--text-main) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
}

/* List groups */
.list-group-item {
    background-color: #0f2535 !important;
    border-color: rgba(16, 185, 129, 0.12) !important;
    color: var(--text-main) !important;
}

.list-group-item:hover {
    background-color: rgba(16, 185, 129, 0.06) !important;
}

/* Form elements */
.form-control,
.form-select,
.input-group-text {
    background-color: rgba(16, 185, 129, 0.05) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
    color: var(--text-main) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15) !important;
    color: var(--text-main) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Navs/Tabs */
.nav-tabs {
    border-color: rgba(16, 185, 129, 0.15);
}

.nav-tabs .nav-link {
    color: var(--text-muted);
}

.nav-tabs .nav-link.active {
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.2) rgba(16, 185, 129, 0.2) transparent !important;
    color: #34d399 !important;
}

/* Alert boxes */
.alert {
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* Pagination */
.page-item .page-link {
    background-color: #0f2535 !important;
    border-color: rgba(16, 185, 129, 0.15) !important;
    color: var(--text-main) !important;
}

.page-item.active .page-link {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

/* Toast notifications */
.toast {
    background-color: #0d1e2e !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
    color: var(--text-main) !important;
}

.toast-header {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: var(--text-main) !important;
    border-color: rgba(16, 185, 129, 0.12) !important;
}