/* ExcelLab LMS — Microsoft Fluent × Ocean Green Design System v11 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ────────────────────────────────── */
:root {
  /* Ocean Green Palette */
  --og-50:  #e6f7f5;
  --og-100: #b3e8e1;
  --og-200: #80d9cd;
  --og-300: #4dcab9;
  --og-400: #26bba7;
  --og-500: #00ac93;  /* Core Ocean Green */
  --og-600: #009e87;
  --og-700: #008d77;
  --og-800: #007d67;
  --og-900: #005e4c;

  --primary:       #008272;  /* Ocean Green primary */
  --primary-dark:  #006659;
  --primary-light: #00a394;
  --primary-ghost: rgba(0,130,114,.09);
  --accent:        #0078d4;  /* Microsoft blue accent */
  --accent-dark:   #005a9e;
  --accent-ghost:  rgba(0,120,212,.09);

  --neutral-0:   #ffffff;
  --neutral-50:  #f8fafa;
  --neutral-100: #f0f4f4;
  --neutral-200: #e0e8e7;
  --neutral-300: #c8d6d4;
  --neutral-400: #98b0ad;
  --neutral-500: #6b8a87;
  --neutral-600: #4a6461;
  --neutral-700: #334a48;
  --neutral-800: #1e2e2c;
  --neutral-900: #0f1817;

  --danger:  #c50f1f;
  --warning: #986f0b;
  --info:    #0078d4;
  --success: var(--primary);

  /* Fluent square */
  --radius:    2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.07);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.14);

  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: all .2s ease;

  --sidebar-w: 240px;
  --topbar-h:  48px;

  /* Mobile touch targets - minimum 44px */
  --touch-min: 44px;
  --space-xs: 4px;
  --space-sm: 6px;
  --space-md: 10px;
  --space-lg: 16px;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14.5px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--neutral-50);
  color: var(--neutral-800);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography ──────────────────────────────────── */
h1 { font-size: 1.8rem;  font-weight: 800; line-height: 1.25; letter-spacing: 0.01em; }
h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.3;  letter-spacing: 0.01em; }
h3 { font-size: 1.1rem;  font-weight: 600; letter-spacing: 0.01em; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
h5 { font-size: .85rem;  font-weight: 600; letter-spacing: 0.02em; }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--neutral-500); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.fw-extrabold { font-weight: 800; }
.small  { font-size: .8rem; }
.text-warning { color: var(--warning); }
.text-info    { color: var(--info); }

/* ── Layout ──────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm  { gap: 8px; }
.flex-gap     { gap: 16px; }
.flex-gap-lg  { gap: 24px; }
.flex-wrap    { flex-wrap: wrap; }
.flex-col     { flex-direction: column; }
.flex-column  { flex-direction: column; }
.align-center { align-items: center; }

.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 20px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ── Card ─────────────────────────────────────────── */
.card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-body   { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--neutral-100);
  background: var(--neutral-50);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: .84rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none !important;
  line-height: 1.4;
  letter-spacing: .01em;
}
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn i { font-size: .82em; }

.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.btn-secondary { background: var(--neutral-100); color: var(--neutral-700); border-color: var(--neutral-300); }
.btn-secondary:hover { background: var(--neutral-200); border-color: var(--neutral-400); color: var(--neutral-800); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-ghost); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #a00e1a; border-color: #a00e1a; color: #fff; }

