/* ============================================================
   NÕIATAR KOOLITUSKESKUS — main.css
   Hele õppekeskkond, mockupide järgi
   ============================================================ */

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  /* Põhivärvid */
  --cream:      #F5EFE3;   /* lehe taust */
  --cream-deep: #EDE4D3;   /* sektsioonid */
  --card:       #FDFAF5;   /* kaardid */
  --card-hover: #FFF9F0;
  --border:     #E8DDD0;
  --border-light: #F0E8DA;

  /* Tekst */
  --text:       #1A1208;   /* põhitekst */
  --text-muted: #7A6A56;   /* sekundaarne */
  --text-light: #A89880;   /* placeholder jne */

  /* Kuld aktsent — sama mis noiatar.ee champagne */
  --gold:       #A87526;
  --gold-light: #C8AA82;
  --gold-pale:  #E8D5B0;
  --gold-dark:  #7A5218;

  /* Sidebar — tume, sama DNA mis noiatar.ee */
  --sidebar-bg:     #0F0C09;
  --sidebar-hover:  #1A1510;
  --sidebar-active: #201A12;
  --sidebar-gold:   #C8AA82;
  --sidebar-muted:  rgba(200,170,130,0.45);
  --sidebar-border: rgba(200,170,130,0.1);

  /* Olek */
  --success:    #2F7A4C;
  --success-bg: #EAF5EE;
  --warning:    #C87A2D;
  --warning-bg: #FDF3E8;
  --info:       #2D6AC8;
  --info-bg:    #EAF0FD;

  /* Kuju */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full: 999px;

  /* Vari */
  --shadow-sm:  0 2px 8px rgba(26,18,8,.06);
  --shadow-md:  0 8px 28px rgba(26,18,8,.08);
  --shadow-lg:  0 20px 60px rgba(26,18,8,.12);

  /* Fondid */
  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* Mõõdud */
  --sidebar-w:  216px;
  --topbar-h:   64px;
  --transition: 0.25s ease;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }
input, select, textarea { font-family: var(--sans); }
ul, ol { list-style: none; }
svg { flex-shrink: 0; }

/* ── TÜPOGRAAFIA ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}
h1 { font-size: clamp(32px, 4vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 38px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: clamp(16px, 2vw, 20px); }
p  { color: var(--text-muted); font-size: 14px; line-height: 1.75; }

.serif  { font-family: var(--serif); }
.serif-italic { font-family: var(--serif); font-style: italic; }
.gold   { color: var(--gold); }
.muted  { color: var(--text-muted); }

/* Eyebrow */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}


/* ══════════════════════════════════════════════════════════
   APP SHELL — Admin bar + Sidebar + Topbar + Content
   Kõik mõõdud CSS muutujatena, admin bar lükkab kogu
   layout alla nii et miski ei kattu
   ══════════════════════════════════════════════════════════ */

/* Dünaamilised mõõdud */
:root {
  --admin-bar-h: 0px;      /* 36px kui admin sisse logitud */
  --sidebar-w:   220px;
  --topbar-h:    56px;
}

body.nlms-is-admin {
  --admin-bar-h: 36px;
}

/* ── ADMIN PREVIEW BAR ─────────────────────────────────── */
.nlms-admin-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--admin-bar-h);
  background: #0F0C09;
  border-bottom: 1px solid rgba(200,170,130,.15);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  z-index: 1000;
  overflow: hidden;
}

.nlms-admin-bar__label {
  color: #C8AA82;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nlms-admin-bar__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #A87526;
  flex-shrink: 0;
  animation: nla-pulse 2s ease-in-out infinite;
}

@keyframes nla-pulse {
  0%,100% { opacity:1; } 50% { opacity:.35; }
}

.nlms-admin-bar__sep { color: rgba(200,170,130,.2); }

.nlms-admin-bar__link {
  color: rgba(200,170,130,.55);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
  text-decoration: none;
  white-space: nowrap;
}

