/* ──────────────────────────────────────────────────────────
 *  EduNova LMS — Global Stylesheet (extracted from template)
 *  Themes are applied via JS body class + CSS variables.
 * ────────────────────────────────────────────────────────── */

:root {
  --bg: #0d0f14;
  --surface: #13161d;
  --surface2: #1a1e28;
  --border: #242836;
  --accent: #4f8ef7;
  --accent2: #7c3aed;
  --accent3: #10b981;
  --accent4: #f59e0b;
  --accent5: #ef4444;
  --text: #e8eaf2;
  --muted: #6b7280;
  --sidebar-w: 260px;
  --header-h: 64px;
}

/* ─── LIGHT MODE ─── */
body.light {
  --bg: #f0f2f7;
  --surface: #ffffff;
  --surface2: #e8eaf2;
  --border: #d1d5e0;
  --text: #111827;
  --muted: #6b7280;
}
body.light .header { background: rgba(240,242,247,.9); }
body.light .welcome-banner { background: linear-gradient(135deg,#dce8ff 0%,#ede9ff 60%,#d6eaff 100%); }
body.light .welcome-banner::before { background: radial-gradient(circle,rgba(79,142,247,.15),transparent 70%); }
body.light .welcome-banner::after  { background: radial-gradient(circle,rgba(124,58,237,.1),transparent 70%); }
body.light .brand-logo { box-shadow: 0 2px 8px rgba(79,142,247,.3); }
body.light .stat-card:hover, body.light .course-card:hover { box-shadow: 0 4px 20px rgba(79,142,247,.1); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  width: 52px; height: 28px; border-radius: 14px;
  background: var(--surface2); border: 1px solid var(--border);
  cursor: pointer; position: relative; transition: background .3s;
  flex-shrink: 0;
}
.theme-toggle .knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff;
}
body.light .theme-toggle .knob { transform: translateX(24px); }
body.light .theme-toggle { background: #c7d9ff; border-color: var(--accent); }

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 200; transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; overflow-x: hidden;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 16px; color: #fff; flex-shrink: 0; }
.brand-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.brand-name span { color: var(--accent); }
.sidebar-section { padding: 16px 12px 4px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 1px 8px; border-radius: 8px; cursor: pointer; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 400; transition: all .15s; position: relative; }
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: linear-gradient(135deg, rgba(79,142,247,.15), rgba(124,58,237,.1)); color: var(--accent); font-weight: 500; }
.nav-item.active::before { content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--accent); border-radius: 0 3px 3px 0; }
.nav-item i { width: 18px; text-align: center; font-size: 15px; }
.nav-badge { margin-left: auto; background: var(--accent5); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center; }
.nav-badge.green { background: var(--accent3); }
.nav-badge.amber { background: var(--accent4); }
.sidebar-footer { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--surface2); cursor: pointer; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #4f8ef7, #7c3aed); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--muted); }

/* sub-menus */
.nav-parent { position: relative; }
.nav-chevron { margin-left: auto; font-size: 11px; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.nav-parent.open > .nav-item .nav-chevron { transform: rotate(90deg); }
.nav-sub { overflow: hidden; max-height: 0; transition: max-height .3s cubic-bezier(.4,0,.2,1); }
.nav-parent.open > .nav-sub { max-height: 400px; }
.nav-sub-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 42px; margin: 1px 8px; border-radius: 7px; cursor: pointer; text-decoration: none; color: var(--muted); font-size: 13px; transition: all .15s; }
.nav-sub-item:hover { background: var(--surface2); color: var(--text); }
.nav-sub-item.active { color: var(--accent); background: rgba(79,142,247,.08); }
.sub-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.nav-sub-item:hover .sub-dot, .nav-sub-item.active .sub-dot { background: var(--accent); }

/* ─── HEADER ─── */
.header { position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: var(--header-h); background: rgba(13,15,20,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 24px; z-index: 100; transition: left .3s; }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; padding: 6px; }
.page-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-left: 8px; }
.breadcrumb span { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-bar { display: flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px; width: 220px; transition: width .3s, border-color .2s; }
.search-bar:focus-within { border-color: var(--accent); width: 280px; }
.search-bar input { background: none; border: none; outline: none; color: var(--text); font-size: 13px; width: 100%; }
.search-bar i { color: var(--muted); font-size: 13px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 15px; position: relative; transition: all .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent5); border: 2px solid var(--bg); position: absolute; top: 6px; right: 6px; }

