/* ==========================================================================
   OSH Teach · Modern SaaS Design System & Academic LMS Stylesheet
   Crafted for enterprise clarity, intuitive navigation and responsive speed.
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     1. Color Palette: Slate Neutrals, Tech Sky Blue & Accent Teal
     ------------------------------------------------------------------------ */
  --slate-950: #09131f;
  --slate-900: #0f172a;
  --slate-850: #131f37;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Primary Brand: OSHweb Deep Navy & Tech Teal Palette */
  --blue-950: #0a192f;
  --blue-900: #0d182a;
  --blue-850: #101936;
  --blue-800: #10243e;
  --blue-700: #153e66;
  --blue-600: #1565c0;
  --blue-500: #0284c7;
  --blue-100: #e0f2fe;
  --blue-50:  #f0f9ff;

  /* Accent: OSHweb Official Signature Teal */
  --teal-900: #004d53;
  --teal-800: #006068;
  --teal-700: #00737a;
  --teal-600: #008b94;
  --teal-500: #20b8be;
  --teal-400: #22d3ee;
  --teal-100: #e0f7f8;
  --teal-50:  #f0fdfa;

  /* Semantic Feedback */
  --emerald-700: #047857;
  --emerald-600: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  --rose-700: #be123c;
  --rose-600: #ef4444;
  --rose-100: #ffe4e6;
  --rose-50:  #fff1f2;

  /* Mapped Roles with High Accessibility & Contrast (WCAG AAA) */
  --ink: #0d182a;
  --ink-secondary: #334155;
  --muted: #4a5d7a;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f5f7fa;
  --paper: #ffffff;
  --paper-soft: #f8fbff;

  --blue: #008b94;
  --blue-hover: #00737a;
  --blue-soft: #e0f7f8;
  --blue-text: #006068;

  --teal: #008b94;
  --teal-hover: #00737a;
  --teal-soft: #e0f7f8;
  --teal-text: #006068;

  --success-bg: #ecfdf5;
  --success-border: #10b981;
  --success-text: #047857;

  --warn-bg: #fffbeb;
  --warn-border: #f59e0b;
  --warn-text: #b45309;

  --danger-bg: #fff1f2;
  --danger-border: #ef4444;
  --danger-text: #be123c;

  --info-bg: #e0f7f8;
  --info-border: #008b94;
  --info-text: #006068;

  /* Typography: Harmonized with OSHweb Poppins/Inter */
  --font-serif: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Modern Layered Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.07), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body.classroom-mode {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
}

img {
  max-width: 100% !important;
}

/* Accessible Skip Link */
.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--slate-900);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.skip:focus {
  top: 16px;
  outline: 3px solid var(--blue);
}

/* Headings */
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--ink-secondary);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--blue-hover);
}

/* --------------------------------------------------------------------------
   3. Global Top Header & Navigation Bar
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.03);
  height: 64px;
}

.header-container {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.sidebar-toggle-btn:hover {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue-300, #93c5fd);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.app-brand-logo {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .app-brand-logo {
    height: 30px;
    max-width: 140px;
  }
}

/* ==========================================================================
   OSHweb Unified Design System Components for OSH Teach
   ========================================================================== */

/* Modern Hero Section */
.oshweb-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a192f 0%, #0d2444 50%, #006068 100%);
  color: #ffffff;
  padding: clamp(2.5rem, 4.5vw, 3.75rem) clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.oshweb-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(32, 184, 190, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.oshweb-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.oshweb-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 139, 148, 0.2);
  border: 1px solid rgba(32, 184, 190, 0.4);
  border-radius: 50px;
  color: #5eead4;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.oshweb-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.oshweb-hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 auto 1.75rem auto;
  max-width: 720px;
}

/* 4 Pillars Chips Row */
.oshweb-pillars-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 2rem auto;
}

.oshweb-pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.oshweb-pillar-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(32, 184, 190, 0.6);
  transform: translateY(-1px);
}

.oshweb-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.osh-btn-primary {
  background: #008b94 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 139, 148, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s ease !important;
}

.osh-btn-primary:hover {
  background: #00737a !important;
  box-shadow: 0 6px 18px rgba(0, 139, 148, 0.5) !important;
  transform: translateY(-1px) !important;
}

.osh-btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
}

.osh-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Unified Section Headers (No Clutter, No Repeating Logos) */
.osh-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.osh-section-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.osh-section-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0f7f8;
  color: #008b94;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 139, 148, 0.12);
}

.osh-section-badge-icon.admin-badge-icon {
  background: #e0f2fe;
  color: #1565c0;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.12);
}

.osh-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #008b94;
  margin-bottom: 2px;
}

.osh-section-title {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  color: #0d182a;
  margin: 0;
  line-height: 1.25;
}

.brand-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}

.brand-title strong {
  color: var(--blue-600);
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 24px;
}

.nav-links-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--slate-100);
  color: var(--blue);
}

.nav-link.active {
  background: var(--blue-soft);
  color: var(--blue-700);
  font-weight: 600;
}

.nav-user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--teal-600), var(--blue-600));
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.account-link-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.15s ease;
}

.account-link-btn:hover {
  background: var(--blue-soft);
  color: var(--blue-700);
  border-color: var(--blue-soft);
}

.logout-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 32px;
}

.logout-btn:hover {
  background: var(--rose-50);
  color: var(--rose-700);
  border-color: var(--rose-100);
}

/* --------------------------------------------------------------------------
   4. Demo & Environment Safety Banner
   -------------------------------------------------------------------------- */
.demo-banner {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1px solid #fde68a;
  color: #78350f;
  padding: 6px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.banner-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.banner-tag {
  background: #f59e0b;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.6875rem;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-link {
  color: #92400e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   5. Buttons & Form Controls (Enterprise Standard)
   -------------------------------------------------------------------------- */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease-in-out;
  min-height: 40px;
  line-height: 1;
}

button:hover, .button:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

button:active, .button:active {
  transform: translateY(0);
}

button:disabled, .button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.secondary, .button.secondary {
  background: var(--paper);
  color: var(--slate-700);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

button.secondary:hover, .button.secondary:hover {
  background: var(--paper-soft);
  color: var(--slate-900);
  border-color: var(--slate-400);
}

button.danger, .button.danger {
  background: var(--rose-600);
  border-color: var(--rose-600);
  color: var(--white);
}

button.danger:hover, .button.danger:hover {
  background: var(--rose-700);
  border-color: var(--rose-700);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  margin: 16px 0 6px;
}

input, textarea, select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-top: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9375rem;
  font-family: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input[type=checkbox], input[type=radio] {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -2px;
  margin: 0 10px 0 0;
  cursor: pointer;
  accent-color: var(--blue);
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 20px 0;
  background: var(--white);
}

legend {
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0 10px;
  color: var(--slate-800);
}

/* --------------------------------------------------------------------------
   6. Main Content Area & Layouts
   -------------------------------------------------------------------------- */
main {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  flex: 1;
}

.panel, .card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-text);
  background: var(--teal-soft);
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-right: 6px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: rgba(245, 158, 11, 0.3);
}

.badge.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: rgba(239, 68, 68, 0.3);
}

.badge.info {
  background: var(--blue-soft);
  color: var(--blue-text);
  border-color: rgba(2, 132, 199, 0.3);
}

.badge.success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: rgba(16, 185, 129, 0.3);
}