.nlms-admin-bar__link:hover { color: #C8AA82; }

.nlms-admin-bar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nlms-admin-bar__user {
  color: rgba(200,170,130,.4);
  font-size: 11px;
  white-space: nowrap;
}

/* ── APP SHELL ─────────────────────────────────────────── */
.nlms-app {
  display: flex;
  min-height: 100vh;
  /* Push below admin bar */
  padding-top: var(--admin-bar-h);
}

/* ── SIDEBAR ───────────────────────────────────────────── */
.nlms-sidebar {
  position: fixed;
  top: var(--admin-bar-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--admin-bar-h));
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 500;
  overflow: hidden;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.nlms-sidebar__logo-wrap {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nlms-sidebar__emblem {
  width: 38px; height: 38px;
  object-fit: contain;
  opacity: .92;
  flex-shrink: 0;
}

.nlms-sidebar__brand { display: flex; flex-direction: column; gap: 2px; }

.nlms-sidebar__brand-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sidebar-gold);
  line-height: 1;
}

.nlms-sidebar__brand-sub {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.nlms-sidebar__ornament-wrap {
  height: 100px;
  overflow: hidden;
  flex-shrink: 0;
}

.nlms-sidebar__ornament {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .55;
}

.nlms-sidebar__nav {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nlms-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--sidebar-muted);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.nlms-sidebar__link svg { flex-shrink: 0; }

.nlms-sidebar__link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-gold);
  text-decoration: none;
}

.nlms-sidebar__link.is-active {
  background: var(--sidebar-active);
  color: var(--sidebar-gold);
  font-weight: 500;
}

.nlms-sidebar__link.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}

.nlms-sidebar__badge {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.nlms-sidebar__link--admin {
  margin-top: 6px;
  border-top: 1px solid var(--sidebar-border);
  padding-top: 14px;
  color: rgba(200,170,130,.7);
}

.nlms-sidebar__link--admin:hover { color: var(--sidebar-gold); }

.nlms-sidebar__bottom {
  padding: 12px 10px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.nlms-sidebar__quote {
  background: rgba(200,170,130,.06);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  text-align: center;
}

.nlms-sidebar__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--sidebar-muted);
  line-height: 1.6;
}

.nlms-sidebar__quote-star {
  display: block;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: .2em;
  margin-top: 5px;
}

.nlms-sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px;
}

.nlms-sidebar__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .04em;
}

.nlms-sidebar__user-info { flex: 1; min-width: 0; }

.nlms-sidebar__user-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--sidebar-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nlms-sidebar__user-email {
  font-size: 10px;
  color: var(--sidebar-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nlms-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--admin-bar-h);
  background: rgba(0,0,0,.55);
  z-index: 490;
  backdrop-filter: blur(2px);
}

/* ── CONTENT AREA ──────────────────────────────────────── */
.nlms-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--admin-bar-h));
  background: var(--cream);
  min-width: 0;
}

/* ── TOPBAR ─────────────────────────────────────────────── */
.nlms-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(245,239,227,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  flex-shrink: 0;
}

.nlms-topbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nlms-topbar__hamburger:hover { background: var(--cream-deep); }

.nlms-topbar__hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nlms-topbar__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nlms-topbar__breadcrumb a { color: var(--text-muted); transition: color .15s; }
.nlms-topbar__breadcrumb a:hover { color: var(--gold); }
.nlms-topbar__breadcrumb span { opacity: .4; }
.nlms-topbar__breadcrumb strong { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nlms-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nlms-topbar__icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nlms-topbar__icon-btn:hover { color: var(--gold); border-color: var(--gold-pale); }

.nlms-topbar__notif-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  border: 1.5px solid var(--cream);
}

.nlms-topbar__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.nlms-topbar__avatar:hover { border-color: var(--gold); }

/* ── PAGE INNER ─────────────────────────────────────────── */
.nlms-inner {
  padding: 32px 36px;
  flex: 1;
}

/* ── PAGE HEADER ────────────────────────────────────────── */
.nlms-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.nlms-page-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin: 4px 0 6px;
}

.nlms-page-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.nlms-footer {
  padding: 18px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  background: var(--card);
  letter-spacing: .02em;
  flex-shrink: 0;
}

