/* ==========================================================================
   LearnWise – Modern Software Design System & Aesthetic Architecture
   Designed with high-end SaaS standards, elegant typography & luminous accents.
   ========================================================================== */

:root {
  /* Core brand identity */
  --lw-primary: #F47B20;
  --lw-primary-600: #D9620B;
  --lw-primary-700: #B4500A;
  --lw-primary-50: #FFF3E8;
  --lw-primary-100: #FFE2C7;
  --lw-primary-glow: rgba(244, 123, 32, 0.22);
  --lw-primary-text: #B4500A;   /* orange for small text: 5:1 on white (#F47B20 is for fills and accents) */
  --lw-pale: #FFF3E8;           /* mascot panel, tips, selected chips */

  /* Secondary & Accents */
  --lw-accent-cyan: #FFA94D;
  --lw-accent-violet: #8b5cf6;
  --lw-accent-amber: #f59e0b;
  --lw-accent-emerald: #10b981;
  --lw-accent-rose: #f43f5e;

  /* Neutrals & Dark Obsidian */
  --lw-obsidian: #0b0f19;
  --lw-ink: #242424;
  --lw-ink-light: #3a3a3a;
  --lw-muted: #64748b;
  --lw-muted-light: #94a3b8;
  --lw-line: #E4E7EB;
  --lw-line-light: #f1f5f9;
  --lw-bg: #F6F7F9;
  --lw-card: #ffffff;
  --lw-sidebar-bg: #ffffff;

  /* Status Colors */
  --lw-success: #218653;
  --lw-success-50: #ecfdf5;
  --lw-success-100: #d1fae5;
  --lw-warning: #f59e0b;
  --lw-warning-50: #fffbeb;
  --lw-warning-100: #fef3c7;
  --lw-danger: #f43f5e;
  --lw-danger-50: #fff1f2;
  --lw-danger-100: #ffe4e6;
  --lw-info: #0284c7;
  --lw-info-50: #f0f9ff;

  /* Typography */
  --lw-font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --lw-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Elevations & Shadows */
  --lw-radius-sm: 10px;
  --lw-radius: 16px;
  --lw-radius-lg: 22px;
  --lw-radius-pill: 9999px;

  --lw-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --lw-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --lw-shadow: 0 4px 14px -1px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --lw-shadow-md: 0 8px 24px -2px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.04);
  --lw-shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 6px 14px -2px rgba(15, 23, 42, 0.05);
  --lw-shadow-xl: 0 24px 60px -10px rgba(15, 23, 42, 0.14);

  /* Gradients */
  --lw-grad: linear-gradient(135deg, #E8650F 0%, #F47B20 50%, #FFA94D 100%);
  --lw-grad-dark: linear-gradient(145deg, #2b2b2b 0%, #3d2a1c 100%);
  --lw-grad-subtle: linear-gradient(180deg, rgba(238, 242, 255, 0.6) 0%, rgba(248, 250, 252, 0) 100%);
  --lw-grad-card: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);

  --sidebar-w: 268px;

  /* Bootstrap Variable Overrides */
  --bs-primary: var(--lw-primary);
  --bs-primary-rgb: 244, 123, 32;
  --bs-body-font-family: var(--lw-font-body);
  --bs-body-color: var(--lw-ink);
  --bs-body-bg: var(--lw-bg);
  --bs-border-color: var(--lw-line);
  --bs-secondary-color: var(--lw-muted);
  --bs-link-color: var(--lw-primary-text);
  --bs-link-color-rgb: 180, 80, 10;
  --bs-link-hover-color: var(--lw-primary-700);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: var(--lw-bg);
  color: var(--lw-ink);
  font-family: var(--lw-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--lw-font-display);
  font-weight: 700;
  color: var(--lw-ink);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

a {
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.min-w-0 { min-width: 0; }
.text-secondary { color: var(--lw-muted) !important; }
.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }

/* Custom selection */
::selection {
  background: rgba(244, 123, 32, 0.18);
  color: var(--lw-primary-700);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  font-family: var(--lw-font-body);
  border-radius: var(--lw-radius-sm);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  font-size: 0.93rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-primary {
  background: var(--lw-primary);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.05) 100%);
  border-color: var(--lw-primary-600);
  color: #ffffff;
  box-shadow: 0 4px 14px -1px rgba(244, 123, 32, 0.45), 0 1px 3px rgba(244, 123, 32, 0.2);
}