.notice, .success, .error {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 18px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.notice {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  color: var(--warn-text);
}

.success {
  background: var(--success-bg);
  border-left: 4px solid var(--success-border);
  color: var(--success-text);
}

.error {
  background: var(--danger-bg);
  border-left: 4px solid var(--danger-border);
  color: var(--danger-text);
}

/* --------------------------------------------------------------------------
   7. Admin Professional Shell & Sidebar Navigation
   -------------------------------------------------------------------------- */
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  padding: 6px 12px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.sidebar-link svg {
  color: var(--slate-400);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.sidebar-link:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.sidebar-link:hover svg {
  color: var(--blue);
}

.sidebar-link.active {
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
}

.sidebar-link.active svg {
  color: var(--blue-600);
}

.nav-counter {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-600);
}

.nav-counter.warn {
  background: var(--amber-100);
  color: var(--amber-800);
}

.admin-main-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Admin Topbar (Breadcrumbs + Live Search + Status) */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.crumb-root {
  font-weight: 600;
  color: var(--slate-500);
}

.crumb-separator {
  color: var(--slate-300);
}

.crumb-current {
  font-weight: 700;
  color: var(--slate-900);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-search-box {
  position: relative;
  min-width: 260px;
}

.admin-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
}

.admin-search-box input {
  padding-left: 36px;
  margin-top: 0;
  font-size: 0.85rem;
  height: 38px;
  background: var(--paper-soft);
  border-color: var(--line);
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-800);
  background: var(--teal-50);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--teal-500);
  box-shadow: 0 0 0 2px var(--teal-100);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Admin Page Header & Accessible Heading */
.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 4px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--slate-500);
  margin: 0;
}

.admin-accessible-tagline {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.admin-accessible-tagline h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-600);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Modern KPI Cards Grid */
.admin-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.kpi-card-pro {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card-pro:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.kpi-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-box.blue {
  background: var(--blue-50);
  color: var(--blue-600);
}

.kpi-icon-box.teal {
  background: var(--teal-50);
  color: var(--teal-600);
}

.kpi-icon-box.amber {
  background: var(--amber-50);
  color: var(--amber-700);
}

.kpi-icon-box.emerald {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.1;
  margin: 4px 0 2px;
}

.kpi-detail {
  font-size: 0.775rem;
  color: var(--slate-500);
}

/* Quick Actions Bar */
.quick-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. Catalog & Student Campus Virtual
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #091e3a 0%, #0a3150 50%, #094752 100%);
  color: var(--white);
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--radius-xl);
  margin-bottom: 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  max-width: 840px;
}

.hero p {
  max-width: 680px;
  color: #e2e8f0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.eyebrow {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero .eyebrow {
  color: #5eead4;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  margin: 24px 0;
}

/* Split Layout (Campus Virtual Syllabus + Main) */
.split {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.sidebar-links a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--slate-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 4px 0;
  transition: all 0.15s ease;
}

.sidebar-links a:hover {
  background: var(--blue-soft);
  color: var(--blue-700);
}

/* Classroom Stats Comparison Block */
.classroom-stats-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0 28px;
}

.stat-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stat-block.pedagogical {
  border-top: 4px solid var(--blue);
}

.stat-block.verified {
  border-top: 4px solid var(--teal);
  background: #fbfdfd;
}

.stat-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stat-block-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.learning-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.learning-stats p {
  padding: 12px 14px;
  background: var(--paper-soft);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--slate-700);
  margin: 0;
  border: 1px solid var(--line);
}

.learning-stats strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-block.verified .learning-stats strong {
  color: var(--teal-text);
}

.stat-notice {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.45;
}

/* Cinematic Video Player Frame */
.media-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.media-card video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #09131f;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin: 14px 0;
}

/* --------------------------------------------------------------------------
   9. Tables & Rubric Review Elements
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  background: var(--paper-soft);
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.data-table tr:hover td {
  background: rgba(2, 132, 199, 0.03);
}

/* Hours Grid */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

/* --------------------------------------------------------------------------
   10. Floating Toast Notifications
   -------------------------------------------------------------------------- */
#status {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(500px, 92vw);
  z-index: 1000;
  pointer-events: none;
}

#status:not(:empty) {
  padding: 14px 22px;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  border-left: 4px solid var(--teal);
  animation: slideInUp 0.25s ease-out;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.app-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 22px 24px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand img,
.footer-brand-logo,
.app-footer img {
  max-height: 26px !important;
  height: 26px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  display: block !important;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--teal-600);
}

.footer-sep {
  color: #cbd5e1;
  font-weight: 400;
}

.footer-bottom {
  padding-top: 12px;
}

.footer-legal {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-links {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   12. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    max-height: none;
  }

  .sidebar-toggle-btn {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .app-header {
    height: auto;
    padding: 12px 0;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links-left {
    flex-wrap: wrap;
    gap: 6px;
  }

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

  .sidebar {
    position: static;
    max-height: none;
  }

  button, .button {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .admin-kpis-grid {
    grid-template-columns: 1fr;
  }

  .classroom-stats-wrapper {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   CSP Utility Classes (Zero inline styles)
   -------------------------------------------------------------------------- */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 12px; }
.gap-lg { gap: 16px; }
.w-100 { width: 100%; }
.mt-auto { margin-top: auto; }
.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 14px; }
.mt-lg { margin-top: 20px; }
.mt-xl { margin-top: 24px; }
.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 14px; }
.mb-lg { margin-bottom: 20px; }
.mb-xl { margin-bottom: 24px; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.pt-md { padding-top: 14px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-md { font-size: 14px; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.card-soft { background: var(--paper-soft); }
.border-line-top { border-top: 1px solid var(--line); }
.border-line-bottom { border-bottom: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Modern OSHweb Auth / Login Layout (Centered, Compact, No Scroll)
   -------------------------------------------------------------------------- */
.auth-wrapper {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
  background: radial-gradient(circle at 50% 15%, rgba(0, 139, 148, 0.06) 0%, transparent 60%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px -5px rgba(13, 24, 42, 0.08), 0 8px 10px -6px rgba(13, 24, 42, 0.04) !important;
  padding: 28px 28px 24px !important;
  margin: 0 auto !important;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: #e0f7f8;
  border: 1px solid #b2ebed;
  border-radius: 50px;
  color: #006978;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.auth-title {
  font-family: var(--font-sans) !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #0d182a !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.25 !important;
}

.auth-subtitle {
  color: #64748b !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.auth-card form {
  margin-top: 10px;
}

.auth-card form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 14px;
}

.auth-card form input[type="email"],
.auth-card form input[type="password"],
.auth-card form input[type="text"] {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 14px !important;
  margin-top: 5px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #0d182a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
}

.auth-card form input:focus {
  border-color: #008b94 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 139, 148, 0.15) !important;
}

.auth-card .btn-auth-submit {
  width: 100% !important;
  background: #008b94 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  padding: 11px 18px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 139, 148, 0.35) !important;
  transition: all 0.2s ease !important;
  margin-top: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.auth-card .btn-auth-submit:hover {
  background: #00737a !important;
  box-shadow: 0 6px 16px rgba(0, 139, 148, 0.45) !important;
  transform: translateY(-1px) !important;
}

.auth-secondary-card {
  width: 100%;
  max-width: 440px;
  margin: 12px auto 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.auth-secondary-card summary {
  cursor: pointer;
  font-weight: 600;
  color: #008b94;
  outline: none;
  user-select: none;
}

.auth-secondary-card summary:hover {
  color: #00737a;
}

/* Auth Contact & Enrollment Call to Action Box */
.auth-contact-enrollment-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-contact-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 16px 0;
}

.btn-auth-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: #008b94 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 139, 148, 0.25);
  transition: all 0.2s ease;
}

.btn-auth-contact:hover {
  background: #00737a !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 139, 148, 0.35);
}

.btn-auth-contact svg {
  stroke: #ffffff;
  flex-shrink: 0;
}

.empty-enrollments-banner {
  text-align: center;
  padding: 36px 20px;
  background: #f8fbff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  margin: 10px 0;
}

.osh-btn-enroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #008b94;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 139, 148, 0.25);
  transition: all 0.2s ease;
}

.osh-btn-enroll:hover {
  background: #00737a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 139, 148, 0.35);
}

.auth-panel { max-width: 460px; margin: 30px auto; }
.legal-panel { max-width: 820px; margin: 24px auto; }
.error-panel { max-width: 600px; margin: 40px auto; text-align: center; }
.policy-card { background: var(--paper-soft); padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 16px; }
.audit-scroll-box { max-height: 320px; overflow-y: auto; margin-top: 14px; }
.module-item { margin: 10px 0; padding: 16px; }
.stat-box-inner { background: var(--paper-soft); padding: 10px 14px; border-radius: var(--radius-md); margin: 12px 0; }
.practical-card { margin-top: 24px; border-left: 4px solid var(--blue); }

/* --------------------------------------------------------------------------
   Friendly LMS Classroom & Microlearning Tabbed Layout
   -------------------------------------------------------------------------- */
.classroom-header {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.classroom-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.classroom-progress-bar {
  background: var(--slate-100);
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  margin-top: 14px;
}
.classroom-progress-fill {
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500));
  height: 100%;
  transition: width 0.3s ease;
}

/* Modern Tab Bar */
.classroom-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.classroom-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.classroom-tab:hover {
  color: #065f46;
  background: #f0fdf4;
}
.classroom-tab.active {
  color: #065f46;
  border-bottom-color: var(--emerald-600);
  background: #ecfdf5;
}

/* Microlearning Split View */
.classroom-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .classroom-split {
    grid-template-columns: 1fr;
  }
}

.module-nav-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  position: sticky;
  top: 80px;
}
.module-nav-group {
  margin-bottom: 16px;
}
.module-nav-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
  padding: 8px 10px;
  background: var(--slate-100);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.submodule-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--slate-800);
  transition: all 0.15s ease;
  margin-bottom: 3px;
}
.submodule-nav-btn:hover {
  background: var(--slate-100);
  color: var(--blue-700);
}
.submodule-nav-btn.active {
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 600;
}
.submodule-check {
  font-size: 13px;
  color: var(--emerald-600);
  font-weight: 700;
}