.nlms-footer a { color: var(--text-light); }
.nlms-footer a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet wide: 1200px */
@media (max-width: 1200px) {
  .nlms-dashboard-grid  { grid-template-columns: 1fr; }
  .nlms-course-layout   { grid-template-columns: 1fr; }
  .nlms-course-sidebar  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .nlms-lesson-layout   { grid-template-columns: 1fr; height: auto; }
  .nlms-lesson-nav-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 300px;
    overflow-y: auto;
  }
  .nlms-lesson-bottom-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet: 900px */
@media (max-width: 900px) {
  :root { --sidebar-w: 220px; }

  .nlms-login-layout  { grid-template-columns: 1fr; }
  .nlms-login-sidebar { display: none; }
  .nlms-login-main    { padding: 40px 24px; }

  .nlms-course-hero-card        { grid-template-columns: 1fr; }
  .nlms-course-hero-card__thumb { min-height: 200px; }
  .nlms-course-sidebar          { grid-template-columns: 1fr; }
  .nlms-lesson-bottom-grid      { grid-template-columns: 1fr; }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  :root { --sidebar-w: 240px; }

  /* Sidebar — off-canvas */
  .nlms-sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
    box-shadow: none;
  }
  .nlms-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0,0,0,.3);
  }
  .nlms-sidebar-overlay.is-visible { display: block; }

  /* Content — geen left margin */
  .nlms-content { margin-left: 0; }

  /* Topbar */
  .nlms-topbar { padding: 0 14px; }
  .nlms-topbar__hamburger { display: flex; }

  /* Inner */
  .nlms-inner  { padding: 18px 14px 28px; }
  .nlms-footer { padding: 14px; }

  /* Page header */
  .nlms-page-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Dashboard */
  .nlms-courses-grid { grid-template-columns: 1fr 1fr; }

  /* Login */
  .nlms-login-box   { padding: 24px 18px; border-radius: var(--radius-lg); }
  .nlms-login-heading h1 { font-size: 24px; }

  /* Lesson */
  .nlms-lesson-header   { padding: 14px 14px 0; }
  .nlms-lesson-meta     { padding: 10px 14px; font-size: 11px; }
  .nlms-lesson-progress-row { padding: 10px 14px; }
  .nlms-lesson-nav      { flex-direction: column; padding: 12px 14px; }
  .nlms-lesson-nav__prev,
  .nlms-lesson-nav__next { max-width: 100%; width: 100%; }
  .nlms-tabs            { margin: 0 14px; overflow-x: auto; white-space: nowrap; }
  .nlms-tab-btn         { padding: 10px 12px; font-size: 12px; }
  .nlms-tab-panel       { padding: 16px 14px; }
  .nlms-lesson-bottom-grid { padding: 0 14px 20px; }
  .nlms-lesson-body     { padding: 16px 14px; }

  /* Admin bar slim on mobile */
  .nlms-admin-bar { gap: 8px; padding: 0 10px; overflow-x: auto; }
  .nlms-admin-bar__sep  { display: none; }
  .nlms-admin-bar__user { display: none; }
  .nlms-admin-bar__link span { display: none; }
  .nlms-admin-bar__link svg  { display: block; }
}

/* Small mobile: 480px */
@media (max-width: 480px) {
  .nlms-courses-grid { grid-template-columns: 1fr; }

  .nlms-section-header  { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nlms-section-title   { font-size: 18px; }

  .nlms-login-box        { padding: 18px 14px; }
  .nlms-login-info-card  { flex-direction: column; gap: 10px; }
  .nlms-login-main       { padding: 24px 14px; }

  .nlms-accordion__header { padding: 12px 14px; }

  .nlms-lesson-progress-item span:first-child { display: none; }
}

/* Print */
@media print {
  .nlms-sidebar, .nlms-topbar, .nlms-footer,
  .nlms-admin-bar, .btn { display: none !important; }
  .nlms-content { margin-left: 0 !important; }
  .nlms-app { padding-top: 0 !important; }
}
/* ══════════════════════════════════════════════════════════
   LOGIN LEHT
   ══════════════════════════════════════════════════════════ */
.nlms-page-wrap { min-height: 100vh; background: var(--cream); }

.nlms-login-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar (login) */
.nlms-login-sidebar {
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 28px 32px;
  position: relative;
  overflow: hidden;
}

.nlms-login-sidebar__logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sidebar-gold);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 4px;
}