.btn-primary:hover {
  background-color: var(--lw-primary-600);
  border-color: var(--lw-primary-700);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -2px rgba(244, 123, 32, 0.55), 0 2px 6px rgba(244, 123, 32, 0.25);
}

.btn-soft {
  background: var(--lw-primary-50);
  color: var(--lw-primary);
  border-color: rgba(244, 123, 32, 0.12);
  font-weight: 600;
}

.btn-soft:hover {
  background: var(--lw-primary-100);
  color: var(--lw-primary-700);
  border-color: rgba(244, 123, 32, 0.25);
  transform: translateY(-1px);
}

.btn-light {
  background: #ffffff;
  border-color: var(--lw-line);
  color: var(--lw-ink);
  box-shadow: var(--lw-shadow-xs);
}

.btn-light:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--lw-primary);
  transform: translateY(-1px);
  box-shadow: var(--lw-shadow-sm);
}

.btn-outline-danger {
  color: var(--lw-danger);
  border-color: #fecdd3;
  background: #ffffff;
}

.btn-outline-danger:hover {
  background: var(--lw-danger-50);
  border-color: var(--lw-danger);
  color: var(--lw-danger);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--lw-line);
  background: #ffffff;
  color: var(--lw-ink);
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.18s ease;
  box-shadow: var(--lw-shadow-xs);
}

.icon-btn:hover {
  background: #f8fafc;
  color: var(--lw-primary);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: var(--lw-shadow-sm);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */

.form-control, .form-select {
  border-radius: var(--lw-radius-sm);
  border: 1.5px solid var(--lw-line);
  padding: 0.65rem 0.95rem;
  font-size: 0.93rem;
  background-color: #ffffff;
  color: var(--lw-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--lw-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--lw-primary-glow);
  outline: none;
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: #334155;
  letter-spacing: -0.01em;
}

.form-check-input:checked {
  background-color: var(--lw-primary);
  border-color: var(--lw-primary);
}

.input-icon {
  position: relative;
}

.input-icon > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lw-muted-light);
  font-size: 1.05rem;
  pointer-events: none;
}

.input-icon > .form-control {
  padding-left: 2.75rem;
}

.alert {
  border: 0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-weight: 500;
  box-shadow: var(--lw-shadow-xs);
}

.alert-success { background: var(--lw-success-50); color: #065f46; border: 1px solid var(--lw-success-100); }
.alert-danger { background: var(--lw-danger-50); color: #9f1239; border: 1px solid var(--lw-danger-100); }
.alert-warning { background: var(--lw-warning-50); color: #92400e; border: 1px solid var(--lw-warning-100); }
.alert-primary { background: var(--lw-primary-50); color: var(--lw-primary-700); border: 1px solid var(--lw-primary-100); }

/* ==========================================================================
   Brand & Logo
   ========================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--lw-font-display);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--lw-ink);
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--lw-primary);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: var(--lw-grad);
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(244, 123, 32, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.06);
}

/* ==========================================================================
   Card System
   ========================================================================== */

.card-x {
  background: var(--lw-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--lw-radius);
  box-shadow: var(--lw-shadow);
  padding: 1.5rem;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-x:hover {
  border-color: rgba(203, 213, 225, 0.9);
}

.card-x.p-0 {
  padding: 0;
  overflow: hidden;
}

.card-title-x {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--lw-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--lw-ink);
  margin-bottom: 1.25rem;
}

.card-title-x::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--lw-grad);
}

.card-title-x.plain::before {
  display: none;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-head .card-title-x {
  margin-bottom: 0;
}

/* ==========================================================================
   App Shell & Navigation (Admin + Student)
   ========================================================================== */

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--lw-bg);
}