/* Focused Lesson Card with Video */
.lesson-card-focused {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.video-stream-box {
  background: var(--slate-950);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 18px 0;
  box-shadow: var(--shadow-md);
  position: relative;
}
.video-stream-box video {
  width: 100%;
  display: block;
  max-height: 480px;
  background: #000;
}

/* Dedicated Quiz Cards Grid */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.quiz-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.quiz-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

/* Clean, Focused Quiz Modal */
.quiz-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 19, 31, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.quiz-modal-backdrop[hidden],
[hidden] {
  display: none !important;
}
.quiz-modal-card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.quiz-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.quiz-close-btn {
  background: var(--slate-100);
  border: none;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: var(--slate-600);
}
.quiz-close-btn:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}
.quiz-question-box {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.quiz-question-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 14px;
}
.quiz-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 14px;
  color: var(--slate-800);
}
.quiz-option-card:hover {
  border-color: #059669 !important;
  background: #ecfdf5 !important;
  color: #064e3b !important;
}
.quiz-option-card:hover * {
  color: #064e3b !important;
}
.quiz-option-card input[type="radio"]:checked + span,
.quiz-option-card:has(input[type="radio"]:checked) {
  border-color: #059669 !important;
  background: #d1fae5 !important;
  font-weight: 600;
  color: #064e3b !important;
}

/* ==========================================================================
   Gamification, Interactive Case Dilemmas, Question Bank & Enhanced UX
   ========================================================================== */

/* Gamification Hero Bar */
.gamification-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.gamification-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gamification-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}
.gamification-level-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gamification-level-pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.gamification-xp-track {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
}
.gamification-xp-bar {
  width: 140px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.gamification-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Badges Showcase */
.badges-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}
.badge-item.unlocked {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.badge-item.unlocked:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}
.badge-item.locked {
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  filter: grayscale(1);
  opacity: 0.6;
}

/* Interactive Dilemma Widget */
.dilemma-box {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 24px 0;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  border-left: 5px solid var(--blue-600);
}
.dilemma-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dilemma-badge {
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dilemma-xp-reward {
  color: var(--emerald-700);
  font-size: 12px;
  font-weight: 700;
  background: var(--emerald-50);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.dilemma-scenario {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-800);
  margin-bottom: 16px;
  font-weight: 500;
}
.dilemma-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dilemma-option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.dilemma-option-btn * {
  color: inherit !important;
}
.dilemma-option-btn strong {
  color: #047857 !important;
  font-weight: 700;
}
.dilemma-option-btn:hover:not(:disabled) {
  border-color: #059669 !important;
  background: #ecfdf5 !important;
  color: #064e3b !important;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15) !important;
}
.dilemma-option-btn:hover:not(:disabled) strong {
  color: #047857 !important;
}
.dilemma-option-btn.correct {
  border-color: #059669 !important;
  background: #d1fae5 !important;
  color: #064e3b !important;
  font-weight: 600;
}
.dilemma-option-btn.incorrect {
  border-color: #e11d48 !important;
  background: #ffe4e6 !important;
  color: #881337 !important;
}
.dilemma-feedback-box {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.55;
  animation: fadeIn 0.3s ease;
}
.dilemma-feedback-box.success {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-900);
}
.dilemma-feedback-box.error {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-900);
}

/* Instructor Quick Video Upload Box */
.instructor-quick-upload {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 12px;
}

/* Video Placeholder Sleek */
.video-placeholder-sleek {
  min-height: 240px;
  background: linear-gradient(135deg, #09131f 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}
.video-placeholder-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
  border: 2px solid rgba(56, 189, 248, 0.4);
}

/* Question Bank Admin Styling */
.question-bank-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease;
}
.question-bank-card:hover {
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
}
.question-bank-option {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 6px;
  border: 1px solid transparent;
}
.question-bank-option.correct {
  background: var(--emerald-50);
  border-color: var(--emerald-500);
  color: var(--emerald-900);
  font-weight: 600;
}
.question-bank-option.neutral {
  background: var(--slate-50);
  color: var(--slate-700);
}
.question-bank-rationale {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--blue-50);
  border-left: 3px solid var(--blue-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.5px;
  color: var(--blue-900);
}

/* ==========================================================================
   Readdy Identity & Advanced LMS Classroom Design System
   ========================================================================== */

/* Emerald Brand Emblem */
.brand-emblem-emerald {
  background: #059669;
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
  flex-shrink: 0;
}

/* Readdy Hero Section */
.readdy-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-radius: var(--radius-lg);
  background: #064e3b;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-xl);
}
.readdy-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero-equality.jpg");
  background-size: cover;
  background-position: right center;
  opacity: 0.95;
}
.readdy-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.96) 0%, rgba(6, 78, 59, 0.82) 48%, rgba(6, 78, 59, 0.40) 80%, rgba(6, 78, 59, 0.15) 100%);
}
.readdy-hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 2.5rem;
  max-width: 820px;
}
.readdy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  margin-bottom: 1.25rem;
  color: #ffffff;
}
.readdy-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  color: #ffffff;
  letter-spacing: -0.015em;
}
.readdy-hero p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}
.readdy-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.readdy-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #064e3b;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.readdy-btn-primary:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.readdy-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.readdy-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Roles Strip */
.readdy-roles-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.readdy-roles-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.readdy-roles-item {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ink-secondary);
  font-weight: 600;
  transition: color 0.15s;
}
.readdy-roles-item:hover {
  color: var(--emerald-600);
}