.nlms-login-sidebar__sub {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  text-align: center;
  margin-bottom: 32px;
}

.nlms-login-sidebar__emblem {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.nlms-login-sidebar__emblem img {
  width: 100%;
  height: auto;
}

.nlms-login-sidebar__info-box {
  background: rgba(200,170,130,0.08);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: auto;
  width: 100%;
}

.nlms-login-sidebar__info-title {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--sidebar-gold);
  font-weight: 400;
  margin-bottom: 8px;
}

.nlms-login-sidebar__info-text {
  font-size: 12px;
  color: var(--sidebar-muted);
  line-height: 1.7;
}

/* Login main */
.nlms-login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--cream);
  position: relative;
}

/* Dekoratiivne taustaornament */
.nlms-login-main::before {
  content: '✦';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: var(--gold-pale);
  letter-spacing: 0.3em;
}

.nlms-login-ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.08;
}

.nlms-login-ornament {
  position: absolute;
  font-size: 32px;
  color: var(--gold);
}

.nlms-login-ornament--tl { top: 10%; left: 8%; }
.nlms-login-ornament--tr { top: 8%;  right: 6%; font-size: 20px; }
.nlms-login-ornament--br { bottom: 12%; right: 10%; font-size: 48px; }
.nlms-login-ornament--bl { bottom: 8%; left: 5%; font-size: 24px; }

.nlms-login-wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.nlms-login-heading {
  text-align: center;
  margin-bottom: 40px;
}

.nlms-login-heading__star {
  display: block;
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}

.nlms-login-heading h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.nlms-login-heading p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.7;
}

.nlms-login-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.nlms-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nlms-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nlms-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.nlms-checkbox-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.nlms-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition);
}

.nlms-link:hover { color: var(--gold-dark); text-decoration: underline; }

.nlms-login-box__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.nlms-login-box__divider::before,
.nlms-login-box__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.nlms-login-box__divider span {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.nlms-login-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.nlms-login-info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.nlms-login-info-card__text h4 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.nlms-login-info-card__text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

.nlms-login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.nlms-login-footer a { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════ */

.nlms-greeting {
  margin-bottom: 32px;
}

.nlms-greeting__eyebrow {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.nlms-greeting__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nlms-greeting__title .gold-star {
  color: var(--gold);
  font-size: 0.7em;
}

.nlms-greeting__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Dashboard grid */
.nlms-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Progress widget (topbar) */
.nlms-progress-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nlms-progress-widget__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.nlms-progress-widget__body { flex: 1; }
.nlms-progress-widget__title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.nlms-progress-widget__bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.nlms-progress-widget__fill { height: 100%; background: var(--gold); border-radius: 999px; }
.nlms-progress-widget__meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.nlms-progress-widget__pct {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
  margin-left: auto;
  line-height: 1;
}

.nlms-progress-widget__link {
  font-size: 12px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-weight: 500;
}

/* Section header */
.nlms-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.nlms-section-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

.nlms-section-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Course cards grid */
.nlms-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.nlms-course-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nlms-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.nlms-course-card__thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.nlms-course-card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,18,8,.3) 0%, transparent 60%);
}

.nlms-course-card__menu {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.nlms-course-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nlms-course-card__title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

.nlms-course-card__progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nlms-course-card__progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.nlms-course-card__progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}

.nlms-course-card__pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.nlms-course-card .btn { margin-top: auto; }

/* Continue learning widget */
.nlms-continue-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.nlms-continue-card__header {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}

.nlms-continue-card__course-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.nlms-continue-card__thumb {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nlms-continue-card__course-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

.nlms-continue-card__lesson-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.nlms-continue-card__lesson-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.nlms-continue-card__time {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.nlms-continue-card__progress {
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.nlms-continue-card__progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}

/* Recently viewed & next lesson */
.nlms-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.nlms-widget__title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.nlms-recent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.nlms-recent-item__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--cream-deep);
  flex-shrink: 0;
}

.nlms-recent-item__body { flex: 1; min-width: 0; }

.nlms-recent-item__course {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 2px;
}