.sidebar {
  width: var(--sidebar-w);
  background: #ffffff;
  border-right: 1px solid var(--lw-line);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.02);
}

@media (min-width: 992px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
  }
  .app-main {
    margin-left: var(--sidebar-w);
  }
}

.sidebar.offcanvas-lg {
  --bs-offcanvas-width: var(--sidebar-w);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.35rem 1.1rem;
  border-bottom: 1px solid var(--lw-line-light);
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem 1.25rem;
}

.area-badge {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lw-primary);
  background: var(--lw-primary-50);
  border: 1px solid var(--lw-primary-100);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin: 0 0.5rem 0.85rem;
}

.nav-group {
  font-family: var(--lw-font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 1rem 0.75rem 0.45rem;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: 11px;
  color: #475569;
  font-weight: 600;
  font-size: 0.915rem;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
  position: relative;
}

.side-nav a i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  color: #64748b;
  transition: color 0.15s ease;
}

.side-nav a:hover {
  background: #f1f5f9;
  color: var(--lw-ink);
}

.side-nav a:hover i {
  color: var(--lw-primary);
}

.side-nav a.active {
  background: var(--lw-primary-50);
  color: var(--lw-primary-700);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--lw-primary);
}

.side-nav a.active i {
  color: var(--lw-primary);
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--lw-line-light);
  background: #fafbfd;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 2rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--lw-line);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.topbar-title {
  font-family: var(--lw-font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--lw-ink);
}

.content {
  padding: 2rem;
  flex: 1;
  width: 100%;
  max-width: 1480px;
}

.app-footer {
  padding: 1.25rem 2rem 1.75rem;
  color: var(--lw-muted);
  font-size: 0.83rem;
  border-top: 1px solid var(--lw-line-light);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--lw-font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffffff;
  background: var(--lw-grad);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(244, 123, 32, 0.28);
}

.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.avatar-btn {
  border: 0;
  background: none;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.avatar-btn:hover {
  transform: scale(1.06);
}

@media (max-width: 575.98px) {
  .content { padding: 1.15rem 0.9rem; }
  .topbar { padding: 0.75rem 1rem; }
  .card-x { padding: 1.15rem; border-radius: 14px; }
}

/* ==========================================================================
   Page Heading
   ========================================================================== */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.page-head > div { min-width: 0; max-width: 100%; }
.page-head .chip { white-space: normal; } /* long status notes wrap on phones instead of pushing the page sideways */

.page-head h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--lw-ink);
}

.page-head p {
  margin: 0.35rem 0 0;
  color: var(--lw-muted);
  font-size: 0.94rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--lw-font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lw-primary);
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   Hero Banner (Student Dashboard)
   ========================================================================== */

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--lw-radius-lg);
  padding: 2.2rem 2.5rem;
  color: #ffffff;
  background: linear-gradient(135deg, #E8650F 0%, #F47B20 55%, #FF9F4A 100%);
  box-shadow: 0 20px 48px -8px rgba(194, 84, 10, 0.45);
  margin-bottom: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 123, 32, 0.35) 0%, rgba(244, 123, 32, 0) 70%);
  pointer-events: none;
}

.hero-banner::before {
  content: '';
  position: absolute;
  right: 140px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(6, 182, 212, 0) 70%);
  pointer-events: none;
}

.hero-banner h1 {
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.hero-banner p {
  opacity: 0.88;
  margin: 0;
  font-size: 0.98rem;
}

.hero-banner > * {
  position: relative;
  z-index: 1;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--lw-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.streak-pill b {
  color: #fde047;
  font-weight: 800;
}

/* ==========================================================================
   Stat Cards (Student & General)
   ========================================================================== */

.stat {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--lw-radius);
  padding: 1.35rem 1.45rem;
  box-shadow: var(--lw-shadow);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--lw-shadow-md);
}