/* Showcase Section with Original Readdy Visuals */
.readdy-showcase-section {
  margin: 3.5rem 0;
}
.readdy-showcase-head {
  max-width: 650px;
  margin-bottom: 2.5rem;
}
.readdy-showcase-head h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.readdy-showcase-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .readdy-showcase-item {
    grid-template-columns: 1.1fr 1fr;
    padding: 2.5rem;
    gap: 3.5rem;
  }
  .readdy-showcase-item.reverse {
    grid-template-columns: 1fr 1.1fr;
  }
  .readdy-showcase-item.reverse > .showcase-img-wrap {
    order: 2;
  }
  .readdy-showcase-item.reverse > .showcase-text-wrap {
    order: 1;
  }
}
.showcase-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
  background: var(--slate-100);
}
.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-text-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 1rem 0;
  color: var(--ink);
}
.showcase-text-wrap p {
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.showcase-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.showcase-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.showcase-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-600);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--emerald-100);
}

/* ==========================================================================
   Interactive LMS Classroom (Two-Area Architecture)
   ========================================================================== */

/* Classroom Mode: Full Screen Span (Removes excessive side white spaces) */
body.classroom-mode main#content {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
body.classroom-mode .lms-layout {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  min-height: calc(100vh - 70px);
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
body.classroom-mode .lms-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 1.5rem 2rem 4rem 2rem;
  overflow-y: auto;
  overflow-x: hidden !important;
}

.lms-layout {
  display: flex;
  min-height: calc(100vh - 70px);
  background: #f8fafc;
  position: relative;
  width: 100%;
}

/* Sidebar Icon Rail & Collapsed State (Franja lateral con iconos interactivos) */
.sidebar-rail {
  display: none;
  width: 56px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  z-index: 41;
  padding: 8px 0;
  box-shadow: 1px 0 2px rgba(15, 23, 42, 0.03);
}

.lms-layout.sidebar-collapsed .sidebar-rail {
  display: flex !important;
}
.lms-layout.sidebar-collapsed .lms-sidebar {
  display: none !important;
}

.rail-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: all 0.15s ease;
  position: relative;
  box-shadow: none !important;
  min-height: unset !important;
  padding: 0 !important;
}
.rail-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.rail-btn.active {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.rail-btn.expand-trigger {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  font-weight: 800;
  margin-bottom: 12px;
}
.rail-btn.expand-trigger:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}
.rail-btn.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
  color: #94a3b8;
}
.rail-btn.is-locked:hover {
  background: transparent;
  color: #94a3b8;
}

.rail-badge-lock {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
  line-height: 1;
}

.sidebar-expand-btn {
  display: none !important;
  align-items: center;
  gap: 8px;
  background: #047857 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
  border-radius: var(--radius-sm) !important;
  border: none !important;
  cursor: pointer;
  box-shadow: var(--shadow-sm) !important;
  min-height: unset !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.lms-layout.sidebar-collapsed .sidebar-expand-btn {
  display: inline-flex !important;
}
.sidebar-expand-btn:hover {
  background: #065f46 !important;
  transform: translateY(-1px);
}

/* Sidebar Brand Header and Collapse Button */
.sidebar-brand-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.sidebar-collapse-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid var(--line) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 10px !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  min-height: unset !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}
.sidebar-collapse-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Left Sidebar Navigation */
@media (min-width: 1025px) {
  .lms-sidebar {
    width: 275px !important;
    min-width: 275px !important;
    max-width: 275px !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border-right: 1px solid var(--line) !important;
    display: flex !important;
    flex-direction: column !important;
    position: sticky !important;
    top: 70px !important;
    height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    z-index: 40 !important;
  }
}
@media (max-width: 1024px) {
  .sidebar-expand-btn {
    display: inline-flex !important;
  }
  .lms-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: min(320px, 86vw) !important;
    min-width: 0 !important;
    max-width: 86vw !important;
    z-index: 1050 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }
  .lms-sidebar.open {
    transform: translateX(0) !important;
  }
}

.lms-sidebar-header {
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.lms-sidebar-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.lms-sidebar-brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}

/* Sidebar Overall Progress */
.lms-sidebar-progress-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
}
.sidebar-progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.sidebar-progress-track {
  height: 6px;
  background: var(--slate-200);
  border-radius: 3px;
  overflow: hidden;
}
.sidebar-progress-bar {
  height: 100%;
  background: var(--emerald-600);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Sidebar Module Accordions */
.sidebar-modules-container {
  flex: 1;
  overflow-y: auto;
}
.sidebar-module-group {
  border-bottom: 1px solid var(--line);
}
.sidebar-module-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.sidebar-module-header:hover {
  background: #f8fafc;
}
.sidebar-module-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-module-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.sidebar-module-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.sidebar-module-arrow {
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.sidebar-module-group.expanded .sidebar-module-arrow {
  transform: rotate(180deg);
}

.sidebar-submodule-list {
  display: none;
  padding: 4px 0 8px 0;
  background: #fafbfc;
}
.sidebar-module-group.expanded .sidebar-submodule-list {
  display: block;
}

.sidebar-submodule-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 22px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--slate-700);
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-submodule-btn:hover {
  background: #f1f5f9;
  color: var(--ink);
}
.sidebar-submodule-btn.active {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
  border-left-color: #059669;
}
.submodule-text-wrap {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}

/* Status Indicators */
.submodule-status-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 9999px;
  flex-shrink: 0;
}
.status-completed {
  background: #d1fae5;
  color: #065f46;
}
.status-in-progress {
  background: #e0f2fe;
  color: #0369a1;
}
.status-pending {
  background: #f1f5f9;
  color: #64748b;
}
.status-locked {
  background: #fee2e2;
  color: #991b1b;
}

/* Sidebar Module End Activities (Task & Quiz) */
.sidebar-activity-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 24px;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.15s;
  background: transparent;
}
.sidebar-activity-item:hover {
  background: #f1f5f9;
}
.sidebar-activity-item.locked {
  color: #94a3b8;
  cursor: not-allowed;
}
.sidebar-activity-item.unlocked {
  color: #059669;
}

/* Sidebar Final Actions */
.sidebar-final-section {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}
.sidebar-final-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink);
}
.sidebar-final-btn:hover:not(:disabled) {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
}
.sidebar-final-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8fafc;
}

/* LMS Central Learning Space */
.lms-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}
@media (max-width: 640px) {
  .lms-main {
    padding: 1.25rem;
  }
}

/* Breadcrumbs & Lesson Heading */
.lms-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lms-lesson-title-area {
  margin-bottom: 1.5rem;
}
.lms-lesson-title-area h1 {
  font-size: 1.85rem;
  margin: 0 0 8px 0;
}

/* Video Player with Continuous Playback Measurement */
.video-classroom-container {
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.video-stream-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #090e17;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-stream-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-playback-metrics-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  padding: 10px 18px;
  color: #e2e8f0;
  font-size: 0.8125rem;
  gap: 10px;
}
.video-watch-progress-track {
  flex: 1;
  min-width: 140px;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  margin: 0 14px;
  overflow: hidden;
}
.video-watch-progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Lesson Navigation Buttons (Previous / Next) */
.lesson-nav-buttons-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.25rem;
}
.lesson-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.lesson-nav-btn.primary {
  background: var(--emerald-600);
  color: #ffffff;
  border: none;
}
.lesson-nav-btn.primary:hover {
  background: var(--emerald-700);
}
.lesson-nav-btn.secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.lesson-nav-btn.secondary:hover {
  background: #f1f5f9;
}