.btn-warning { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.btn-warning:hover { background: #d97706; border-color: #d97706; color: #fff; }

.btn-info    { background: var(--info); color: #fff; border-color: var(--info); }
.btn-info:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--neutral-600); border-color: transparent; }
.btn-ghost:hover { background: var(--neutral-100); color: var(--neutral-800); }

.btn-sm   { padding: 5px 11px; font-size: .79rem; }
.btn-lg   { padding: 11px 24px; font-size: .95rem; }
.btn-xl   { padding: 14px 32px; font-size: 1rem; }
.w-100    { width: 100%; justify-content: center; }

/* ── Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: var(--neutral-100); color: var(--neutral-600); }
.badge-teal   { background: var(--og-50); color: var(--og-800); }
.badge-orange { background: #fff7ed; color: #9a3412; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }

/* ── Forms ────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 5px;
}
.req { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 8px 11px;
  font-size: .875rem;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius);
  background: var(--neutral-0);
  color: var(--neutral-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,130,114,.15);
}
.form-control:disabled { background: var(--neutral-100); color: var(--neutral-500); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .76rem; color: var(--neutral-500); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }

/* ── Table ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.data-table th {
  padding: 10px 14px;
  text-align: left;
  background: var(--neutral-50);
  border-bottom: 2px solid var(--og-100);
  font-weight: 700;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--neutral-600);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--neutral-100);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--og-50); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Alert ────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: .875rem;
  margin-bottom: 16px;
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: var(--primary); }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: var(--danger); }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: var(--info); }

/* ── Modal ────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  animation: modal-in .18s ease;
  position: relative;
  flex-shrink: 0;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(-18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; color: var(--neutral-800); }
.modal-body   { padding: 20px; max-height: 70vh; overflow-y: auto; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--neutral-200);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--neutral-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.btn-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--neutral-500);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: var(--transition);
  line-height: 1;
}
.btn-close:hover { background: var(--neutral-100); color: var(--neutral-800); }

/* ── Admin Layout ─────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #0d2422;
  color: rgba(255,255,255,.85);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  transition: transform var(--transition);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}
.sidebar-brand .logo-box {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}
.sidebar-brand span {
  font-weight: 700; font-size: .93rem;
  color: #fff; line-height: 1.3;
}
.sidebar-section { padding: 8px 0; }
.sidebar-section-label {
  padding: 6px 20px 3px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  font-size: .84rem;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: var(--transition);
  gap: 10px;
  border-left: 3px solid transparent;
  position: relative;
}
.sidebar-nav a .icon { width: 16px; text-align: center; font-size: .82rem; opacity: .75; }
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: #fff; border-left-color: rgba(255,255,255,.2); }
.sidebar-nav a.active { background: rgba(0,130,114,.22); color: #fff; border-left-color: var(--primary-light); font-weight: 600; }
.sidebar-nav a.active .icon { opacity: 1; }
.sidebar-badge {
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 900;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.topbar-site-name {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(0,130,114,.08);
  margin-left: 4px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-title { font-weight: 700; font-size: 1rem; color: var(--neutral-800); }
.breadcrumb { font-size: .8rem; color: var(--neutral-500); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem; color: #fff;
  cursor: pointer;
}

/* Main content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding-top: var(--topbar-h);
}
.page-content {
  padding: 28px 28px;
  flex: 1;
}
.page-header {
  margin-bottom: 24px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--neutral-800); }
.page-header p  { color: var(--neutral-500); margin-top: 4px; font-size: .88rem; }

/* ── Stat Card ────────────────────────────────────── */
.stat-card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-icon-green  { background: var(--og-50);  color: var(--primary); }
.stat-icon-blue   { background: #eff6ff; color: var(--info); }
.stat-icon-orange { background: #fff7ed; color: #c2410c; }
.stat-icon-purple { background: #f5f3ff; color: #6d28d9; }
.stat-info { min-width: 0; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--neutral-900); line-height: 1; }
.stat-label { font-size: .76rem; font-weight: 600; color: var(--neutral-500); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.stat-delta { font-size: .77rem; margin-top: 6px; }
.stat-delta.up   { color: var(--primary); }
.stat-delta.down { color: var(--danger); }

/* ── Course Cards ─────────────────────────────────── */
.course-card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.course-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--og-800) 0%, var(--og-600) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.35);
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-thumb-badge {
  position: absolute;
  top: 8px; right: 8px;
}
.course-body { padding: 14px 16px; flex: 1; }
.course-title { font-weight: 700; font-size: .92rem; color: var(--neutral-800); line-height: 1.4; }
.course-meta  { display: flex; gap: 10px; flex-wrap: wrap; font-size: .76rem; color: var(--neutral-500); }
.course-footer {
  padding: 11px 16px;
  border-top: 1px solid var(--neutral-100);
  background: var(--neutral-50);
}

/* ── Tabs ─────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 2px;
  background: var(--neutral-100);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--neutral-600);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover   { background: rgba(255,255,255,.6); color: var(--neutral-800); }
.tab-btn.active  { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.tab-panel       { display: none; }
.tab-panel.active { display: block; }

/* ── Nav / Public Header ──────────────────────────── */
.navbar {
  background: #0d2422;
  border-bottom: 2px solid var(--primary);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 200;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo-box {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff;
  flex-shrink: 0;
}
.navbar-brand span { font-weight: 800; font-size: 1rem; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 6px 12px;
  font-size: .84rem;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav-links a.active { background: var(--primary-ghost); color: var(--primary-light); }
.nav-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 7px 16px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
}
.nav-btn:hover { background: var(--primary-dark) !important; }

/* ── Flash messages ───────────────────────────────── */
.flash-banner {
  padding: 12px 24px;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid transparent;
}
.flash-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-danger  { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.flash-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.flash-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ── Sidebar hamburger (mobile) ───────────────────── */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--neutral-700);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}

/* ── Participant Layout ────────────────────────────── */
.participant-layout {
  display: flex;
  min-height: 100vh;
}
.participant-sidebar {
  width: 220px;
  background: #0d2422;
  color: rgba(255,255,255,.8);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.participant-main {
  margin-left: 220px;
  flex: 1;
  min-width: 0;
}

/* ── Curriculum / Lesson Items ────────────────────── */
.lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: .85rem;
  position: relative;
}
.lesson-item:hover { background: var(--og-50); }
.lesson-item.active { background: var(--primary-ghost); color: var(--primary); font-weight: 600; }
.lesson-item.locked { opacity: .55; cursor: not-allowed; }
.lesson-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}
.lesson-done  { background: var(--primary); color: #fff; }
.lesson-free  { background: var(--og-100); color: var(--primary); }
.lesson-lock  { background: var(--neutral-200); color: var(--neutral-400); }

/* ── Progress bar ─────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--neutral-200);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--og-400));
  border-radius: 3px;
  transition: width .4s ease;
}

/* ── Pill ─────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}
.pill-green  { background: #d1fae5; color: #065f46; }
.pill-blue   { background: #dbeafe; color: #1e40af; }
.pill-yellow { background: #fef3c7; color: #92400e; }
.pill-red    { background: #fee2e2; color: #991b1b; }
.pill-gray   { background: var(--neutral-100); color: var(--neutral-600); }

/* ── Divider ──────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--neutral-200); margin: 20px 0; }

/* ── Exam / Quiz Items ────────────────────────────── */
.exam-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.exam-card:hover { box-shadow: var(--shadow); }
.exam-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--og-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.exam-info { flex: 1; min-width: 0; }
.exam-title { font-weight: 700; font-size: .9rem; margin-bottom: 3px; }
.exam-meta  { font-size: .76rem; color: var(--neutral-500); }

/* ── Section header ───────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--og-100);
}
.section-header h2 { font-size: 1rem; font-weight: 700; color: var(--neutral-800); }

/* ── Dropdown ─────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 300;
  display: none;
  padding: 4px 0;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: .84rem;
  color: var(--neutral-700);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: var(--neutral-100); color: var(--neutral-900); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: #fef2f2; }
.dropdown-divider { border: none; border-top: 1px solid var(--neutral-200); margin: 4px 0; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { 
    position: fixed;
    transform: translateX(-100%); 
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  .topbar { left: 0; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .page-content { padding: 16px 12px; }
  .hide-mobile { display: none !important; }
  .topbar { padding: 0 12px; height: auto; min-height: var(--topbar-h); }
  .topbar-title { font-size: 0.9rem; }
  .container { padding: 0 12px; }
  .modal { max-width: 100%; margin: 0; border-radius: 0; min-height: 100vh; }
  .modal-overlay { padding: 0; align-items: flex-end; }
}

/* ── Utility overrides ────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.t-center    { text-align: center; }
.d-none      { display: none !important; }
.d-flex      { display: flex !important; }
.overflow-hidden { overflow: hidden; }
.rounded     { border-radius: var(--radius-md) !important; }
.cursor-pointer { cursor: pointer; }

/* ── Sidebar footer ───────────────────────────────── */
.sidebar-footer {
  margin-top: auto;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.sidebar-user-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem; color: #fff;
  flex-shrink: 0;
}
.sidebar-user-name { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); }
.sidebar-user-role { font-size: .7rem; color: rgba(255,255,255,.45); text-transform: capitalize; }

/* ── bKash SMS & Payment ──────────────────────────── */
.sms-log-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--neutral-100);
  transition: var(--transition);
}
.sms-log-item:hover { background: var(--og-50); }
.sms-log-item:last-child { border-bottom: none; }
.sms-matched { border-left: 3px solid var(--primary); }
.sms-unmatched { border-left: 3px solid var(--warning); }
.sms-used { border-left: 3px solid var(--neutral-300); opacity: .6; }