.nlms-recent-item__lesson {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nlms-recent-item__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Next lesson widget */
.nlms-next-lesson {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.nlms-next-lesson__ornament {
  position: absolute;
  right: -10px; bottom: -10px;
  width: 80px;
  opacity: 0.07;
  pointer-events: none;
}

.nlms-next-lesson__date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.nlms-next-lesson__time {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.nlms-next-lesson__title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.nlms-next-lesson__format {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Sertifikaadid */
.nlms-cert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.nlms-cert-row:last-child { border-bottom: none; padding-bottom: 0; }

.nlms-cert-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.nlms-cert-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.nlms-cert-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   KURSUSE VAADE
   ══════════════════════════════════════════════════════════ */

.nlms-course-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* Course hero card */
.nlms-course-hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 200px 1fr;
}

.nlms-course-hero-card__thumb {
  background-size: cover;
  background-position: center;
  min-height: 200px;
}

.nlms-course-hero-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nlms-course-hero-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--cream-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  width: fit-content;
}

.nlms-course-hero-card__title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.nlms-course-hero-card__progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nlms-course-hero-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* Modules section */
.nlms-modules-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}

/* Accordion */
.nlms-accordion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.nlms-accordion__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  transition: background var(--transition);
}

.nlms-accordion__header:hover { background: var(--cream); }

.nlms-accordion__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--serif);
}

.nlms-accordion__num--done {
  background: var(--success);
  color: #fff;
}

.nlms-accordion__num--active {
  background: var(--gold);
  color: #fff;
}

.nlms-accordion__title {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.nlms-accordion__sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.nlms-accordion__pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-right: 8px;
}

.nlms-accordion__chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.nlms-accordion.is-open .nlms-accordion__chevron { transform: rotate(180deg); }
.nlms-accordion:not(.is-open) .nlms-accordion__body { display: none; }

.nlms-accordion__body {
  border-top: 1px solid var(--border);
}

/* Lesson rows */
.nlms-lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 24px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.nlms-lesson-row:last-child { border-bottom: none; }
.nlms-lesson-row:hover { background: var(--cream); }

.nlms-lesson-row.is-active {
  background: rgba(168,117,38,.05);
}

.nlms-lesson-row__status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-light);
}

.nlms-lesson-row__status--done {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.nlms-lesson-row__status--active {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold);
}

.nlms-lesson-row__title {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.nlms-lesson-row__title--locked { color: var(--text-muted); }

.nlms-lesson-row__time {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.nlms-lesson-row__lock {
  color: var(--text-light);
  flex-shrink: 0;
}

/* Course sidebar */
.nlms-course-sidebar { display: flex; flex-direction: column; gap: 18px; }

.nlms-materials-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.nlms-materials-card__title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nlms-material-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.nlms-material-row:last-child { border-bottom: none; }

.nlms-material-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.nlms-material-info { flex: 1; min-width: 0; }
.nlms-material-name { font-size: 13px; font-weight: 500; color: var(--text); }
.nlms-material-meta { font-size: 11px; color: var(--text-muted); }

/* Cert progress */
.nlms-cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.nlms-cert-card__ornament {
  position: absolute;
  right: 10px; top: 10px;
  opacity: 0.06;
  width: 80px;
}

.nlms-cert-card__title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  text-align: left;
}

.nlms-cert-card__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ══════════════════════════════════════════════════════════
   TUNNI VAADE
   ══════════════════════════════════════════════════════════ */

.nlms-lesson-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  min-height: calc(100vh - var(--topbar-h));
}

.nlms-lesson-main {
  overflow-y: auto;
  background: var(--cream);
  padding-bottom: 60px;
}

.nlms-lesson-nav-sidebar {
  background: var(--card);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px 0;
}

/* Lesson meta bar */
.nlms-lesson-meta {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.nlms-lesson-meta a { color: var(--gold); font-weight: 500; }
.nlms-lesson-meta span { opacity: .5; }

/* Progress row */
.nlms-lesson-progress-row {
  padding: 16px 32px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.nlms-lesson-progress-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nlms-lesson-progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.nlms-lesson-progress-item .progress-bar { flex: 1; }

.nlms-lesson-progress-pct {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
}

/* Lesson title */
.nlms-lesson-header {
  padding: 24px 32px 0;
}

.nlms-lesson-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.nlms-lesson-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Video */
.nlms-video-wrap {
  position: relative;
  padding-bottom: 50%;
  background: #0F0C09;
  margin: 0;
}

.nlms-video-iframe,
.nlms-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #0F0C09;
}

/* Prev/Next nav */
.nlms-lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  gap: 12px;
}

