/* ============================================
   EduNexus Platform — Core Styles v1.1.0
   Complete rebuild — clean dark theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Light theme (default) — inspired by mobile UI mockups */
:root, [data-theme="light"] {
    --bg-primary: #f4f6f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-sidebar: #ffffff;
    --bg-input: #f0f2f5;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8c8ca1;
    --accent: #d42a2a;
    --accent-hover: #b91c1c;
    --accent-soft: rgba(212,42,42,0.1);
    --success: #16a34a;
    --success-soft: rgba(22,163,74,0.1);
    --warning: #d97706;
    --warning-soft: rgba(217,119,6,0.1);
    --danger: #dc2626;
    --danger-soft: rgba(220,38,38,0.1);
    --info: #7c3aed;
    --info-soft: rgba(124,58,237,0.1);
    --border-color: #e5e7eb;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --sidebar-width: 260px;
    --header-height: 70px;
    --font-family: 'Inter', sans-serif;
    --gradient-hero: linear-gradient(135deg, #d42a2a 0%, #ff6b6b 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a35;
    --bg-card: #1e1e3a;
    --bg-card-hover: #252550;
    --bg-sidebar: #12122a;
    --bg-input: #252545;
    --text-primary: #e8e8f0;
    --text-secondary: #9a9ab5;
    --text-muted: #6b6b85;
    --accent: #0ea5e9;
    --accent-hover: #38bdf8;
    --accent-soft: rgba(14,165,233,0.15);
    --success: #22c55e;
    --success-soft: rgba(34,197,94,0.15);
    --warning: #f59e0b;
    --warning-soft: rgba(245,158,11,0.15);
    --danger: #ef4444;
    --danger-soft: rgba(239,68,68,0.15);
    --info: #8b5cf6;
    --info-soft: rgba(139,92,246,0.15);
    --border-color: rgba(255,255,255,0.06);
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --gradient-hero: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    --gradient-card: linear-gradient(135deg, #1e1e3a 0%, #252550 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================
   LOADER
   ============================================ */
.page-loader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s, visibility 0.4s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader img { width: 80px; height: 80px; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s;
}
.sidebar-brand {
    height: var(--header-height);
    display: flex; align-items: center; gap: 12px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-brand img { height: 36px; width: auto; }
.sidebar-brand span {
    font-size: 18px; font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-nav .nav-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    color: var(--text-muted); letter-spacing: 1px;
    padding: 16px 12px 8px;
}
.sidebar-nav .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; margin: 2px 0;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px; font-weight: 500;
    transition: all 0.2s; cursor: pointer;
}
.sidebar-nav .nav-item:hover { background: var(--bg-input); color: var(--text-primary); }
.sidebar-nav .nav-item.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-nav .nav-item i { font-size: 18px; width: 22px; text-align: center; }
.sidebar-nav .nav-item .badge-count {
    margin-left: auto; background: var(--danger); color: #fff;
    font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 600;
}
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); }
.sidebar-footer .nav-item { margin: 0; }

/* ============================================
   HEADER / TOP BAR
   ============================================ */
.main-content { margin-left: var(--sidebar-width); min-height: 100vh; }
.top-header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    position: sticky; top: 0; z-index: 900;
    backdrop-filter: blur(12px);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-left .menu-toggle {
    display: none; background: none; border: none;
    color: var(--text-primary); font-size: 22px; cursor: pointer;
}
.search-box { position: relative; width: 320px; }
.search-box input {
    width: 100%; background: var(--bg-input);
    border: 1px solid var(--border-color); color: var(--text-primary);
    padding: 9px 14px 9px 40px; border-radius: var(--radius-sm);
    font-size: 13px; outline: none; transition: border-color 0.2s;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { border-color: var(--accent); }
.search-box i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); color: var(--text-muted); font-size: 15px;
}
.header-right { display: flex; align-items: center; gap: 20px; }
.header-icon {
    position: relative; background: var(--bg-input);
    border: 1px solid var(--border-color); border-radius: var(--radius-xs);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.header-icon:hover { color: var(--accent); border-color: var(--accent); }
.header-icon .notif-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; background: var(--danger); border-radius: 50%;
}
.user-dropdown { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.user-dropdown .user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--accent);
}
.user-dropdown .user-info { text-align: right; }
.user-dropdown .user-info .name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-dropdown .user-info .role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