/* Progressive Unlocking Banner Cards */
.locked-section-card {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  margin: 1.5rem 0;
}
.locked-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: inline-grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 1.25rem;
}
.locked-section-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0 0 8px 0;
  color: var(--ink);
}
.locked-section-card p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.55;
}

.unlocked-section-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  margin: 1.25rem 0;
}

/* Compact Feature Grid & Cards (requested for easier navigation) */
.grid-features-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.card-feature-compact {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  border-top: 3px solid var(--emerald-600);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card-feature-compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-feature-compact .feature-icon {
  font-size: 20px;
  margin-bottom: 6px;
  display: inline-block;
}
.card-feature-compact h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--ink);
}
.card-feature-compact p {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

/* Compact Catalog Course Card */
.course-card-compact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  transition: transform 0.15s, box-shadow 0.15s;
}
.course-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.course-card-compact .course-card-thumb {
  position: relative;
  height: 125px;
  overflow: hidden;
  background: #064e3b;
}
.course-card-compact .course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.course-card-compact .course-card-body {
  padding: 1rem 1.15rem;
  flex: 1;
}
.course-card-compact .course-card-footer {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

/* Classroom Course Header Banner (preserves presentation identity & typography) */
.classroom-course-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
  color: #ffffff;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}
.classroom-course-banner h1 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #ffffff;
}





/* Explicit Text Color & Style Resets for Sidebar Buttons (prevents white-on-white text) */
.sidebar-module-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff !important;
  color: #0f172a !important;
  border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  box-shadow: none !important;
  min-height: unset !important;
  transition: background 0.15s;
}
.sidebar-module-header:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}
.sidebar-module-header * {
  color: inherit;
}
.sidebar-submodule-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 8px 18px;
  background: transparent !important;
  color: #0f172a !important;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  font-size: 0.8125rem;
  box-shadow: none !important;
  min-height: unset !important;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-submodule-btn:hover {
  background: #f1f5f9 !important;
  color: #064e3b !important;
}
.sidebar-submodule-btn.active {
  background: #ecfdf5 !important;
  color: #064e3b !important;
  font-weight: 600;
  border-left-color: #059669;
}
.sidebar-activity-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 8px 20px;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  background: transparent !important;
  color: #334155 !important;
  box-shadow: none !important;
  min-height: unset !important;
  transition: background 0.15s;
}
.sidebar-activity-item:hover {
  background: #f1f5f9 !important;
}
.sidebar-activity-item.unlocked {
  color: #059669 !important;
}
.sidebar-activity-item.locked {
  color: #94a3b8 !important;
  cursor: not-allowed;
}
.sidebar-final-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: none !important;
  min-height: unset !important;
  transition: all 0.15s;
}
.sidebar-final-btn:hover:not(:disabled) {
  border-color: var(--emerald-600);
  background: var(--emerald-50) !important;
  color: var(--emerald-900) !important;
}
.sidebar-final-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8fafc !important;
  color: #94a3b8 !important;
}

/* Sidebar Toggle Button Rules (desktop vs mobile) */
@media (min-width: 1025px) {
  .sidebar-toggle-btn {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .sidebar-toggle-btn {
    display: inline-flex !important;
    background: #ecfdf5 !important;
    color: #064e3b !important;
    border: 1px solid #a7f3d0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    height: 36px !important;
    padding: 6px 12px !important;
    margin-right: 10px;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   Compliance Need, Risk Urgency, and WhatsApp CTAs for Course Presentation
   ========================================================================== */
.readdy-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366 !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.975rem;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.readdy-btn-whatsapp:hover {
  background: #20bd5a !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.compliance-urgency-banner {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #065f46 100%) !important;
  color: #ffffff !important;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  border-left: 6px solid #10b981;
}
.compliance-urgency-banner h2 {
  color: #ffffff !important;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0 0 12px 0;
  line-height: 1.2;
}
.compliance-urgency-banner p {
  color: #f1f5f9 !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.compliance-urgency-banner strong {
  color: #ffffff !important;
}
.compliance-urgency-banner a {
  color: #6ee7b7 !important;
}
.compliance-urgency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .compliance-urgency-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
  }
}

/* Compliance Real-Time Countdown Timer */
.compliance-countdown-wrap {
  margin-top: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(52, 211, 153, 0.45);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.compliance-countdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #a7f3d0 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.compliance-countdown-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.countdown-card {
  flex: 1;
  min-width: 65px;
  background: rgba(6, 78, 59, 0.85);
  border: 1px solid rgba(110, 231, 183, 0.4);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.countdown-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fde047 !important;
  line-height: 1;
}
.countdown-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.risk-callout-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1.5px solid rgba(253, 224, 71, 0.4);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(8px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.risk-callout-tag {
  display: inline-block;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.risk-callout-val {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fde047 !important;
  line-height: 1.1;
  margin: 0.25rem 0 0.5rem 0;
}
.risk-callout-sub {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #f1f5f9 !important;
  margin-bottom: 1rem;
}

.grid-compliance-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card-compliance-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.card-compliance-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-compliance-step .step-number {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--emerald-600);
  margin-bottom: 0.35rem;
  display: block;
  line-height: 1;
}
.card-compliance-step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--ink);
}
.card-compliance-step p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.compliance-faq-details {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}
.compliance-faq-details[open] {
  border-color: var(--emerald-500);
  background: #fcfdfd;
}
.compliance-faq-details summary {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.compliance-faq-details summary::-webkit-details-marker {
  display: none;
}
.compliance-faq-details summary:after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--emerald-700);
}
.compliance-faq-details[open] summary:after {
  content: "−";
}
.compliance-faq-details .faq-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
  line-height: 1.6;
  color: #334155;
}

.quote-contact-card {
  background: #ffffff;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
}

.official-source-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.official-source-chip:hover {
  border-color: var(--emerald-600);
  background: #f0fdf4;
  transform: translateY(-1px);
}
.official-source-chip strong {
  display: block;
  font-size: 0.925rem;
  color: var(--emerald-900);
}
.official-source-chip span {
  font-size: 0.8rem;
  color: var(--muted);
}



/* ==========================================================================
   OSH Teach · Enhanced High-Contrast LMS & Clean Sidebar Architecture
   High readability, fluid transitions, and accessible typography.
   ========================================================================== */

