/* ============================================================
   Modern LMS - Main Stylesheet
   Font: Poppins | Theme: Light, friendly for school children
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  /* Brand colors - purple/violet (educational) + pink (friendly) */
  --primary:         #7C3AED;
  --primary-dark:    #6D28D9;
  --primary-light:   #EDE9FE;
  --primary-50:      #F5F3FF;
  --secondary:       #EC4899;
  --secondary-light: #FCE7F3;
  --accent:          #10B981;
  --accent-light:    #D1FAE5;
  --warning:         #F59E0B;
  --warning-light:   #FEF3C7;
  --error:           #EF4444;
  --error-light:     #FEE2E2;
  --info:            #3B82F6;
  --info-light:      #DBEAFE;

  /* Neutrals */
  --bg:              #F8F7FF;
  --surface:         #FFFFFF;
  --border:          #E5E7EB;
  --border-light:    #F3F4F6;
  --text:            #111827;
  --text-secondary:  #4B5563;
  --text-muted:      #9CA3AF;
  --placeholder:     #D1D5DB;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(124,58,237,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:    0 4px 6px -1px rgba(124,58,237,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(124,58,237,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(124,58,237,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

  /* Layout */
  --sidebar-width:   260px;
  --header-height:   64px;
  --radius-sm:       8px;
  --radius:          12px;
  --radius-lg:       16px;
  --radius-xl:       24px;
  --radius-full:     9999px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT - App Shell
   ============================================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  /* dvh = the *visible* height on mobile, excluding the browser's address/tool bars,
     so the footer (user + logout) isn't hidden behind them. 100vh above is the fallback. */
  height: 100dvh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.sidebar-logo .logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  -webkit-text-fill-color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  min-height: 0; /* lets the menu scroll instead of pushing the footer off-screen */
  padding: 12px 0;
  overflow-y: auto;
}