/* dropdowns */
.hdr-drop-wrap { position: relative; }
.hdr-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.4); z-index: 500; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; overflow: hidden; }
.hdr-dropdown.profile-dd { width: 220px; }
.hdr-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dd-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; }
.dd-mark-all { font-size: 11px; color: var(--accent); cursor: pointer; }
.dd-mark-all:hover { text-decoration: underline; }
.dd-list { max-height: 300px; overflow-y: auto; }
.dd-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; }
.dd-item:last-child { border-bottom: none; }
.dd-item:hover { background: var(--surface2); }
.dd-item.unread { background: rgba(79,142,247,.04); }
.dd-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; font-weight: 700; color: #fff; }
.dd-icon-wrap { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.dd-body { flex: 1; min-width: 0; }
.dd-body p { font-size: 13px; line-height: 1.4; color: var(--text); }
.dd-body p strong { font-weight: 600; }
.dd-body .dd-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.dd-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }
.dd-footer { padding: 10px 16px; border-top: 1px solid var(--border); text-align: center; }
.dd-footer a { font-size: 13px; color: var(--accent); text-decoration: none; }
.dd-footer a:hover { text-decoration: underline; }
.profile-info { padding: 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.profile-avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #fff; flex-shrink: 0; }
.profile-name { font-size: 14px; font-weight: 600; }
.profile-email { font-size: 11px; color: var(--muted); }
.profile-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: var(--muted); text-decoration: none; transition: all .15s; }
.profile-menu a:hover { background: var(--surface2); color: var(--text); }
.profile-menu a i { width: 16px; text-align: center; font-size: 13px; }
.profile-menu .logout { color: var(--accent5) !important; }
.profile-menu .pm-sep { height: 1px; background: var(--border); margin: 4px 0; }
.msg-sender { font-size: 13px; font-weight: 600; }
.msg-preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── MAIN ─── */
.main { margin-left: var(--sidebar-w); padding-top: var(--header-h); min-height: 100vh; transition: margin-left .3s; }
.content { padding: 28px; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150; }
.overlay.open { display: block; }

/* ─── BUTTONS ─── */
.btn { padding: 9px 18px; border-radius: 9px; font-size: 13px; font-weight: 500; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: rgba(239,68,68,.15); color: var(--accent5); border: 1px solid rgba(239,68,68,.3); }
.btn-block { width: 100%; justify-content: center; }

/* ─── PILLS ─── */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.pill-green { background: rgba(16,185,129,.15); color: var(--accent3); }
.pill-amber { background: rgba(245,158,11,.15); color: var(--accent4); }
.pill-blue { background: rgba(79,142,247,.15); color: var(--accent); }
.pill-red { background: rgba(239,68,68,.15); color: var(--accent5); }
.pill-gray { background: rgba(107,114,128,.15); color: var(--muted); }

/* ─── ICONS ─── */
.ic-blue { background: rgba(79,142,247,.15); color: var(--accent); }
.ic-purple { background: rgba(124,58,237,.15); color: var(--accent2); }
.ic-green { background: rgba(16,185,129,.15); color: var(--accent3); }
.ic-amber { background: rgba(245,158,11,.15); color: var(--accent4); }
.ic-red { background: rgba(239,68,68,.15); color: var(--accent5); }

/* ─── DASHBOARD ─── */
.welcome-banner { background: linear-gradient(135deg, #1e2a4a 0%, #1a1228 60%, #0d1520 100%); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; display: flex; align-items: center; gap: 20px; margin-bottom: 24px; position: relative; overflow: hidden; }
.welcome-banner::before { content: ''; position: absolute; top: -60px; right: -40px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(79,142,247,.2), transparent 70%); border-radius: 50%; }
.welcome-banner::after { content: ''; position: absolute; bottom: -80px; left: 40%; width: 160px; height: 160px; background: radial-gradient(circle, rgba(124,58,237,.15), transparent 70%); border-radius: 50%; }
.welcome-text h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.welcome-text p { color: var(--muted); font-size: 14px; }
.welcome-text .hi { color: var(--accent); }
.welcome-actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; z-index: 1; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.stat-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.stat-change { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--accent3); }
.stat-change.down { color: var(--accent5); }

.charts-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; }
.card-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-action { font-size: 12px; color: var(--accent); cursor: pointer; text-decoration: none; }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars { display: flex; gap: 3px; align-items: flex-end; width: 100%; }
.bar { flex: 1; border-radius: 4px 4px 0 0; transition: opacity .2s; min-height: 4px; }
.bar:hover { opacity: .75; }
.bar-label { font-size: 10px; color: var(--muted); }
.b-blue { background: linear-gradient(to top, var(--accent), rgba(79,142,247,.5)); }
.b-purple { background: linear-gradient(to top, var(--accent2), rgba(124,58,237,.5)); }