/* Dropdown */
.dropdown-panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); min-width: 200px;
    box-shadow: var(--shadow); display: none; z-index: 1000; overflow: hidden;
}
.dropdown-panel.show { display: block; }
.dropdown-panel a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; color: var(--text-secondary);
    font-size: 13px; transition: background 0.15s;
}
.dropdown-panel a:hover { background: var(--bg-input); color: var(--text-primary); }
.dropdown-panel a i { width: 18px; text-align: center; }
.dropdown-divider { border-top: 1px solid var(--border-color); margin: 4px 0; }

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content { padding: 28px; }
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.page-header .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.page-header .breadcrumb a { color: var(--text-secondary); }
.page-header .breadcrumb span { color: var(--text-muted); }

/* ============================================
   HERO / WELCOME CARD
   ============================================ */
.welcome-card {
    background: var(--gradient-hero); border-radius: var(--radius);
    padding: 32px 36px; position: relative; overflow: hidden; margin-bottom: 28px;
}
.welcome-card::after {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 200px; height: 200px; background: rgba(255,255,255,0.08); border-radius: 50%;
}
.welcome-card h2 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.welcome-card p { color: rgba(255,255,255,0.85); font-size: 14px; max-width: 500px; }
.welcome-card .btn-welcome {
    margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.2); color: #fff;
    padding: 8px 20px; border-radius: var(--radius-xs);
    font-size: 13px; font-weight: 600; backdrop-filter: blur(4px); transition: background 0.2s;
}
.welcome-card .btn-welcome:hover { background: rgba(255,255,255,0.3); }

/* ============================================
   STAT CARDS
   ============================================ */
.stat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; margin-bottom: 28px;
}
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 22px;
    display: flex; align-items: flex-start; gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.stat-card .stat-icon.blue { background: var(--accent-soft); color: var(--accent); }
.stat-card .stat-icon.green { background: var(--success-soft); color: var(--success); }
.stat-card .stat-icon.yellow { background: var(--warning-soft); color: var(--warning); }
.stat-card .stat-icon.red { background: var(--danger-soft); color: var(--danger); }
.stat-card .stat-icon.purple { background: var(--info-soft); color: var(--info); }
.stat-card .stat-details h3 { font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-card .stat-details p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   CARDS / PANELS
   ============================================ */
.card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--border-color);
}
.card-header h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.card-header .card-action { font-size: 12px; color: var(--accent); cursor: pointer; font-weight: 500; }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border-color); text-align: center; }