/* ── Public course syllabus locked items ──────────── */
.syllabus-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--neutral-100);
}
.syllabus-item:last-child { border-bottom: none; }
.syllabus-item.free:hover { background: var(--og-50); cursor: pointer; }
.syllabus-item.locked { opacity: .65; }
.syllabus-lock-icon { color: var(--neutral-400); font-size: .9rem; }
.syllabus-free-icon { color: var(--primary); font-size: .9rem; }

/* ── Announce / Ticker Bar ─────────────────────────── */
.announce-bar {
  background: var(--primary);
  color: #fff;
  padding: 7px 0;
  overflow: hidden;
  font-size: .82rem;
  font-weight: 600;
}
.announce-scroll {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.announce-scroll:hover { animation-play-state: paused; }
.announce-item { padding-right: 60px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Public Navbar ─────────────────────────────────── */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.navbar-nav a {
  padding: 6px 13px;
  font-size: .84rem;
  color: rgba(255,255,255,.72);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 500;
}
.navbar-nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.navbar-nav a.active { color: #fff; background: rgba(255,255,255,.12); font-weight: 600; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: #0d2422;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.footer-link {
  color: var(--neutral-400);
  font-size: .84rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--primary-light); text-decoration: none; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 24px 0 16px;
}

/* ── Payment page specific ─────────────────────────── */
.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
@media (max-width: 860px) { .payment-layout { grid-template-columns: 1fr; } }

.acc-card {
  background: #fff;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.acc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--neutral-300);
}
.acc-card.bkash::before  { background: #e2136e; }
.acc-card.nagad::before  { background: #f05a28; }
.acc-card.rocket::before { background: #8b008b; }
.acc-card.selected, .acc-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.custom-file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--neutral-500);
}
.custom-file-upload:hover { border-color: var(--primary); background: var(--og-50); }
.custom-file-upload i { font-size: 1.8rem; color: var(--primary); }
.custom-file-upload input[type="file"] { display: none; }

.correction-alert {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.correction-alert h4 { color: var(--danger); margin-bottom: 6px; }
.correction-reason {
  background: #fff;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: .85rem;
  margin-top: 8px;
  color: var(--neutral-700);
}
.submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: var(--radius-md);
}

/* ── Pagination ────────────────────────────────────── */
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  color: var(--neutral-600);
  text-decoration: none;
  border: 1px solid var(--neutral-200);
  background: #fff;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Login / Auth pages ────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-100);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  text-decoration: none;
}
.auth-logo span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── Exam / Quiz specific ──────────────────────────── */
.exam-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
}
.exam-option:hover { border-color: var(--primary); background: var(--og-50); }
.exam-option.selected { border-color: var(--primary); background: var(--og-50); }
.exam-option input[type="radio"] { margin-top: 2px; accent-color: var(--primary); }