.stat-label {
  font-family: var(--lw-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lw-muted);
}

.stat-value {
  font-family: var(--lw-font-display);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.5rem 0 0.3rem;
  color: var(--lw-ink);
}

.stat-note {
  font-size: 0.825rem;
  color: var(--lw-success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stat-note.muted {
  color: var(--lw-muted);
  font-weight: 500;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--lw-primary-50);
  color: var(--lw-primary);
  flex-shrink: 0;
  box-shadow: var(--lw-shadow-xs);
}

/* ==========================================================================
   Admin Solid Modern KPI Tiles
   ========================================================================== */

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--lw-radius);
  padding: 1.45rem 1.5rem;
  color: #ffffff;
  height: 100%;
  box-shadow: var(--lw-shadow-md);
  display: flex;
  gap: 1.15rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--lw-shadow-lg);
}

.tile::after {
  content: '';
  position: absolute;
  right: -35px;
  top: -35px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
}

.tile .tile-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  font-size: 1.45rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.tile .tile-label {
  font-family: var(--lw-font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.tile .tile-value {
  font-family: var(--lw-font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.tile .tile-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  margin: 0.55rem 0 0.4rem;
  overflow: hidden;
}

.tile .tile-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #ffffff;
}

.tile .tile-note {
  font-size: 0.76rem;
  opacity: 0.92;
  font-weight: 500;
}

/* Phones: white stat cards two per row — tighter padding so notes like dates fit on one or two lines */
@media (max-width: 575.98px) {
  .stat { padding: 1rem 0.95rem; }
  .stat-value { font-size: 1.55rem; }
  .stat-note { font-size: 0.76rem; flex-wrap: wrap; line-height: 1.35; }
}

/* Phones: two tiles per row leave ~150px, so the icon goes on top and the text gets the full width */
@media (max-width: 575.98px) {
  .tile { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1rem 0.95rem; }
  .tile .tile-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
  .tile .tile-label { font-size: 0.68rem; letter-spacing: 0.04em; line-height: 1.3; }
  .tile .tile-value { font-size: 1.55rem; }
  .tile .tile-note { font-size: 0.74rem; line-height: 1.35; }
  .tile > div { width: 100%; overflow-wrap: anywhere; }
}

.tile.indigo { background: linear-gradient(135deg, #F47B20 0%, #C2540A 100%); }
.tile.indigo .tile-icon { color: #F47B20; }

.tile.amber  { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.tile.amber .tile-icon { color: #d97706; }

.tile.violet { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.tile.violet .tile-icon { color: #6d28d9; }

.tile.rose   { background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%); }
.tile.rose .tile-icon { color: #e11d48; }

/* ==========================================================================
   Progress Bars & Trackers
   ========================================================================== */

.bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #F47B20, #FFA94D);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar.lg {
  height: 14px;
}

.bar.success > span { background: linear-gradient(90deg, #10b981, #059669); }
.bar.primary > span { background: linear-gradient(90deg, #F7934A, #F47B20); }
.bar.warning > span { background: linear-gradient(90deg, #f59e0b, #d97706); }
.bar.danger > span  { background: linear-gradient(90deg, #f43f5e, #e11d48); }

.target-wrap {
  position: relative;
}

.target-line {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: var(--lw-success);
  border-radius: 2px;
  z-index: 2;
}

.target-line::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lw-success);
  box-shadow: 0 0 0 2px #ffffff;
}

.scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  font-weight: 600;
}

.perf-row + .perf-row {
  margin-top: 1.25rem;
}

.perf-row .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.93rem;
}

/* ==========================================================================
   Badges & Status Chips
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--lw-radius-pill);
  font-family: var(--lw-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
}

.chip-success {
  background: var(--lw-success-50);
  color: #065f46;
  border-color: var(--lw-success-100);
}

.chip-primary {
  background: var(--lw-primary-50);
  color: var(--lw-primary-700);
  border-color: var(--lw-primary-100);
}

.chip-warning {
  background: var(--lw-warning-50);
  color: #92400e;
  border-color: var(--lw-warning-100);
}

.chip-danger {
  background: var(--lw-danger-50);
  color: #9f1239;
  border-color: var(--lw-danger-100);
}

.chip-muted {
  background: #f1f5f9;
  color: var(--lw-muted);
  border-color: var(--lw-line);
}

.text-success-x { color: var(--lw-success) !important; }
.text-primary-x { color: var(--lw-primary) !important; }
.text-warning-x { color: var(--lw-warning) !important; }
.text-danger-x { color: var(--lw-danger) !important; }

/* ==========================================================================
   Strengths & Focus Area Panels
   ========================================================================== */

.panel-strength {
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
}

.panel-focus {
  background: linear-gradient(160deg, #FFF8F1 0%, #FFF3E8 100%);
  border: 1px solid #FFD9B8;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--lw-font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.panel-head .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mini-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--lw-shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lw-shadow-sm);
}

.mini-card + .mini-card {
  margin-top: 0.75rem;
}

.mini-card .grow {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   Tables & Data Presentation
   ========================================================================== */

.table-x {
  margin: 0;
  --bs-table-bg: transparent;
}

.table-x thead th {
  font-family: var(--lw-font-display);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lw-muted);
  border-bottom: 1px solid var(--lw-line);
  padding: 0.95rem 1.25rem;
  white-space: nowrap;
  background: #f8fafc;
}

.table-x td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-color: var(--lw-line-light);
  font-size: 0.925rem;
}

.table-x tbody tr {
  transition: background-color 0.15s ease;
}

.table-x tbody tr:hover td {
  background: #f8fafc;
}

.table-x tbody tr:last-child td {
  border-bottom: 0;
}

.card-x.p-0 .table-responsive {
  border-radius: var(--lw-radius);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--lw-line);
  background: #ffffff;
}

/* ==========================================================================
   Subject & Chapter Cards
   ========================================================================== */

.subject-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.subject-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--lw-radius-pill);
  background: #ffffff;
  border: 1.5px solid var(--lw-line);
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.915rem;
  transition: all 0.18s ease;
  box-shadow: var(--lw-shadow-xs);
}

.subject-tabs a:hover {
  border-color: #cbd5e1;
  color: var(--lw-primary);
  transform: translateY(-1px);
}

.subject-tabs a.active {
  background: var(--lw-ink);
  color: #ffffff;
  border-color: var(--lw-ink);
  box-shadow: var(--lw-shadow-sm);
}

.chapter-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--lw-radius);
  padding: 1.45rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--lw-shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.chapter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lw-shadow-lg);
  border-color: rgba(244, 123, 32, 0.35);
}

.chapter-card .subj {
  font-family: var(--lw-font-display);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chapter-card h5 {
  font-size: 1.12rem;
  margin: 0.5rem 0 0.4rem;
  color: var(--lw-ink);
}

.chapter-card .meta {
  display: flex;
  gap: 1.15rem;
  font-size: 0.83rem;
  color: var(--lw-muted);
  margin: 0.9rem 0;
  font-weight: 500;
}

.subject-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Quiz Interface & Examination System
   ========================================================================== */

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-side { order: -1; }
}

.quiz-side {
  position: sticky;
  top: 92px;
}
@media (max-width: 991.98px) {
  .quiz-side { position: static; } /* phones/tablets: the panel scrolls away instead of covering the question */
}
@media (min-width: 992px) {
  /* a pinned panel taller than the screen would hide its lower part, so it scrolls inside instead */
  .quiz-side { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  body.portal:not(.no-dock) .quiz-side { max-height: calc(100vh - 92px - var(--dock-h) - 36px); } /* and clear of the bottom dock */
}

.timer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--lw-font-display);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--lw-ink);
  letter-spacing: -0.02em;
}

.timer.over {
  color: var(--lw-danger);
  animation: pulseTimer 1s infinite;
}

@keyframes pulseTimer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.palette button {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1.5px solid var(--lw-line);
  background: #ffffff;
  font-family: var(--lw-font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: #475569;
  transition: all 0.15s ease;
  cursor: pointer;
}

.palette button:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.palette button.answered {
  background: var(--lw-success-50);
  border-color: #a7f3d0;
  color: #065f46;
  font-weight: 800;
}

.palette button.flagged {
  background: var(--lw-warning-50);
  border-color: #fde68a;
  color: #92400e;
  font-weight: 800;
}

.palette button.current {
  outline: 2.5px solid var(--lw-primary);
  outline-offset: 2px;
  background: var(--lw-primary-50);
  color: var(--lw-primary);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.77rem;
  color: var(--lw-muted);
  font-weight: 600;
}

.legend span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: -1px;
  border: 1px solid var(--lw-line);
}

.legend .l-ans::before { background: var(--lw-success-50); border-color: #a7f3d0; }
.legend .l-flag::before { background: var(--lw-warning-50); border-color: #fde68a; }

.q-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--lw-radius);
  padding: 2.25rem;
  box-shadow: var(--lw-shadow);
}

.js .q-card {
  display: none;
}

.js .q-card.show {
  display: block;
  animation: fadeUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.no-js-gap .q-card + .q-card {
  margin-top: 1.25rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.q-num {
  font-family: var(--lw-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--lw-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.q-text {
  font-family: var(--lw-font-display);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 0.75rem 0 1.5rem;
  line-height: 1.45;
  color: var(--lw-ink);
}

.option {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--lw-line);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-weight: 500;
  font-size: 0.98rem;
  background: #ffffff;
}

.option + .option {
  margin-top: 0.75rem;
}

.option:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option .letter {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--lw-font-display);
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.88rem;
  transition: all 0.18s ease;
}

.option:has(input:checked) {
  border-color: var(--lw-primary);
  background: var(--lw-primary-50);
  box-shadow: 0 4px 14px rgba(244, 123, 32, 0.12);
}

.option:has(input:checked) .letter {
  background: var(--lw-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(244, 123, 32, 0.4);
}

.option:has(input:focus-visible) {
  box-shadow: 0 0 0 4px var(--lw-primary-glow);
}

.quiz-progress {
  height: 7px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

/* ==========================================================================
   Quiz Result & Score Showcase
   ========================================================================== */

.score-ring {
  --p: 0;
  --c: var(--lw-primary);
  width: 175px;
  height: 175px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e2e8f0 0);
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.score-ring > div {
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
}

.score-ring b {
  font-family: var(--lw-font-display);
  font-size: 2.25rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  letter-spacing: -0.03em;
}

.review-item {
  border-radius: 16px;
  padding: 1.4rem;
  border: 1px solid var(--lw-line);
  background: #ffffff;
  margin-bottom: 1.15rem;
  box-shadow: var(--lw-shadow-xs);
  transition: transform 0.18s ease;
}

.review-item.correct {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.review-item.wrong {
  background: #fff1f2;
  border-color: #fecdd3;
}

.review-item.skipped {
  background: #fffbeb;
  border-color: #fde68a;
}

.review-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--lw-line);
  background: #ffffff;
  font-size: 0.94rem;
}

.review-opt + .review-opt {
  margin-top: 0.5rem;
}

.review-opt.is-correct {
  border-color: #86efac;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

.review-opt.is-wrong {
  border-color: #fda4af;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 600;
}

.review-opt i {
  font-size: 1.1rem;
}

.explain {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed #cbd5e1;
  font-size: 0.915rem;
  color: #334155;
}

.filter-pills .btn {
  border-radius: var(--lw-radius-pill);
}

/* ==========================================================================
   Pagination & Empty States
   ========================================================================== */

.pagination {
  --bs-pagination-border-radius: 10px;
  --bs-pagination-color: var(--lw-ink);
  --bs-pagination-active-bg: var(--lw-primary);
  --bs-pagination-active-border-color: var(--lw-primary);
  --bs-pagination-border-color: var(--lw-line);
  gap: 0.35rem;
}

.pagination .page-link {
  border-radius: 10px !important;
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--lw-shadow-xs);
}

.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--lw-muted);
}

.empty i {
  font-size: 2.75rem;
  display: block;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

/* ==========================================================================
   Public Marketing Website (Landing Page)
   ========================================================================== */

.public-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 0;
}

.public-nav .nav-link {
  font-weight: 600;
  color: #475569;
  font-size: 0.94rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--lw-radius-pill);
  transition: all 0.18s ease;
}

.public-nav .nav-link:hover {
  color: var(--lw-primary);
  background: rgba(244, 123, 32, 0.06);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 5rem;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(244, 123, 32, 0.12) 0, transparent 65%),
    radial-gradient(800px 500px at 5% 90%, rgba(6, 182, 212, 0.1) 0, transparent 60%),
    #ffffff;
}

.landing-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.grad-text {
  background: var(--lw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-mock {
  background: #ffffff;
  border-radius: var(--lw-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 32px 72px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
}

.hero-mock .mock-banner {
  border-radius: 16px;
  background: linear-gradient(135deg, #E8650F 0%, #F47B20 55%, #FF9F4A 100%);
  color: #ffffff;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px rgba(194, 84, 10, 0.3);
}

.floating-badge {
  position: absolute;
  background: #ffffff;
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 20px 48px -4px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 5;
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.section {
  padding: 5.5rem 0;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.feature {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 1.85rem;
  height: 100%;
  box-shadow: var(--lw-shadow-sm);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--lw-shadow-lg);
  border-color: rgba(244, 123, 32, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--lw-shadow-xs);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--lw-font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  background: var(--lw-grad);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(244, 123, 32, 0.35);
}

.cta {
  border-radius: var(--lw-radius-lg);
  background: linear-gradient(135deg, #E8650F 0%, #F47B20 55%, #FF9F4A 100%);
  color: #ffffff;
  padding: 4rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px -8px rgba(194, 84, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 123, 32, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.public-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--lw-line);
  background: #ffffff;
}

/* ==========================================================================
   Auth Pages (Login & Registration)
   ========================================================================== */

.auth-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(244, 123, 32, 0.1) 0, transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(6, 182, 212, 0.08) 0, transparent 60%),
    var(--lw-bg);
}

.auth-card {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: #ffffff;
  border-radius: var(--lw-radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 72px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-side {
  background: linear-gradient(145deg, #E8650F 0%, #F47B20 55%, #FF9F4A 100%);
  color: #ffffff;
  padding: 3rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-side::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 123, 32, 0.3) 0%, transparent 70%);
  right: -90px;
  bottom: -90px;
}

.auth-side li {
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
  font-weight: 500;
}

.auth-form {
  padding: 3rem 2.75rem;
}

@media (max-width: 767.98px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-form { padding: 2rem 1.5rem; }
}

.demo-box {
  background: var(--lw-primary-50);
  border: 1px solid var(--lw-primary-100);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  font-size: 0.85rem;
  color: #334155;
}

.demo-box code {
  color: var(--lw-primary-700);
  background: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-weight: 600;
}

/* ==========================================================================
   Print Styles (Reports & Parent Summaries)
   ========================================================================== */

@media print {
  .sidebar, .topbar, .app-footer, .no-print, .btn { display: none !important; }
  .app-main { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  body { background: #ffffff; }
  .card-x, .stat { box-shadow: none !important; break-inside: avoid; border: 1px solid #cbd5e1; }
  .print-only { display: block !important; }
}

.print-only {
  display: none;
}
