/* ============================================================
   Fordina SmartLearn AI — Main Stylesheet
   Font: Outfit (Google Fonts)
   Theme: Forest Green + Amber Gold
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --green:       #0D6B3A;
  --green-dark:  #084D29;
  --green-light: #E8F5EE;
  --amber:       #F5A623;
  --amber-light: #FEF3DC;
  --navy:        #1A3A5C;
  --navy-light:  #E8EEF5;
  --red:         #E53E3E;
  --red-light:   #FEE2E2;
  --bg:          #F0F4F1;
  --surface:     #FFFFFF;
  --border:      #DDE5E0;
  --text:        #1C2B20;
  --text-muted:  #6B7F72;
  --sidebar-w:   240px;
  --radius:      12px;
  --shadow:      0 2px 8px rgba(13,107,58,0.08);
  --shadow-lg:   0 8px 32px rgba(13,107,58,0.12);
  --font:        'Outfit', sans-serif;
  --transition:  0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; }
button, input, select, textarea { font-family: var(--font); }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #1a7a46 100%);
  padding: 20px;
}
.auth-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo .logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green), var(--amber));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.auth-logo .logo-icon svg { width: 32px; height: 32px; color: white; }
.auth-logo h1 { font-size: 1.5rem; font-weight: 800; color: var(--green); }
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; }

.auth-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; color: var(--text); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13,107,58,0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: white;
  width: 100%;
}
.btn-primary:hover { background: var(--green-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,107,58,0.3); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #cdd5d0; }
.btn-amber { background: var(--amber); color: white; }
.btn-amber:hover { background: #d4891a; color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-outline { background: transparent; border: 1.5px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: white; }

.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 0.9rem; }
.auth-footer a { color: var(--green); font-weight: 600; }

/* ============================================================
   APP LAYOUT — Sidebar + Content
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--green-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.sidebar-logo .logo-box {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--amber), #e8951a);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-logo .logo-box svg { width: 20px; height: 20px; color: white; }
.sidebar-logo .logo-text { display: flex; flex-direction: column; }
.sidebar-logo .logo-text strong { font-size: 0.9rem; font-weight: 800; color: white; line-height: 1; }
.sidebar-logo .logo-text span { font-size: 0.7rem; color: rgba(255,255,255,0.6); }

.sidebar-section { padding: 16px 12px 8px; }
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  padding: 0 8px;
  margin-bottom: 4px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 2px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.sidebar-nav a.active {
  background: var(--amber);
  color: white;
  font-weight: 600;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-user {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user .avatar {
  width: 36px; height: 36px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
}
.sidebar-user .user-info strong { display: block; font-size: 0.85rem; font-weight: 600; color: white; }
.sidebar-user .user-info span { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: capitalize; }
.sidebar-user .logout-btn {
  margin-left: auto;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  border-radius: 8px;
  transition: all var(--transition);
}
.sidebar-user .logout-btn:hover { background: rgba(255,255,255,0.1); color: white; }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top Bar ── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-left h1 { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.notif-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: var(--bg);
  transition: all var(--transition);
}
.notif-btn:hover { background: var(--green-light); color: var(--green); }
.notif-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  border: 2px solid white;
}

/* Hamburger for mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ── Page Content ── */
.page-content { padding: 28px; flex: 1; }

/* ============================================================
   CARDS & STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.stat-card .stat-icon svg { width: 22px; height: 22px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.stat-card .stat-change { font-size: 0.8rem; font-weight: 600; }
.stat-card .stat-change.up { color: var(--green); }
.stat-card .stat-change.down { color: var(--red); }

.stat-green .stat-icon { background: var(--green-light); color: var(--green); }
.stat-amber .stat-icon { background: var(--amber-light); color: var(--amber); }
.stat-navy .stat-icon { background: var(--navy-light); color: var(--navy); }
.stat-red  .stat-icon { background: var(--red-light); color: var(--red); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.card-header h2 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============================================================
   LESSON & COURSE CARDS
   ============================================================ */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.course-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.course-card .course-thumb {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.course-card .course-body { padding: 16px; }
.course-card .course-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.course-card .course-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 12px; }
.course-card .course-progress-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 12px; }
.course-card .course-progress-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width 0.4s ease; }

.lesson-list { list-style: none; }
.lesson-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: var(--green-light); margin: 0 -20px; padding: 14px 20px; border-radius: 8px; }
.lesson-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lesson-icon.text { background: var(--green-light); color: var(--green); }
.lesson-icon.quiz { background: var(--amber-light); color: var(--amber); }
.lesson-icon.video { background: var(--navy-light); color: var(--navy); }
.lesson-info { flex: 1; }
.lesson-info .lesson-title { font-weight: 600; font-size: 0.9rem; }
.lesson-info .lesson-meta { font-size: 0.78rem; color: var(--text-muted); }
.lesson-status { flex-shrink: 0; }

/* ============================================================
   PROGRESS & BADGES
   ============================================================ */