.sidebar-logo, .sidebar-footer { flex-shrink: 0; }

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon {
  width: 20px;
  height: 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--secondary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.sidebar-user .avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Name/role block may shrink (long names get "…") so it never squeezes the logout button out */
.sidebar-user > div:not(.avatar) { min-width: 0; }

.sidebar-user .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-user .logout-btn {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.sidebar-user .logout-btn:hover { color: var(--error); }

/* ---- Main content area ---- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top-bar {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar .hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 20px;
  transition: background 0.2s;
}

.top-bar .hamburger:hover { background: var(--border-light); }

.top-bar .page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.top-bar .breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
}

.top-bar .top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar .notif-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  transition: background 0.2s;
}

.top-bar .notif-btn:hover { background: var(--primary-50); }

.top-bar .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: var(--radius-full);
  border: 2px solid var(--surface);
}

.page-body {
  padding: 24px;
  flex: 1;
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.sidebar-overlay.show { display: block; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---- Page Header ---- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.page-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}

/* ---- Stat Cards ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card.clickable { cursor: pointer; }

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-card .stat-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.stat-card .stat-change.up { color: var(--accent); }
.stat-card .stat-change.down { color: var(--error); }

/* Stat card color variants */
.stat-card.purple .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-card.pink .stat-icon { background: var(--secondary-light); color: var(--secondary); }
.stat-card.green .stat-icon { background: var(--accent-light); color: var(--accent); }
.stat-card.orange .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-card.blue .stat-icon { background: var(--info-light); color: var(--info); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.4); }

.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-secondary:hover { background: #DB2777; color: white; }

.btn-success {
  background: var(--accent);
  color: white;
}
.btn-success:hover { background: #059669; color: white; }

.btn-danger {
  background: var(--error);
  color: white;
}
.btn-danger:hover { background: #DC2626; color: white; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-50); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ---- Forms ---- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  line-height: 1.5;
}

.form-control::placeholder { color: var(--placeholder); }

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.form-control.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-control.is-valid {
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control { cursor: pointer; }

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-check label { font-size: 13px; font-weight: 500; cursor: pointer; }

/* ---- Dropdown checklist (teacher school/board/class/subject mapping) ----
   Looks like a normal single-row dropdown; clicking it expands a checkbox panel. */
.dropcheck { position: relative; }
.dropcheck-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; text-align: left;
}
.dropcheck-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropcheck-summary.dropcheck-placeholder { color: var(--text-muted); }
.dropcheck-arrow { font-size: 11px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.15s; }
.dropcheck.open .dropcheck-arrow { transform: rotate(180deg); }
.dropcheck-panel {
  display: none;
  position: fixed; z-index: 500;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow-y: auto; padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.dropcheck.open .dropcheck-panel { display: block; }
.dropcheck-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: calc(var(--radius) - 2px);
  cursor: pointer; font-size: 13px; font-weight: 500;
}
.dropcheck-item:hover { background: var(--bg); }
.dropcheck-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.scope-picker-empty { font-size: 12px; color: var(--text-muted); padding: 4px 0; }

/* ---- Tables ---- */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.table th {
  background: var(--bg);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }

.table tbody tr:hover { background: var(--primary-50); }

.table .actions { display: flex; gap: 6px; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-purple  { background: var(--primary-light);   color: var(--primary); }
.badge-pink    { background: var(--secondary-light); color: var(--secondary); }
.badge-green   { background: var(--accent-light);    color: #065F46; }
.badge-orange  { background: var(--warning-light);   color: #92400E; }
.badge-red     { background: var(--error-light);     color: #991B1B; }
.badge-blue    { background: var(--info-light);      color: #1E40AF; }
.badge-gray    { background: var(--border-light);    color: var(--text-secondary); }
.badge-grey    { background: var(--border-light);    color: var(--text-secondary); }
.badge-danger  { background: var(--error-light);     color: #991B1B; }

/* ---- Alerts ---- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.alert-success { background: var(--accent-light);  color: #065F46; border-color: #A7F3D0; }
.alert-error   { background: var(--error-light);   color: #991B1B; border-color: #FCA5A5; }
.alert-warning { background: var(--warning-light); color: #92400E; border-color: #FCD34D; }
.alert-info    { background: var(--info-light);    color: #1E40AF; border-color: #BFDBFE; }

.alert .alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert .alert-close {
  margin-left: auto;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.alert .alert-close:hover { opacity: 1; }

/* ---- Progress bar ---- */
.progress-bar-wrap {
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Progress bar color variants */
.progress-bar.bar-green  { background: linear-gradient(90deg, var(--accent), #34D399); }
.progress-bar.bar-orange { background: linear-gradient(90deg, var(--warning), #FBBF24); }
.progress-bar.bar-red    { background: linear-gradient(90deg, var(--error), #F87171); }

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.progress-label .prog-name { font-weight: 600; color: var(--text); }
.progress-label .prog-pct  { font-weight: 700; color: var(--primary); }

/* ---- Avatar ---- */
.avatar {
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-sm  { width: 32px; height: 32px; font-size: 12px; }
.avatar-md  { width: 40px; height: 40px; font-size: 15px; }
.avatar-lg  { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl  { width: 80px; height: 80px; font-size: 28px; }

/* ---- Tabs ---- */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-item {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}

.tab-item:hover { color: var(--primary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p { font-size: 13px; }

/* ---- Search bar ---- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  transition: border-color 0.2s;
}

.search-bar:focus-within { border-color: var(--primary); }

.search-bar input {
  background: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.search-bar input::placeholder { color: var(--placeholder); }

.search-bar .search-icon { color: var(--text-muted); font-size: 15px; }

/* ---- Filter row ---- */
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-row .search-bar { flex: 1; min-width: 200px; }

/* ---- Topic card ---- */
.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.topic-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.topic-card .topic-thumbnail {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.topic-card .topic-body { padding: 14px; }
.topic-card .topic-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.topic-card .topic-meta  { font-size: 11px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Asset item row ---- */
.asset-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.asset-item:last-child { border-bottom: none; }

.asset-item .asset-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.asset-item .asset-info { flex: 1; min-width: 0; }
.asset-item .asset-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-item .asset-meta  { font-size: 11px; color: var(--text-muted); }

/* ---- Points display ---- */
.points-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  text-align: center;
  margin-bottom: 24px;
}

.points-banner .points-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.points-banner .points-label { font-size: 14px; opacity: 0.85; margin-top: 4px; }

/* ---- Calendar / Timeline ---- */
.timeline-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 5px;
}

.timeline-dot.pink { background: var(--secondary); }
.timeline-dot.green { background: var(--accent); }
.timeline-dot.orange { background: var(--warning); }

/* ---- Quiz item ---- */
.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.quiz-option:hover { border-color: var(--primary); background: var(--primary-50); }
.quiz-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.quiz-option.correct  { border-color: var(--accent);  background: var(--accent-light);  color: #065F46; }
.quiz-option.wrong    { border-color: var(--error);   background: var(--error-light);   color: #991B1B; }

.quiz-option input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ---- Timer ---- */
.quiz-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--warning-light);
  color: var(--warning);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #FCD34D;
}

.quiz-timer.urgent { background: var(--error-light); color: var(--error); border-color: #FCA5A5; }

/* ---- Video card grid ---- */
.video-card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 16px;
}
@media (max-width: 1399px) {
  .video-card-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1199px) {
  .video-card-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) {
  .video-card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 599px) {
  .video-card-grid { grid-template-columns: repeat(2, 1fr); }
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  overflow: hidden;
  flex-shrink: 0;
}
.video-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-thumb .thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
}
.video-thumb .thumb-duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.72); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; letter-spacing: .03em;
}
.video-thumb .thumb-done {
  position: absolute; top: 6px; right: 6px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
}
.video-thumb .thumb-type-badge {
  position: absolute; top: 6px; left: 6px;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; letter-spacing: .02em;
  color: #fff;
}
.video-thumb .thumb-type-badge.normal { background: rgba(124,58,237,0.85); }
.video-thumb .thumb-type-badge.zoom   { background: rgba(37,99,235,0.85); }
.video-thumb .thumb-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.25);
}
.video-thumb .thumb-progress-fill {
  height: 100%; background: var(--primary);
}

.video-card-body {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.video-card-title {
  font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card-desc {
  font-size: 11px; color: var(--text-secondary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card-meta { font-size: 11px; color: var(--text-muted); }
.video-card-footer { margin-top: auto; padding-top: 10px; }

/* ---- Asset tab bar ---- */
.asset-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
  margin-bottom: 14px;
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}
.asset-tabs::-webkit-scrollbar { display: none; }

.asset-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.asset-tab:hover:not(.active) { background: var(--bg); color: var(--text); }
.asset-tab.active { background: var(--primary-light); color: var(--primary); }

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  line-height: 1;
}

/* ---- Video embed ---- */
.video-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Content grid ---- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ---- Profile page layout (avatar/stats column + form column) ---- */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: start;
}

/* ---- Dashboard main layout (primary content + sidebar column) ---- */
.dashboard-grid {
  display: grid;
  gap: 20px;
}
.dashboard-grid-2-1 { grid-template-columns: 2fr 1fr; }
.dashboard-grid-1-1 { grid-template-columns: 1fr 1fr; }

/* ---- Month calendar grid ---- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-width: 0;
}
.calendar-grid.calendar-grid-head { text-align: center; padding: 16px 16px 0; }
.calendar-grid.calendar-grid-body { gap: 2px; padding: 0 16px 16px; }

.calendar-day {
  min-width: 0;
  min-height: 80px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 6px;
}

.calendar-day-num {
  font-size: 13px;
  margin-bottom: 4px;
}

.calendar-event {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  margin-bottom: 2px;
}

/* ---- Announcement card ---- */
.announcement-card {
  border-left: 4px solid var(--primary);
  background: var(--primary-50);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.announcement-card.pink { border-left-color: var(--secondary); background: var(--secondary-light); }
.announcement-card.green { border-left-color: var(--accent); background: var(--accent-light); }

.announcement-card .ann-title { font-size: 14px; font-weight: 700; color: var(--text); }
.announcement-card .ann-body  { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.announcement-card .ann-meta  { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* ---- Modal ---- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show { display: flex; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header h3 { font-size: 16px; font-weight: 700; flex: 1; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.modal-close:hover { color: var(--error); }
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; gap: 10px; justify-content: flex-end; }

/* ---- Loading ---- */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Learning video cards ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.admin-video-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.admin-video-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.video-thumb-wrap { position: relative; width: 100%; height: 120px; }

.admin-video-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: var(--border-light);
}

.admin-video-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

.video-type-badge { position: absolute; top: 8px; left: 8px; }

.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-play-btn:hover { background: rgba(0,0,0,0.75); }

.admin-video-card-body { padding: 12px 14px; }

.admin-video-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.admin-video-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.video-card-actions { display: flex; gap: 6px; align-items: center; }

/* Card/Table toggle for learning-video listings (admin/teacher/student) */
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.view-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 12px; font-weight: 600;
  background: var(--surface); color: var(--text-muted);
  border: none; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.view-toggle-btn + .view-toggle-btn { border-left: 1px solid var(--border); }
.view-toggle-btn:hover { background: var(--bg); }
.view-toggle-btn.active { background: var(--primary); color: #fff; }

.thumb-preview {
  display: block;
  max-width: 200px;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin-top: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.cropper-frame { max-height: 420px; overflow: hidden; }
.cropper-frame img { display: block; max-width: 100%; }

.video-embed-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.video-embed-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pdf-embed-frame { width: 100%; height: 75vh; border: 0; display: block; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

/* ---- Landing page specific ---- */
.landing-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #9333EA 50%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.landing-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  color: white;
}

.hero-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  background: white;
  color: var(--primary);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  color: var(--primary-dark);
}

.btn-hero-outline {
  background: transparent;
  color: white;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: white; color: white; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stat .hero-stat-num { font-size: 28px; font-weight: 800; line-height: 1; }
.hero-stat .hero-stat-lbl { font-size: 12px; opacity: 0.8; margin-top: 2px; }

.features-section {
  padding: 64px 20px;
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-3px); }

.feature-card .feat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ---- Login page ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-light) 100%);
  padding: 20px;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo .logo-mark {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin: 0 auto 12px;
}

.auth-logo h1 {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo p { font-size: 13px; color: var(--text-muted); }

.auth-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE - Mobile
   ============================================================ */

@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .dashboard-grid-2-1,
  .dashboard-grid-1-1 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .calendar-day { min-height: 52px; padding: 4px; }
  .calendar-day-num { font-size: 11px; }
  .calendar-event { font-size: 8px; padding: 1px 3px; margin-bottom: 1px; }
}

@media (max-width: 768px) {
  /* Sidebar goes off-canvas on mobile */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  /* Keep the footer clear of the iPhone home indicator, and make logout an obvious tap target */
  .sidebar-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .sidebar-user .logout-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--error);
    font-size: 18px;
  }

  .main-content { margin-left: 0; }

  .top-bar .hamburger { display: flex; }

  .page-body { padding: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-content h1 { font-size: 32px; }

  .content-grid,
  .content-grid-3 { grid-template-columns: 1fr; }

  .filter-row { flex-direction: column; align-items: stretch; }

  .auth-card { padding: 28px 20px; }

  .page-header { flex-direction: column; align-items: flex-start; }

  .card-header { flex-wrap: wrap; row-gap: 8px; }

  .modal-box { max-width: 100%; border-radius: var(--radius-lg); }

  .hero-stats { gap: 20px; }

  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; }
  .table th, .table td { padding: 10px 12px; }
  .stat-card { padding: 14px; gap: 6px; }
  .stat-card .stat-icon { width: 36px; height: 36px; font-size: 18px; margin-bottom: 0; }
  .stat-card .stat-value { font-size: 22px; }
  .quick-actions-row .btn { flex: 1 1 calc(50% - 6px); }
}

/* ---- Quick action button row (dashboards) ---- */
.quick-actions-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Table <-> stacked-card responsive swap ----
   .mobile-only-cards mirrors a .table-responsive's rows as cards on narrow screens, where a
   wide multi-column table is awkward even with horizontal scroll. */
.mobile-only-cards { display: none; }
.mini-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px;
}
.mini-card:last-child { margin-bottom: 0; }
.mini-card-row { margin-bottom: 6px; }
.mini-card-row:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .mobile-hide { display: none; }
  .mobile-only-cards { display: block; }
}

/* ---- Utility classes ---- */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-muted    { color: var(--text-muted); }
.text-primary  { color: var(--primary); }
.text-success  { color: var(--accent); }
.text-danger   { color: var(--error); }
.text-warning  { color: var(--warning); }
.fw-bold       { font-weight: 700; }
.fw-semibold   { font-weight: 600; }
.mt-4          { margin-top: 4px; }
.mt-8          { margin-top: 8px; }
.mt-12         { margin-top: 12px; }
.mt-16         { margin-top: 16px; }
.mt-24         { margin-top: 24px; }
.mb-4          { margin-bottom: 4px; }
.mb-8          { margin-bottom: 8px; }
.mb-12         { margin-bottom: 12px; }
.mb-16         { margin-bottom: 16px; }
.mb-24         { margin-bottom: 24px; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.gap-16        { gap: 16px; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.w-full        { width: 100%; }
.hidden        { display: none; }
.rounded       { border-radius: var(--radius); }
.rounded-full  { border-radius: var(--radius-full); }
.truncate      { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