/* Animation for fluid, instantaneous lesson transitions */
@keyframes lmsFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lms-fade-in {
  animation: lmsFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Base Body in Classroom Mode */
body.classroom-mode {
  background: #f8fafc !important;
  color: #0f172a !important;
  font-family: var(--font-sans) !important;
}

/* LMS Layout */
.lms-layout {
  display: flex;
  min-height: calc(100vh - 70px);
  background: #f8fafc;
  position: relative;
  width: 100%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Container (Clean, Compact, Minimalist, Accessible) */
@media (min-width: 1025px) {
  .lms-sidebar {
    width: 275px !important;
    min-width: 275px !important;
    max-width: 275px !important;
    flex-shrink: 0;
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: sticky !important;
    top: 70px !important;
    height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    z-index: 40 !important;
    box-shadow: 1px 0 2px rgba(15, 23, 42, 0.02) !important;
  }
}

.lms-sidebar::-webkit-scrollbar {
  width: 4px;
}
.lms-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.lms-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

/* Sidebar Brand Header */
.sidebar-brand-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px;
  padding: 10px 14px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

.sidebar-collapse-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border-radius: 4px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 10px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.sidebar-collapse-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* Sidebar Return Link */
.sidebar-return-link {
  padding: 6px 14px !important;
  border-bottom: 1px solid #f1f5f9;
  background: #fcfdfd;
}
.sidebar-return-link a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #047857 !important;
  text-decoration: none;
  transition: color 0.15s ease;
}
.sidebar-return-link a:hover {
  color: #065f46 !important;
  text-decoration: underline;
}

/* Sidebar Progress Block (Light, Sleek & Accurate) */
.sidebar-progress-block {
  padding: 8px 14px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #fcfdfd !important;
}
.sidebar-progress-block .prog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.sidebar-progress-block .prog-title {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-progress-block .prog-pct {
  font-size: 12px;
  font-weight: 800;
  color: #047857;
}
.sidebar-progress-block .prog-pct.zero-pct {
  color: #64748b !important;
  font-weight: 600 !important;
}

/* Progress bar: at 0%, no visual glitch or gradient fill */
.classroom-progress-bar {
  height: 4px !important;
  background: #e2e8f0 !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  margin: 3px 0 5px 0 !important;
}
.classroom-progress-fill {
  height: 100% !important;
  background: #059669 !important;
  border-radius: 2px !important;
  transition: width 0.3s ease !important;
}
.classroom-progress-fill.zero-progress {
  display: none !important;
  width: 0% !important;
  opacity: 0 !important;
  background: transparent !important;
}

/* Sidebar Modules List */
.sidebar-modules-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 !important;
}

/* Module Group & Header */
.sidebar-module-group {
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background 0.15s ease;
}

.sidebar-module-header {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 14px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: none !important;
  border-left: 3px solid transparent !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: none !important;
  min-height: unset !important;
  transition: all 0.15s ease !important;
}
.sidebar-module-header:hover:not(.is-locked) {
  background: #f8fafc !important;
}
.sidebar-module-header.is-locked {
  background: #f8fafc !important;
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}
.sidebar-module-header.is-locked .sidebar-module-name {
  color: #64748b !important;
}
.sidebar-module-header.is-locked .sidebar-module-tag {
  color: #94a3b8 !important;
}
.sidebar-module-group.open .sidebar-module-header {
  background: #fcfdfd !important;
  border-left-color: #059669 !important;
}

.sidebar-module-tag {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #047857 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.sidebar-module-name {
  font-family: var(--font-sans) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 2px !important;
}

.module-chevron {
  font-size: 9px !important;
  color: #64748b !important;
  transition: transform 0.2s ease !important;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9999px;
  padding: 1px 5px;
  min-width: 16px;
  height: 16px;
}
.status-indicator.status-done {
  background: #dcfce7;
  color: #15803d;
}
.status-indicator.status-current {
  background: #e0f2fe;
  color: #0369a1;
}
.status-indicator.status-pending {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.status-indicator.status-locked {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  font-size: 9px;
}

/* Submodules Container (Lessons List) */
.sidebar-submodules-container {
  background: #f8fafc !important;
  padding: 4px 10px 8px 14px !important;
  border-top: 1px solid #f1f5f9 !important;
  position: relative;
}
.sidebar-submodules-container::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 10px;
  left: 22px;
  width: 2px;
  background: #e2e8f0;
  border-radius: 1px;
}

/* Submodule Lesson Button */
.sidebar-submodule-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 8px !important;
  margin: 1px 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #334155 !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  text-align: left !important;
  font-size: 12px !important;
  box-shadow: none !important;
  min-height: unset !important;
  transition: all 0.15s ease !important;
  position: relative;
  z-index: 2;
}
.sidebar-submodule-btn:hover:not(.locked) {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
.sidebar-submodule-btn.locked {
  opacity: 0.52 !important;
  cursor: not-allowed !important;
  color: #94a3b8 !important;
  background: #f8fafc !important;
}
.sidebar-submodule-btn.locked:hover {
  background: #f1f5f9 !important;
  color: #64748b !important;
}
.sidebar-submodule-btn.locked .lesson-num {
  color: #94a3b8 !important;
}
.submodule-lock {
  font-size: 11px;
  color: #94a3b8;
}
.sidebar-submodule-btn.active {
  background: #ecfdf5 !important;
  color: #064e3b !important;
  font-weight: 600 !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 1px 2px rgba(6, 78, 59, 0.06) !important;
}
.sidebar-submodule-btn.active .lesson-num {
  color: #047857 !important;
  font-weight: 800 !important;
}

.lesson-num {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  min-width: 20px !important;
}
.lesson-title-text {
  font-size: 12px !important;
  line-height: 1.25 !important;
  color: inherit !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.submodule-check {
  color: #059669 !important;
  font-weight: 800 !important;
  font-size: 12px !important;
}

/* Module Activities Box (Integrated, Not Overloaded) */
.sidebar-module-activities-box {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #cbd5e1;
  position: relative;
  z-index: 2;
}
.sidebar-activity-item {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 5px 8px !important;
  margin: 1px 0 !important;
  border-radius: 5px !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  text-align: left !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  background: transparent !important;
  color: #334155 !important;
  box-shadow: none !important;
  min-height: unset !important;
  transition: all 0.15s ease !important;
}
.sidebar-activity-item:hover {
  background: #e2e8f0 !important;
}
.sidebar-activity-item.unlocked {
  color: #047857 !important;
}
.sidebar-activity-item.locked {
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}

/* Sidebar Final Actions (Scrollable at the end of modules list) */
.sidebar-final-section {
  padding: 12px 14px 16px 14px !important;
  margin-top: 8px !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #fafbfc !important;
}
.sidebar-final-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  min-height: unset !important;
  transition: all 0.15s ease !important;
}
.sidebar-final-btn:hover:not(:disabled) {
  border-color: #059669 !important;
  background: #ecfdf5 !important;
  color: #064e3b !important;
}
.sidebar-final-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background: #f8fafc !important;
  color: #94a3b8 !important;
}

/* Sidebar XP Footer - Ultra-compact, non-intrusive */
.sidebar-xp-footer {
  padding: 10px 14px 12px 14px !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.04) !important;
}

.sidebar-xp-footer-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 11.5px !important;
}

.sidebar-xp-footer-title {
  font-weight: 700 !important;
  color: #064e3b !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.sidebar-xp-footer-status {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #047857 !important;
}

.sidebar-xp-target-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.sidebar-xp-target-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 11.5px !important;
  margin-bottom: 4px !important;
}

.sidebar-xp-target-title {
  color: #475569 !important;
  font-weight: 600 !important;
}

.sidebar-xp-target-count {
  color: #065f46 !important;
  font-weight: 700 !important;
}

.sidebar-xp-bar-track {
  height: 6px !important;
  background: #e2e8f0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin-bottom: 5px !important;
}

.sidebar-xp-bar-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #059669, #10b981) !important;
  border-radius: 999px !important;
  transition: width 0.3s ease !important;
}

.sidebar-xp-target-hint {
  font-size: 11px !important;
  text-align: center !important;
  font-weight: 600 !important;
  color: #047857 !important;
}

/* My Learning Cards Grid */
.my-learning-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.my-learning-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
  border-color: #cbd5e1 !important;
}

.my-learning-thumb-wrap {
  position: relative !important;
  height: 180px !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #064e3b !important;
}