.progress-ring-wrap { position: relative; display: inline-flex; }
.progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.progress-label .pct { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.progress-label .sub { font-size: 0.65rem; color: var(--text-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-beginner     { background: var(--green-light); color: var(--green); }
.badge-intermediate { background: var(--amber-light); color: #c17a0e; }
.badge-advanced     { background: var(--navy-light);  color: var(--navy); }
.badge-success { background: var(--green-light); color: var(--green); }
.badge-warning { background: var(--amber-light); color: #c17a0e; }
.badge-danger  { background: var(--red-light); color: var(--red); }
.badge-neutral { background: var(--bg); color: var(--text-muted); }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-container { max-width: 680px; margin: 0 auto; }
.quiz-header { margin-bottom: 24px; }
.quiz-progress-bar { height: 6px; background: var(--border); border-radius: 3px; margin-top: 12px; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--amber)); border-radius: 3px; transition: width 0.3s ease; }
.question-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.question-num { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.question-text { font-size: 1.05rem; font-weight: 600; margin-bottom: 24px; }
.options-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.option-item:hover { border-color: var(--green); background: var(--green-light); }
.option-item.selected { border-color: var(--green); background: var(--green-light); }
.option-item.correct { border-color: var(--green); background: var(--green-light); }
.option-item.incorrect { border-color: var(--red); background: var(--red-light); }
.option-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.option-item.selected .option-letter { background: var(--green); color: white; }
.option-item.correct .option-letter { background: var(--green); color: white; }
.option-item.incorrect .option-letter { background: var(--red); color: white; }

.quiz-result-card { text-align: center; padding: 40px 28px; }
.result-score-ring { margin: 0 auto 24px; }
.result-score { font-size: 2.5rem; font-weight: 800; color: var(--green); }
.result-msg { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.result-sub { color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.project-card .project-cat {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.project-cat.iot        { background: linear-gradient(135deg, #e8f5ee, #c6e6d3); }
.project-cat.robotics   { background: linear-gradient(135deg, #e8eef5, #c6d4e6); }
.project-cat.agriculture{ background: linear-gradient(135deg, #fef3dc, #fde4a0); }
.project-cat.coding     { background: linear-gradient(135deg, #f5e8f5, #e0c6e6); }
.project-cat.science    { background: linear-gradient(135deg, #e8f5f5, #c6e6e6); }
.project-body { padding: 16px; }
.project-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.project-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-footer { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg); }
thead th { padding: 12px 16px; text-align: left; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
tbody td { padding: 14px 16px; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* ============================================================
   ANALYTICS / CHART PLACEHOLDER
   ============================================================ */
.chart-area { height: 180px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 0 8px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--green); opacity: 0.8; transition: opacity var(--transition); }
.bar:hover { opacity: 1; }
.bar-label { font-size: 0.65rem; color: var(--text-muted); text-align: center; }

/* ============================================================
   ALERT / FLASH
   ============================================================ */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid #b3d9c4; }
.alert-error   { background: var(--red-light); color: var(--red); border: 1px solid #fca5a5; }
.alert-warning { background: var(--amber-light); color: #92650a; border: 1px solid #fde68a; }

/* ============================================================
   FORMS (inside app)
   ============================================================ */
.app-form .form-group { margin-bottom: 18px; }
.app-form label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.app-form input,
.app-form select,
.app-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13,107,58,0.1);
}
.app-form textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   LESSON CONTENT (rendered HTML)
   ============================================================ */
.lesson-content h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 10px; color: var(--green-dark); }
.lesson-content h4 { font-size: 1rem; font-weight: 700; margin: 16px 0 8px; }
.lesson-content p  { margin-bottom: 12px; line-height: 1.7; }
.lesson-content ul, .lesson-content ol { margin: 0 0 12px 20px; }
.lesson-content li { margin-bottom: 6px; }
.lesson-content pre {
  background: var(--text);
  color: #a8f0c6;
  padding: 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  overflow-x: auto;
  margin: 12px 0;
  line-height: 1.6;
  font-family: 'Courier New', monospace;
}
.lesson-content code { font-family: 'Courier New', monospace; background: var(--green-light); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.empty-state p { font-size: 0.85rem; }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content { margin-left: 0; }
  .hamburger { display: flex; align-items: center; }
  .page-content { padding: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .topbar { padding: 0 16px; }
  .table-wrap { font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card .stat-value { font-size: 1.4rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); font-size: 0.88rem; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius); }

/* Avatar circles */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
  background: var(--green);
  flex-shrink: 0;
}
.avatar-amber { background: var(--amber); }
.avatar-navy  { background: var(--navy); }
.avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1rem; }

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

/* Scroll */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Password field with show/hide eye ── */
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.show-pw-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center;
  padding: 4px; border-radius: 4px; transition: color 0.2s;
}
.show-pw-btn:hover { color: var(--green); }

/* ── Auth logo icon (emoji version) ── */
.logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--green), var(--amber));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 1.8rem;
}

/* ── Tier badges ── */
.badge-amber { background: var(--amber-light); color: #c17a0e; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-beginner     { background: var(--green-light); color: var(--green); }
.badge-intermediate { background: var(--amber-light); color: #c17a0e; }
.badge-advanced     { background: var(--navy-light); color: var(--navy); }

/* ── Sidebar logo box ── */
.sidebar .logo-box {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--amber), #e8951a);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

/* ── Lesson content styles ── */
.tip-box {
  background: var(--green-light); border-left: 4px solid var(--green);
  border-radius: 8px; padding: 12px 16px; margin: 14px 0;
  font-size: 0.88rem;
}
.lesson-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.85rem; }
.lesson-table th { background: var(--green); color: white; padding: 8px 12px; text-align: left; font-size: 0.8rem; }
.lesson-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.lesson-table tr:hover td { background: var(--bg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0; }
.do-col { background: var(--green-light); border-radius: 10px; padding: 14px; }
.dont-col { background: var(--red-light); border-radius: 10px; padding: 14px; }
.do-col h4 { color: var(--green); }
.dont-col h4 { color: var(--red); }

/* ── Locked module ── */
.locked-module { filter: grayscale(0.3); }

/* ── Buttons ── */
.btn-amber { background: var(--amber); color: white; }
.btn-amber:hover { background: var(--amber-dark, #c17a0e); color: white; }

/* ── Progress bar (data-attribute animated) ── */
[data-progress] { width: 0; transition: width 0.8s ease; }