/* ── Option tile — participant take_exam.php ─────────── */
.option-tile {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1.5px solid var(--neutral-200);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.option-tile:hover {
  border-color: var(--primary);
  background: var(--primary-ghost);
}
.option-tile input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.option-tile.selected {
  border-color: var(--primary);
  background: var(--primary-ghost);
}
.option-tile.selected .tile-key {
  background: var(--primary) !important;
  color: #fff !important;
}
.locked-question .option-tile:not(.selected):hover {
  border-color: var(--neutral-200);
  background: transparent;
  cursor: default;
}

/* ── Curriculum player ─────────────────────────────── */
.curriculum-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  min-height: calc(100vh - 58px);
}
.curriculum-sidebar {
  background: #fff;
  border-right: 1px solid var(--neutral-200);
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: calc(100vh - 58px);
}
.curriculum-content {
  padding: 28px;
  min-width: 0;
}
@media (max-width: 768px) {
  .curriculum-layout { grid-template-columns: 1fr; }
  .curriculum-sidebar { position: relative; height: auto; max-height: 240px; }
  .curriculum-content { padding: 16px; }
}

/* ── Video embed ───────────────────────────────────── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Topbar flash fix ──────────────────────────────── */
.topbar .alert {
  margin: 0;
  padding: 6px 14px;
  font-size: .8rem;
  border-radius: var(--radius);
}

/* ── Dark sidebar nav highlight ───────────────────── */
.sidebar-nav .badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
}

/* ── Table checkbox ────────────────────────────────── */
.row-cb { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

/* ── Section label utility ─────────────────────────── */
.label-section {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--neutral-500);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--neutral-200);
}