.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-svg { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-val { margin-left: auto; font-weight: 600; font-size: 13px; }

.bottom-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 8px 10px; color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.data-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }
.activity-list { display: flex; flex-direction: column; gap: 14px; }
.act-item { display: flex; gap: 12px; align-items: flex-start; }
.act-icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.act-text { font-size: 13px; line-height: 1.4; }
.act-text strong { color: var(--text); }
.act-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
.prog-list { display: flex; flex-direction: column; gap: 14px; }
.prog-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.prog-name { font-size: 13px; font-weight: 500; }
.prog-pct { font-size: 12px; color: var(--muted); }
.prog-bar-bg { height: 6px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.prog-bar-fill { height: 100%; border-radius: 4px; }

/* ─── COURSE PAGE ─── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-header-left h1 { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.page-header-left p { color: var(--muted); font-size: 14px; }
.page-header-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.filter-bar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.filter-select { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--text); font-size: 13px; cursor: pointer; outline: none; font-family: 'DM Sans', sans-serif; }
.filter-select:focus { border-color: var(--accent); }
.filter-sep { width: 1px; height: 24px; background: var(--border); }
.tab-pills { display: flex; gap: 4px; }
.tab-pill { padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--muted); font-family: 'DM Sans', sans-serif; transition: all .15s; text-decoration: none; display: inline-block; }
.tab-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.tab-pill:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

.stats-strip { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.strip-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; flex: 1; min-width: 120px; }
.strip-num { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.strip-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.course-thumb { height: 120px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.thumb-cs { background: linear-gradient(135deg, #1e2a4a, #0d1a36); }
.thumb-ec { background: linear-gradient(135deg, #1e1a36, #0d0d20); }
.thumb-mb { background: linear-gradient(135deg, #0d2218, #0a1a10); }
.thumb-me { background: linear-gradient(135deg, #2a1e0d, #1a1005); }
.thumb-ph { background: linear-gradient(135deg, #2a0d1e, #1a0510); }
.course-dept-tag { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.4); }
.course-status-tag { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.st-active { background: rgba(16,185,129,.2); color: var(--accent3); border: 1px solid rgba(16,185,129,.3); }
.st-draft { background: rgba(245,158,11,.2); color: var(--accent4); border: 1px solid rgba(245,158,11,.3); }
.st-upcoming { background: rgba(79,142,247,.2); color: var(--accent); border: 1px solid rgba(79,142,247,.3); }
.st-archived { background: rgba(107,114,128,.2); color: var(--muted); border: 1px solid rgba(107,114,128,.3); }
.course-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.course-code { font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 4px; letter-spacing: .5px; }
.course-name { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.course-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; flex: 1; }
.course-faculty { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fac-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; }
.fac-name { font-size: 12px; color: var(--muted); }
.course-meta { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.meta-item i { font-size: 11px; }
.course-actions { display: flex; gap: 8px; }
.ca-btn { flex: 1; padding: 7px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); font-family: 'DM Sans', sans-serif; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 5px; text-decoration: none; }
.ca-btn:hover { border-color: var(--accent); color: var(--accent); }
.ca-btn-primary { background: rgba(79,142,247,.1); border-color: rgba(79,142,247,.3); color: var(--accent); }

/* ─── FORMS ─── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.form-input { background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; color: var(--text); font-size: 14px; outline: none; font-family: 'DM Sans', sans-serif; transition: border-color .15s; width: 100%; }
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--muted); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 90px; font-family: inherit; }

/* ─── FLASH ─── */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.flash-success { background: rgba(16,185,129,.15); color: var(--accent3); border: 1px solid rgba(16,185,129,.3); }
.flash-error { background: rgba(239,68,68,.15); color: var(--accent5); border: 1px solid rgba(239,68,68,.3); }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; }
.page-link { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; text-decoration: none; }
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── AUTH ─── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at top right, rgba(79,142,247,.1), transparent 60%), radial-gradient(circle at bottom left, rgba(124,58,237,.08), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; justify-content: center; }
.auth-card h1 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 6px; text-align: center; }
.auth-card .subtle { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 12px; color: var(--muted); }
.auth-foot a { color: var(--accent); text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .header { left: 0; }
  .main { margin-left: 0; }
  .hamburger { display: flex; }
  .search-bar { width: 140px; }
  .welcome-actions { display: none; }
  .bottom-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .content { padding: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value { font-size: 22px; }
  .welcome-banner { padding: 18px 20px; }
  .welcome-text h2 { font-size: 17px; }
  .courses-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
}