.nlms-lesson-nav__prev,
.nlms-lesson-nav__next {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  max-width: 220px;
}

.nlms-lesson-nav__prev:hover,
.nlms-lesson-nav__next:hover {
  border-color: var(--gold-pale);
  color: var(--text);
}

.nlms-lesson-nav__prev .nav-label,
.nlms-lesson-nav__next .nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
}

.nlms-lesson-nav__prev .nav-title,
.nlms-lesson-nav__next .nav-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nlms-lesson-nav__next { flex-direction: row-reverse; text-align: right; }

.nlms-lesson-nav__star {
  font-size: 16px;
  color: var(--gold-pale);
  flex-shrink: 0;
}

/* Tabs */
.nlms-tabs {
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0;
  margin: 0 32px;
}

.nlms-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nlms-tab-btn:hover { color: var(--text); }

.nlms-tab-btn.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nlms-tab-panel { display: none; padding: 28px 32px; }
.nlms-tab-panel.is-active { display: block; }

/* Materials list */
.nlms-material-list { display: flex; flex-direction: column; gap: 1px; }

.nlms-material-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.nlms-material-file:last-child { border-bottom: none; }
.nlms-material-file:hover { background: var(--cream-deep); margin: 0 -12px; padding: 14px 12px; }

.nlms-material-file__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.nlms-material-file__name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text); }
.nlms-material-file__size { font-size: 12px; color: var(--text-muted); }
.nlms-material-file__dl { color: var(--gold); flex-shrink: 0; }

/* Notes */
.nlms-notes-area {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  resize: vertical;
  transition: border-color var(--transition);
  outline: none;
}

.nlms-notes-area:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168,117,38,.08);
}

/* Homework */
.nlms-homework-box, .nlms-complete-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.nlms-homework-box h4, .nlms-complete-box h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.nlms-homework-box p, .nlms-complete-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.nlms-upload-area {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 14px;
}

.nlms-upload-area:hover { border-color: var(--gold); background: var(--gold-pale); background: rgba(168,117,38,.04); }
.nlms-upload-area p { font-size: 13px; margin-top: 8px; }

.nlms-lesson-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Lesson nav sidebar */
.nlms-nav-sidebar__course {
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.nlms-nav-sidebar__course-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 8px;
}

.nlms-nav-sidebar__course-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.nlms-nav-sidebar__progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.nlms-nav-sidebar__progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.nlms-nav-sidebar__progress-fill {
  height: 100%;
  background: var(--gold);
}

.nlms-nav-sidebar__module {
  margin-bottom: 4px;
}

.nlms-nav-sidebar__module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--transition);
}

.nlms-nav-sidebar__module-header:hover { color: var(--text); }

.nlms-nav-sidebar__module-header.is-open { color: var(--text); }

.nlms-nav-sidebar__lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border-radius: 0;
}

.nlms-nav-sidebar__lesson:hover { background: var(--cream-deep); color: var(--text); }

.nlms-nav-sidebar__lesson.is-active {
  background: rgba(168,117,38,.08);
  color: var(--gold);
  font-weight: 500;
}

.nlms-nav-sidebar__lesson-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  color: var(--text-light);
}

.nlms-nav-sidebar__lesson-icon--done {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.nlms-nav-sidebar__lesson-icon--active {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold);
}

.nlms-nav-sidebar__quote {
  margin: 16px;
  background: var(--cream-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.nlms-nav-sidebar__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.nlms-footer {
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--card);
  margin-left: var(--sidebar-w);
}

.nlms-footer a { color: var(--text-muted); }
.nlms-footer a:hover { color: var(--gold); }

/* Login page footer */
.nlms-login-page-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — alle 1100px (tablet wide)
   ══════════════════════════════════════════════════════════ */