/* ── Exam card icon variants ───────────────────────── */
.exam-icon.mcq     { background: linear-gradient(135deg,var(--primary),var(--og-400)); }
.exam-icon.written { background: linear-gradient(135deg,#6d28d9,#8b5cf6); }
.exam-sub          { font-size: .76rem; color: var(--neutral-500); margin-top: 2px; }

/* ── WhatsApp contact badge ────────────────────────── */
.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: var(--transition);
}
.wa-badge:hover { background: #128c7e; color: #fff; text-decoration: none; }
.wa-badge i { font-size: 1.1rem; }

/* ── Stat icon color aliases (admin/index.php uses .green/.blue etc.) ── */
.stat-icon.green  { background: var(--og-50);  color: var(--primary); }
.stat-icon.blue   { background: #eff6ff; color: var(--info); }
.stat-icon.yellow { background: #fffbeb; color: #b45309; }
.stat-icon.red    { background: #fef2f2; color: var(--danger); }
.stat-icon.purple { background: #f5f3ff; color: #6d28d9; }
.stat-icon.orange { background: #fff7ed; color: #c2410c; }

/* ── Written Exam Status Dashboard ────────────────── */
.status-dash-wrapper {
  margin-top: -12px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.status-dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--neutral-200);
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
}

.status-dash-score-mini {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--og-50);
}
.status-dash-score-mini .score-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  z-index: 1;
}
.status-dash-score-mini svg {
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 48px;
  transform: rotate(-90deg);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 12px;
}

.feedback-card-premium {
  border-left: 4px solid var(--primary) !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feedback-bubble {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--neutral-700);
}

.sidebar-compact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--neutral-0);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: var(--transition);
}
.sidebar-file-item:hover {
  border-color: var(--primary);
  background: var(--og-50);
  transform: translateY(-1px);
}

.q-box-compact {
  padding: 10px 0;
  border-bottom: 1px solid var(--neutral-100);
}
.q-box-compact:last-child { border-bottom: none; }
.q-box-compact .q-meta {
  font-size: .65rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.q-box-compact .q-text {
  font-size: .8rem;
  color: var(--neutral-600);
  line-height: 1.5;
}

.retention-alert-permanent {
  margin-top: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #92400e;
  font-size: .78rem;
}

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .status-dash-wrapper { padding: 0 12px; }
}

/* ── Sidebar Sub-menu Styling ─────────────────────── */
.sidebar-nav .nav-sub-list {
  background: rgba(0,0,0,0.15);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
}

.sidebar-nav .nav-sub-item {
  padding-left: 48px !important;
  font-size: 0.8rem !important;
  opacity: 0.8;
  height: 34px;
}

.sidebar-nav .nav-sub-item:hover {
  opacity: 1;
  background: rgba(255,255,255,0.05);
}

.sidebar-nav .nav-sub-item.active {
  background: rgba(0,130,114,0.15) !important;
  opacity: 1;
  font-weight: 700;
  border-left-color: var(--primary);
}

.sidebar-nav .has-children .icon-chevron {
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform 0.2s;
  opacity: 0.5;
}

.sidebar-nav .has-children.active .icon-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

/* =====================================================
   MOBILE-FIRST COMPACT DESIGN SYSTEM
   ===================================================== */

/* ── Compact Spacing Utilities ─────────────────────── */
.m-0 { margin: 0 !important; }
.m-xs { margin: var(--space-xs) !important; }
.m-sm { margin: var(--space-sm) !important; }
.m-md { margin: var(--space-md) !important; }
.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--space-xs) !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-xs) !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-0 { padding: 0 !important; }
.p-xs { padding: var(--space-xs) !important; }
.p-sm { padding: var(--space-sm) !important; }
.p-md { padding: var(--space-md) !important; }
.p-lg { padding: var(--space-lg) !important; }
/* Numeric padding scale */
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-5 { padding: 24px !important; }
.px-xs { padding-left: var(--space-xs); padding-right: var(--space-xs); }
.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.py-xs { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-1 { padding-top: 4px !important;  padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important;  padding-bottom: 8px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-5 { padding-top: 40px !important; padding-bottom: 40px !important; }
.px-1 { padding-left: 4px !important;  padding-right: 4px !important; }
.px-2 { padding-left: 8px !important;  padding-right: 8px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.px-5 { padding-left: 24px !important; padding-right: 24px !important; }

/* ── Compact Layout ───────────────────────────────── */
.compact .form-group { margin-bottom: var(--space-sm); }
.compact .form-label { margin-bottom: 2px; font-size: .78rem; }
.compact .form-control { padding: 6px 9px; font-size: .85rem; min-height: var(--touch-min); }
.compact .btn { padding: 6px 12px; font-size: .8rem; min-height: var(--touch-min); }
.compact .card-header { padding: 10px 14px; }
.compact .card-body { padding: 14px; }
.compact .card-footer { padding: 10px 14px; }
.compact .page-content { padding: var(--space-md); }
.compact .data-table th,
.compact .data-table td { padding: 8px 10px; }
.compact .stat-card { padding: 14px; }

/* ── Flex Utilities ────────────────────────────────── */
.flex-1 { flex: 1 !important; min-width: 0; }
.min-w-0 { min-width: 0; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-flex-end { justify-content: flex-end !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.align-center { align-items: center !important; }
.align-stretch { align-items: stretch !important; }

/* ── Touch-Friendly Elements ──────────────────────── */
.touch-target {
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
}

.touch-btn {
  min-height: var(--touch-min);
  padding: 10px 16px;
  font-size: .9rem;
  font-weight: 600;
}

/* ── Mobile Modal/Popup Fixes ───────────────────────── */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
  }
  .modal-header {
    padding: 14px 16px;
    flex-shrink: 0;
  }
  .modal-body {
    padding: 16px;
    max-height: calc(95vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-footer {
    padding: 12px 16px;
    flex-shrink: 0;
  }
  .modal-fullscreen-mobile {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }
  .modal-fullscreen-mobile .modal-body {
    max-height: calc(100vh - 120px);
  }
}

/* ── Mobile Table Scrolling ───────────────────────── */
.table-mobile-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -var(--space-md);
  padding: 0 var(--space-md);
}
.table-mobile-scroll table {
  min-width: 600px;
}

/* ── Mobile Form Improvements ──────────────────────── */
@media (max-width: 600px) {
  .form-control,
  select.form-control,
  textarea.form-control,
  input.form-control {
    font-size: 16px !important; /* Prevent iOS zoom */
    min-height: var(--touch-min);
    padding: 10px 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .btn {
    min-height: var(--touch-min);
    padding: 10px 16px;
  }
  .btn-sm {
    min-height: 36px;
    padding: 7px 12px;
  }
}

/* ── Mobile Sidebar Improvements ───────────────────── */
@media (max-width: 900px) {
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-brand {
    padding: 16px;
  }
  .sidebar-nav a {
    padding: 12px 16px;
    font-size: .9rem;
    min-height: var(--touch-min);
  }
  .sidebar-section-label {
    padding: 8px 16px 4px;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
  }
  .sidebar-overlay.open {
    display: block;
  }
}

/* ── Mobile Card Layouts ──────────────────────────── */
@media (max-width: 600px) {
  .card {
    margin: 0 -var(--space-xs);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .card-header,
  .card-body,
  .card-footer {
    padding: var(--space-sm) var(--space-md);
  }
  .stat-card {
    padding: var(--space-md);
  }
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .stat-value {
    font-size: 1.4rem;
  }
}

/* ── Mobile Grid Adjustments ───────────────────────── */
@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .container,
  .container-sm,
  .container-lg {
    padding: 0 var(--space-md);
  }
  .page-content {
    padding: var(--space-md);
  }
  .page-header {
    margin-bottom: var(--space-md);
  }
  .page-header h1 {
    font-size: 1.3rem;
  }
}

/* ── Mobile Tab Bar ────────────────────────────────── */
@media (max-width: 600px) {
  .tab-bar {
    padding: 2px;
    gap: 1px;
  }
  .tab-btn {
    padding: 8px 12px;
    font-size: .8rem;
    flex: 1;
    text-align: center;
    min-height: var(--touch-min);
  }
}

/* ── Mobile Exam/Quiz Cards ─────────────────────────── */
@media (max-width: 600px) {
  .exam-card {
    padding: var(--space-md);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .exam-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .exam-option {
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
  }
}

/* ── Mobile Navigation Sub-menu ───────────────────── */
.nav-sub-list {
  display: none;
}
.nav-sub-list.open {
  display: flex;
}
.has-children {
  cursor: pointer;
}

/* ── Utility Classes for Common Inline Styles ──────── */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.break-word {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Display utilities */
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }

/* Mobile visibility */
@media (max-width: 600px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .show-mobile-flex { display: flex !important; }
}
@media (min-width: 601px) {
  .hide-desktop { display: none !important; }
}

/* ── Badge/Inline Elements ──────────────────────────── */
.badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Form Inline Layout ─────────────────────────────── */
.form-inline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.form-inline .form-group {
  margin-bottom: 0;
}

/* ── Scrollable containers for mobile ───────────────── */
.scrollable-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scrollable-y {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 60vh;
}
.scrollable-x::-webkit-scrollbar,
.scrollable-y::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.scrollable-x::-webkit-scrollbar-thumb,
.scrollable-y::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: 3px;
}

/* ── Fixed Bottom Actions (Mobile) ────────────────── */
@media (max-width: 600px) {
  .mobile-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--neutral-0);
    border-top: 1px solid var(--neutral-200);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    gap: var(--space-sm);
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0,0,0,.08);
  }
  .mobile-fixed-bottom + * {
    padding-bottom: 70px;
  }
}

/* ── Safe area insets for notched phones ───────────── */
@supports (padding: max(0px)) {
  .safe-area-inset {
    padding-left: max(var(--space-md), env(safe-area-inset-left));
    padding-right: max(var(--space-md), env(safe-area-inset-right));
    padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  }
}

/* ── WhatsApp Button ──────────────────────────────── */
.btn-whatsapp {
  background: #25D366 !important;
  color: #fff !important;
  border-color: #25D366 !important;
}
.btn-whatsapp:hover {
  background: #128c7e !important;
  border-color: #128c7e !important;
}

/* ── Padding utilities ─────────────────────────────── */
.pb-0 { padding-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ── Margin utilities ─────────────────────────────── */
.mr-sm { margin-right: var(--space-sm) !important; }
.mr-xs { margin-right: var(--space-xs) !important; }
.ml-sm { margin-left: var(--space-sm) !important; }
.mx-sm { margin-left: var(--space-sm) !important; margin-right: var(--space-sm) !important; }

/* ── Font weight utilities ─────────────────────────── */
.fw-bold { font-weight: 700 !important; }

/* ── Gap utilities ────────────────────────────────── */
.gap-xs { gap: var(--space-xs) !important; }
.gap-sm { gap: var(--space-sm) !important; }

/* ── Icon spacing utilities ───────────────────────── */
.icon-left { margin-right: 6px; }
.icon-right { margin-left: 6px; }

/* ── WhatsApp colors ──────────────────────────────── */
.bg-whatsapp-light { background: #e8faf0; }
.text-whatsapp { color: #25D366; }

/* ── Text decoration ──────────────────────────────── */
.text-decoration-none { text-decoration: none !important; }

/* ── Footer specific classes ───────────────────────── */
.footer-description {
  color: var(--neutral-500);
  font-size: .85rem;
  margin-top: 8px;
  max-width: 280px;
}
.footer-heading {
  color: #fff;
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  color: var(--neutral-400);
}
.footer-bottom {
  font-size: .78rem;
  color: var(--neutral-600);
}
.icon-primary {
  width: 16px;
  color: var(--primary);
}
.icon-danger {
  width: 16px;
  color: var(--danger);
}

/* ── Text color utilities ──────────────────────────── */
.text-white { color: #fff !important; }

/* ── Width utilities ──────────────────────────────── */
.w-auto { width: auto !important; }

/* ── Position utilities ───────────────────────────── */
.sticky-top { position: sticky; top: 0; z-index: 100; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* ── Overflow utilities ────────────────────────────── */
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }

/* ── Common inline pattern replacements ─────────────── */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Font sizes */
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* Colors */
.text-neutral-400 { color: var(--neutral-400); }
.text-neutral-500 { color: var(--neutral-500); }
.text-neutral-600 { color: var(--neutral-600); }
.text-neutral-700 { color: var(--neutral-700); }
.text-neutral-800 { color: var(--neutral-800); }
.text-primary { color: var(--primary); }

/* Backgrounds */
.bg-neutral-50 { background: var(--neutral-50); }
.bg-neutral-100 { background: var(--neutral-100); }
.bg-primary { background: var(--primary); }

/* Border colors */
.border-primary { border-color: var(--primary); }
.border-neutral-200 { border-color: var(--neutral-200); }
.border-left-primary { border-left-color: var(--primary); }
.border-top-og { border-top: 2px solid var(--og-100); }
.border-top-neutral { border-top: 1px solid var(--neutral-200); }
.pt-md { padding-top: var(--space-md); }
.pb-md { padding-bottom: var(--space-md); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* List style */
.list-none { list-style: none; }

/* Common max-widths */
.max-w-full { max-width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* Heights */
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ── Border radius utilities ───────────────────────── */
.rounded { border-radius: var(--radius) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* ── Common style patterns ───────────────────────────── */
/* Text alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Vertical alignment */
.align-top { vertical-align: top !important; }
.align-middle { vertical-align: middle !important; }
.align-bottom { vertical-align: bottom !important; }

/* White space */
.whitespace-nowrap { white-space: nowrap !important; }
.whitespace-pre { white-space: pre !important; }

/* Positioning helpers */
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* Common sizing patterns */
.w-16 { width: 16px !important; }
.w-20 { width: 20px !important; }
.w-24 { width: 24px !important; }
.w-32 { width: 32px !important; }
.w-36 { width: 36px !important; }
.w-40 { width: 40px !important; }
.w-44 { width: 44px !important; }
.w-48 { width: 48px !important; }
.w-56 { width: 56px !important; }
.w-64 { width: 64px !important; }
.w-80 { width: 80px !important; }
.w-96 { width: 96px !important; }
.w-120 { width: 120px !important; }
.w-160 { width: 160px !important; }
.w-200 { width: 200px !important; }
.w-240 { width: 240px !important; }

.h-16 { height: 16px !important; }
.h-20 { height: 20px !important; }
.h-24 { height: 24px !important; }
.h-32 { height: 32px !important; }
.h-36 { height: 36px !important; }
.h-40 { height: 40px !important; }
.h-44 { height: 44px !important; }
.h-48 { height: 48px !important; }

/* Line height */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* Letter spacing */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }

/* Border utilities */
.border { border: 1px solid var(--neutral-200); }
.border-0 { border: 0 !important; }
.border-t { border-top: 1px solid var(--neutral-200); }
.border-b { border-bottom: 1px solid var(--neutral-200); }
.border-l { border-left: 1px solid var(--neutral-200); }
.border-r { border-right: 1px solid var(--neutral-200); }
.border-2 { border-width: 2px; }
.border-l-2 { border-left-width: 2px; }
.border-l-4 { border-left-width: 4px; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* List styles */
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }

/* Resize */
.resize-none { resize: none; }
.resize-y { resize: vertical; }
.resize-x { resize: horizontal; }

/* User select */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ── Background gradient ───────────────────────────── */
.bg-gradient-course { background: linear-gradient(135deg,#0e3b35,#15806d); }

/* ── Shadow utilities ─────────────────────────────── */
.shadow-sm { box-shadow: 0 2px 12px rgba(0,0,0,.05); }

/* ── Min height utilities ─────────────────────────── */
.min-h-110 { min-height: 110px; }

/* ── Common layout patterns ─────────────────────────── */
.card-highlight-left { border-left: 4px solid var(--primary); }
.card-header-flex { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-body-compact { padding: 12px 16px; }
.card-body-none { padding: 0; }

/* Form layouts */
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid-full { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* Details/Summary styling */
.details-summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary);
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.details-container {
  background: var(--neutral-50);
  border-bottom: 2px solid var(--neutral-200);
  padding: 16px;
}

/* Question pool table */
.pool-table-container {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  background: #fff;
  margin-bottom: 12px;
}

/* Modal sizing */
.modal-lg { max-width: 900px; }
.modal-xl { max-width: 1100px; }
.modal-full-height { max-height: 92vh; }

/* Session item card */
.session-item {
  padding: 10px;
  background: var(--neutral-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px;
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* Inline form display */
.form-inline-block { display: inline; }

/* Table cell utilities */
.td-index { color: var(--neutral-400); font-size: .8rem; }
.td-question { font-size: .83rem; }
.td-actions { width: 120px; }
.th-checkbox { width: 32px; }

/* Scrollable table body */
.table-scroll-body { max-height: 380px; overflow-y: auto; }

/* Input sizing */
.input-width-sm { width: 160px; }
.input-width-md { width: 200px; }

/* Icon in text */
.icon-text-gap { margin-left: 6px; }

/* Hover border highlight */
.hover-border:hover { border-color: var(--primary); }

/* Item list containers */
.item-list-vertical {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Status colors */
.bg-status-draft { background: var(--neutral-100); }
.bg-status-active { background: var(--og-50); }
.bg-status-closed { background: #fef2f2; }

/* Link with icon */
.link-icon-left i,
.link-icon-left svg { margin-right: 6px; }

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Compact spacing for dense UIs */
.dense .form-group { margin-bottom: 8px; }
.dense .card-header { padding: 8px 12px; }
.dense .card-body { padding: 12px; }
.dense table th,
.dense table td { padding: 6px 8px; }

/* Animation for mobile menu */
@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Focus styles for accessibility */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,130,114,.15);
}

/* Disabled state */
.is-disabled { opacity: .5; pointer-events: none; }

/* Visually hidden (for accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   FLASH POPUP NOTIFICATION (replaces tile, no layout shift)
   ══════════════════════════════════════════════════════════════════════ */
.flash-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 380px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: flashSlideIn 0.35s cubic-bezier(.4,0,.2,1) forwards;
  border: 1px solid transparent;
}
@keyframes flashSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes flashSlideOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-16px) scale(.96); }
}
.flash-popup-fade {
  animation: flashSlideOut 0.35s cubic-bezier(.4,0,.2,1) forwards;
}
.flash-popup-success { background:#ecfdf5; color:#15803d; border-color:#bbf7d0; }
.flash-popup-danger  { background:#fff1f2; color:#b91c1c; border-color:#fecdd3; }
.flash-popup-warning { background:#fffbeb; color:#b45309; border-color:#fde68a; }
.flash-popup-info    { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.flash-popup-msg { flex: 1; line-height: 1.45; }
.flash-popup-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; line-height: 1; padding: 0 2px;
  color: inherit; opacity: 0.6; flex-shrink: 0;
  transition: opacity 0.2s;
}
.flash-popup-close:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════
   MOBILE FONT SIZES (larger, more readable on phones)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body, p, li, td, th { font-size: 1rem; }
  .text-sm { font-size: 0.95rem !important; }
  .text-xs { font-size: 0.82rem !important; }
  .small    { font-size: 0.88rem !important; }
  h1 { font-size: 1.55rem !important; }
  h2 { font-size: 1.3rem !important; }
  h3 { font-size: 1.15rem !important; }
  h4 { font-size: 1.05rem !important; }
  .card { font-size: 1rem; }
  .btn   { font-size: 0.97rem; }
  .badge { font-size: 0.8rem; }
  .stat-value { font-size: 1.5rem !important; }

  /* Smaller WhatsApp / button widths in stat row */
  .stat-card .stat-info .stat-value.text-lg { font-size: 0.92rem !important; }
  
  /* Page content padding */
  .page-content { padding: 14px 12px !important; }

  /* Flash popup full-width on mobile */
  .flash-popup {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   DASHBOARD EXAM CARDS — deadline highlight
   ══════════════════════════════════════════════════════════════════════ */
.exam-deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #dc2626;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 4px;
}
.exam-deadline-badge.safe  { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.exam-deadline-badge.warn  { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.exam-deadline-badge.danger{ color: #dc2626; background: #fff1f2; border-color: #fecdd3; }

/* Content margin helpers */
.content-margin { padding: 0 4px; }
@media (min-width: 769px) { .content-margin { padding: 0 8px; } }