.my-learning-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.my-learning-card:hover .my-learning-thumb-img {
  transform: scale(1.04) !important;
}

.my-learning-thumb-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.65) 100%) !important;
  pointer-events: none !important;
}

.my-learning-thumb-top-badges {
  position: absolute !important;
  top: 12px !important;
  left: 14px !important;
  right: 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.my-learning-chip-hours {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #064e3b !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}

.my-learning-chip-status {
  font-weight: 700 !important;
  font-size: 11.5px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}

.my-learning-thumb-bottom-tags {
  position: absolute !important;
  bottom: 10px !important;
  left: 14px !important;
}

.my-learning-chip-norm {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(6, 78, 59, 0.9) !important;
  color: #ecfdf5 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(4px) !important;
}

.my-learning-body {
  padding: 20px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  justify-content: space-between !important;
}

.my-learning-title {
  font-family: var(--font-sans) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  margin: 0 0 14px 0 !important;
}

.my-learning-progress-labels {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 13px !important;
  color: #475569 !important;
  margin-bottom: 6px !important;
  font-weight: 500 !important;
}

.my-learning-progress-labels strong {
  color: #047857 !important;
  font-weight: 700 !important;
}

.my-learning-progress-track {
  height: 7px !important;
  background: #e2e8f0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

.my-learning-progress-bar {
  height: 100% !important;
  background: linear-gradient(90deg, #059669, #10b981) !important;
  border-radius: 999px !important;
  transition: width 0.3s ease !important;
}

.my-learning-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap !important;
}

.my-learning-btn-enter {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  text-align: center !important;
  background: #008b94 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 139, 148, 0.35) !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.my-learning-btn-enter:hover {
  background: #00737a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(0, 139, 148, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Central Area Styling */
.lms-main {
  flex: 1;
  min-width: 0;
  padding: 1.75rem 2.25rem 4rem 2.25rem !important;
  overflow-y: auto;
}

/* Classroom Course Banner (Refined, Deep Emerald Contrast) */
.classroom-course-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #059669 100%) !important;
  color: #ffffff !important;
  padding: 1.5rem 2rem !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.22) !important;
  margin-bottom: 1.5rem !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.classroom-banner-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
}

.classroom-banner-content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.classroom-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
}

.classroom-banner-text-block {
  min-width: 0;
  flex: 1;
}

.classroom-banner-thumb-img {
  width: 140px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
  display: block;
}

@media (max-width: 768px) {
  .classroom-banner-thumb-img {
    width: 80px;
    height: 54px;
  }
}

.classroom-course-banner h1 {
  font-family: var(--font-sans) !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35) !important;
}

.classroom-course-banner p {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #e6fffa !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.classroom-banner-progress-card {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  backdrop-filter: blur(8px) !important;
  min-width: 200px !important;
  flex-shrink: 0 !important;
  text-align: right !important;
  box-sizing: border-box !important;
}

.banner-prog-label {
  font-size: 12.5px;
  color: #e6fffa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-prog-pct {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin: 2px 0;
}

.banner-prog-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 8px 0;
}

.banner-prog-fill {
  height: 100%;
  background: #34d399;
  border-radius: 999px;
}

.banner-prog-sub {
  font-size: 12px;
  color: #f0fdf4;
  font-weight: 600;
}

/* Classroom Tabs (Readable, Sleek & Accessible) */
.classroom-tabs {
  display: flex !important;
  gap: 6px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  margin-bottom: 1.5rem !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding-bottom: 2px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}
.classroom-tabs::-webkit-scrollbar {
  display: none;
}
.classroom-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border-radius: 8px 8px 0 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
  white-space: nowrap !important;
}
.classroom-tab:hover {
  color: #064e3b !important;
  background: #f0fdf4 !important;
}
.classroom-tab.active {
  color: #047857 !important;
  font-weight: 700 !important;
  border-bottom-color: #059669 !important;
  background: #ecfdf5 !important;
}

/* Technical & Legal Rationale Card */
.unlocked-section-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.75rem 2rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  margin: 1.25rem 0 !important;
}
.unlocked-section-card h2 {
  font-family: var(--font-sans) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #064e3b !important;
  line-height: 1.3 !important;
}
.lesson-body-text {
  font-size: 15.5px !important;
  line-height: 1.7 !important;
  color: #1e293b !important;
  margin: 16px 0 !important;
}
.lesson-body-text p {
  margin-bottom: 14px !important;
}

/* Compliance Legal Box (Ecuador) */
.ecuador-compliance-box {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  margin-top: 18px !important;
}
.ecuador-compliance-box strong.box-title {
  color: #064e3b !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 8px !important;
}
.ecuador-compliance-box ul {
  margin: 0 0 0 20px !important;
  font-size: 14px !important;
  color: #14532d !important;
  line-height: 1.65 !important;
}
#lms-compliance-box-content p {
  margin: 0 0 8px 0 !important;
  line-height: 1.6 !important;
  color: #14532d !important;
}
#lms-compliance-box-content ul {
  margin: 6px 0 8px 22px !important;
  padding: 0 !important;
  list-style-type: disc !important;
}
#lms-compliance-box-content li {
  margin-bottom: 8px !important;
  line-height: 1.55 !important;
  color: #14532d !important;
}
#lms-compliance-box-content strong,
#lms-compliance-box-content b {
  font-weight: 700 !important;
  color: #064e3b !important;
}

/* Interactive Dilemma Card */
.dilemma-box {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 22px 24px !important;
  margin: 24px 0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
.dilemma-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.dilemma-badge {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}
.dilemma-xp-reward {
  color: #047857 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}
.dilemma-scenario {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: #0f172a !important;
  margin-bottom: 18px !important;
  background: #f8fafc !important;
  padding: 16px !important;
  border-radius: 8px !important;
  border-left: 4px solid #059669 !important;
}
.dilemma-option-btn {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.dilemma-option-btn:hover:not(:disabled) {
  border-color: #059669 !important;
  background: #f0fdf4 !important;
  color: #064e3b !important;
  transform: translateX(4px) !important;
}
.dilemma-option-btn strong {
  color: #047857 !important;
  font-weight: 800 !important;
}

/* Lesson Navigation Bar */
.lesson-nav-buttons-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 1.5rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid #e2e8f0 !important;
  flex-wrap: wrap !important;
}
.lesson-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 11px 20px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.lesson-nav-btn.primary {
  background: #059669 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25) !important;
}
.lesson-nav-btn.primary:hover:not(:disabled) {
  background: #047857 !important;
  transform: translateY(-1px) !important;
}
.lesson-nav-btn.primary:disabled {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
  box-shadow: none !important;
  cursor: default !important;
}
.lesson-nav-btn.secondary {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
}
.lesson-nav-btn.secondary:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Badge Styles (High-Contrast, WCAG Compliant) */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
}
.badge.info {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}
.badge.success {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}
.badge.warn {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}
.badge.danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

/* --------------------------------------------------------------------------
   Moodle-Style Inline Edit Mode (Modo Edición en Pantalla)
   -------------------------------------------------------------------------- */
.lms-edit-mode-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
  gap: 12px;
}
.edit-mode-status-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-toggle-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-toggle-edit:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.btn-toggle-edit.is-active {
  background: #047857 !important;
  color: #ffffff !important;
  border-color: #065f46 !important;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25) !important;
}
.btn-toggle-edit.is-active:hover {
  background: #065f46 !important;
}

.lms-edit-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 4px solid #059669;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 13.5px;
  color: #064e3b;
  flex-wrap: wrap;
}