/* ============================================
   TABLES
   ============================================ */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 12px 16px; text-align: left;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-input); white-space: nowrap;
}
.data-table td {
    padding: 12px 16px; font-size: 13px; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color); vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--bg-card-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.form-control {
    width: 100%; background: var(--bg-input);
    border: 1px solid var(--border-color); color: var(--text-primary);
    padding: 10px 14px; border-radius: var(--radius-xs);
    font-size: 13px; outline: none; transition: border-color 0.2s;
    font-family: var(--font-family);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; appearance: auto; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.form-check input[type="checkbox"],
.form-check input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: var(--radius-xs);
    font-size: 13px; font-weight: 600; cursor: pointer; border: none;
    transition: all 0.2s; font-family: var(--font-family); text-decoration: none;
}
.btn i { font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; color: #fff; }
.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { background: #d97706; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-secondary { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-secondary:hover { color: var(--text-primary); border-color: var(--text-muted); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: var(--radius-xs); }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; line-height: 1.4;
}
.badge-primary { background: var(--accent-soft); color: var(--accent); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress { width: 100%; height: 8px; background: var(--bg-input); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.6s ease; }
.progress-bar.green { background: var(--success); }
.progress-bar.yellow { background: var(--warning); }
.progress-bar.red { background: var(--danger); }

/* ============================================
   SCHEDULE LIST
   ============================================ */
.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.schedule-item {
    display: flex; gap: 12px; padding: 12px;
    background: var(--bg-card-hover); border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}
.schedule-item.live { border-left-color: var(--danger); }
.schedule-item.completed { border-left-color: var(--success); }
.schedule-item .time { font-size: 11px; color: var(--text-muted); min-width: 60px; }
.schedule-item .details h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.schedule-item .details p { font-size: 11px; color: var(--text-muted); }

/* ============================================
   CHARTS
   ============================================ */
.chart-container { position: relative; width: 100%; min-height: 250px; }
.circular-progress {
    position: relative; width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
}
.circular-progress svg { transform: rotate(-90deg); }
.circular-progress .value { position: absolute; font-size: 16px; font-weight: 700; color: var(--text-primary); }

/* ============================================
   LIST ITEMS
   ============================================ */
.list-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--border-color);
}
.list-item:last-child { border-bottom: none; }
.list-item .item-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.list-item .item-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.list-item .item-details { flex: 1; min-width: 0; }
.list-item .item-details h4 {
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-item .item-details p { font-size: 11px; color: var(--text-muted); }
.list-item .item-action { flex-shrink: 0; }

/* ============================================
   MODALS
   The overlay is a separate <div> injected by JS
   as a direct child of <body>. It blocks all
   content. The .modal-backdrop sits on top of
   the overlay with transparent background and
   only handles flex-centering the dialog.
   ============================================ */
body.modal-open { overflow: hidden !important; }

.edunexus-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999998;
}
.edunexus-overlay.show {
    display: block;
}

.edu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.edu-modal.show {
    display: flex;
}

.edu-modal-dialog {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    position: relative;
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 20px; cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 22px; }
.modal-footer {
    padding: 14px 22px; border-top: 1px solid var(--border-color);
    display: flex; justify-content: flex-end; gap: 8px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 18px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.alert-info { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(14,165,233,0.2); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-item .page-link {
    background: var(--bg-input); border: 1px solid var(--border-color);
    color: var(--text-secondary); padding: 6px 14px; font-size: 13px;
}
.pagination .page-item.active .page-link {
    background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg-primary); position: relative;
}
.login-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 40px;
    width: 420px; max-width: 95%; box-shadow: var(--shadow);
}
.login-card .login-logo { text-align: center; margin-bottom: 28px; }
.login-card .login-logo img { height: 50px; }
.login-card h2 { text-align: center; font-size: 22px; margin-bottom: 6px; }
.login-card .subtitle { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state h4 { font-size: 16px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ============================================
   TABS
   ============================================ */
.tab-nav {
    display: flex; gap: 0; border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px; overflow-x: auto;
}
.tab-nav .tab-item {
    padding: 10px 20px; font-size: 13px; font-weight: 500;
    color: var(--text-muted); border-bottom: 2px solid transparent;
    cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.tab-nav .tab-item:hover { color: var(--text-primary); }
.tab-nav .tab-item.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================
   NOTIFICATION PANEL
   ============================================ */
.notif-panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 360px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); display: none; z-index: 1000;
    max-height: 400px; overflow-y: auto;
}
.notif-panel.show { display: block; }
.notif-panel .notif-header {
    padding: 14px 16px; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
}
.notif-panel .notif-header h4 { font-size: 14px; font-weight: 600; }
.notif-item {
    display: flex; gap: 12px; padding: 12px 16px;
    border-bottom: 1px solid var(--border-color); transition: background 0.15s;
}
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { background: rgba(14,165,233,0.04); }
.notif-item .notif-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.notif-item .notif-body h5 { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.notif-item .notif-body p { font-size: 11px; color: var(--text-muted); }

/* ============================================
   THREE.JS CANVAS (login)
   ============================================ */
#three-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .header-left .menu-toggle { display: block; }
    .search-box { width: 200px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .page-content { padding: 16px; }
    .search-box { display: none; }
    .stat-grid { grid-template-columns: 1fr; }
    .welcome-card { padding: 24px; }
    .welcome-card h2 { font-size: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .login-card { padding: 24px; }
    .edu-modal-dialog { width: 95%; }
    .header-right .user-info { display: none; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-md { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