.btn-lms-inline-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #f0fdf4;
  color: #047857;
  border: 1px solid #a7f3d0;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-lms-inline-edit:hover {
  background: #dcfce7;
  border-color: #059669;
  color: #064e3b;
  transform: translateY(-1px);
}

.btn-sidebar-quick-edit {
  background: transparent;
  border: none;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  opacity: 0.7;
  transition: all 0.15s ease;
  margin-left: auto;
}
.btn-sidebar-quick-edit:hover {
  opacity: 1;
  background: #e2e8f0;
}

/* Visibility toggling by Edit Mode */
.admin-mode-only {
  display: none !important;
}
.lms-layout.lms-edit-mode-active .admin-mode-only {
  display: inline-flex !important;
}
.lms-layout.lms-edit-mode-active .admin-mode-block {
  display: block !important;
}
.lms-layout.lms-edit-mode-active .admin-mode-flex {
  display: flex !important;
}

/* Modal Form Controls */
.modal-form-group {
  margin-bottom: 16px;
}
.modal-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}
.modal-form-group input[type="text"],
.modal-form-group textarea,
.modal-form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
}
.modal-form-group input[type="text"]:focus,
.modal-form-group textarea:focus {
  border-color: #047857;
  outline: none;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}
.modal-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   Responsive Classroom & Microlearning Layout for Tablets and Mobile Devices
   Prevents layout breaks, text overflow, and horizontal scrolling
   ========================================================================== */

/* Dark Blurred Backdrop for Off-Canvas Sidebar Drawer */
.lms-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lms-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Tablets and Mobile (<= 1024px): Off-canvas navigation & full-width main */
@media (max-width: 1024px) {
  body.classroom-mode {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.classroom-mode main#content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.classroom-mode .lms-layout {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    min-height: auto !important;
  }
  .sidebar-rail {
    display: none !important;
  }
  .sidebar-expand-btn {
    display: inline-flex !important;
  }
  .lms-layout.sidebar-collapsed .sidebar-expand-btn {
    display: inline-flex !important;
  }
  .lms-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: min(320px, 86vw) !important;
    min-width: 0 !important;
    max-width: 86vw !important;
    z-index: 1050 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .lms-sidebar:not(.open) {
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .lms-sidebar.open {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }
  .sidebar-submodule-btn {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  .lesson-title-text {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  body.classroom-mode .lms-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 1.25rem 1rem 3.5rem 1rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .quiz-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)) !important;
  }
  .classroom-stats-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important;
  }
}

/* Mobile & Phablet (<= 768px): Refined spacing, vertical stacking & wrapping */
@media (max-width: 768px) {
  .app-header {
    height: auto !important;
    padding: 10px 0 !important;
  }
  .header-container {
    padding: 0 14px !important;
    gap: 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .header-brand-group {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .header-nav {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .nav-user-area {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  #account-link {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
  body.classroom-mode .lms-main {
    padding: 0.85rem 0.65rem 2.5rem 0.65rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .classroom-course-banner {
    padding: 1.15rem 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .classroom-course-banner > div:last-child,
  .classroom-banner-content-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .classroom-course-banner > div:last-child > div:first-child,
  .classroom-banner-left {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }
  .classroom-banner-text-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .classroom-banner-thumb-img {
    width: 80px !important;
    height: 54px !important;
    border-radius: 8px !important;
  }
  .classroom-course-banner h1 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    word-break: break-word !important;
  }
  .classroom-course-banner p {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
  }
  .classroom-banner-progress-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    padding: 12px 14px !important;
    margin-top: 4px !important;
  }
  .classroom-tabs {
    gap: 4px !important;
    margin-bottom: 1rem !important;
    padding-bottom: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .classroom-tab {
    padding: 8px 12px !important;
    font-size: 13px !important;
    gap: 6px !important;
  }
  .lesson-nav-buttons-bar {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .lesson-nav-buttons-bar > * {
    width: 100% !important;
  }
  .lesson-nav-buttons-bar .lesson-nav-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 11px 14px !important;
    font-size: 13.5px !important;
  }
  .video-playback-metrics-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px 14px !important;
  }
  .video-watch-progress-track {
    width: 100% !important;
    min-width: 0 !important;
    margin: 4px 0 !important;
  }
  .quiz-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .quiz-card {
    padding: 18px 16px !important;
  }
  .quiz-modal-backdrop {
    padding: 10px !important;
  }
  .quiz-modal-card {
    padding: 18px 14px !important;
    max-height: 92vh !important;
    border-radius: 12px !important;
  }
  .unlocked-section-card,
  .locked-section-card,
  .lesson-card-focused {
    padding: 1.15rem 1rem !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .lms-breadcrumbs {
    font-size: 12px !important;
    flex-wrap: wrap !important;
    line-height: 1.4 !important;
  }
  .dilemma-options {
    gap: 8px !important;
  }
  .dilemma-option-btn {
    padding: 10px 12px !important;
    font-size: 13.5px !important;
  }
}

/* Small Smartphone Viewport (<= 480px) */
@media (max-width: 480px) {
  .header-brand-group {
    gap: 8px !important;
  }
  .app-brand-logo {
    max-width: 120px !important;
    height: 28px !important;
  }
  #account-link {
    max-width: 130px;
    font-size: 13px !important;
  }
  body.classroom-mode .lms-main,
  .lms-main {
    padding: 0.75rem 0.5rem 2.5rem 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .classroom-course-banner {
    padding: 0.9rem 0.75rem !important;
  }
  .classroom-banner-thumb-img {
    width: 58px !important;
    height: 42px !important;
  }
  .classroom-course-banner h1 {
    font-size: 1.12rem !important;
  }
  .unlocked-section-card,
  .locked-section-card {
    padding: 0.9rem 0.75rem !important;
  }
  .sidebar-expand-btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

/* Evaluation Module Navigator & Focused Card */
.eval-module-pill-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.eval-mod-pill {
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.eval-mod-pill:hover {
  border-color: #059669 !important;
  color: #065f46 !important;
}
.eval-mod-pill.active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
}
.eval-single-card {
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .eval-module-pill-selector {
    gap: 6px !important;
    margin-bottom: 16px !important;
  }
  .eval-mod-pill {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
  }
  .eval-single-card {
    padding: 18px 14px !important;
  }
}

/* --------------------------------------------------------------------------
   Markdown Rich Content, Tables, Graphics & Formatting Toolbars
   -------------------------------------------------------------------------- */
.practical-narrative-content {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.7;
}

.practical-narrative-content p {
  margin: 0 0 12px 0;
}

.practical-narrative-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Table Wrapper */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lms-markdown-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
}

.lms-markdown-table th {
  background: #065f46;
  color: #ffffff;
  padding: 11px 16px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
  border: 1px solid #047857;
  white-space: nowrap;
}

.lms-markdown-table td {
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}

.lms-markdown-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.lms-markdown-table tbody tr:hover {
  background: #f0fdf4;
}

/* Graphics and Figures */
.lms-figure {
  margin: 18px auto;
  text-align: center;
  max-width: 100%;
}

.lms-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid #cbd5e1;
  display: inline-block;
}

.lms-figure figcaption {
  font-size: 12.5px;
  color: #64748b;
  font-style: italic;
  margin-top: 6px;
}

/* Formatting Toolbars in Modals */
.lms-format-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  margin: 4px 0 8px 0;
}

.btn-fmt-action {
  transition: all 0.15s ease;
  user-select: none;
}

.btn-fmt-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-fmt-action:active {
  transform: translateY(0);
}
