/* === DevPath — Dark Tech Theme === */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --bg: #0a0a14;
  --bg-card: #111125;
  --bg-sidebar: #0e0e20;
  --bg-input: #1a1a30;
  --border: rgba(255,255,255,0.07);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
}

/* === Typography === */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2d2d4e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* === Navbar === */
.dp-navbar {
  background: rgba(10,10,20,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.dp-navbar-public {
  background: rgba(10,10,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.dp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text) !important;
  text-decoration: none;
}
.dp-brand:hover { color: var(--primary-light) !important; }
.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: white;
}
.nav-link { color: #94a3b8 !important; font-size: 0.9rem; padding: 0.4rem 0.75rem !important; border-radius: 8px; }
.nav-link:hover { color: var(--text) !important; background: rgba(255,255,255,0.05); }
.dp-dropdown { background: #1a1a30; border: 1px solid var(--border); border-radius: 12px; padding: 0.5rem; }
.dp-dropdown .dropdown-item { color: var(--text); border-radius: 8px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.dp-dropdown .dropdown-item:hover { background: rgba(124,58,237,0.15); color: var(--primary-light); }

/* === Buttons === */
.btn-dp {
  border-radius: 10px !important;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  border-color: transparent !important;
  color: white !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.btn-icon {
  background: none; border: none; color: #94a3b8; padding: 0.4rem 0.6rem;
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.btn-icon:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-xs { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 6px; }
.btn-back {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.06);
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.btn-back:hover { background: rgba(255,255,255,0.12); color: white; }
.btn-sidebar-toggle {
  background: none; border: none; color: #94a3b8; cursor: pointer; padding: 0.4rem;
  border-radius: 8px;
}
.btn-sidebar-toggle:hover { background: rgba(255,255,255,0.08); color: white; }

/* === Forms === */
.dp-input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  padding: 0.6rem 1rem !important;
}
.dp-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15) !important;
  outline: none;
}
.dp-input::placeholder { color: var(--text-muted) !important; }
.dp-input-sm { padding: 0.4rem 0.75rem !important; font-size: 0.875rem !important; border-radius: 8px !important; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); z-index: 2; }
.input-icon .form-control { padding-left: 2.75rem !important; }
.form-label { font-size: 0.875rem; font-weight: 500; color: #94a3b8; margin-bottom: 0.35rem; }
.form-check-input:checked { background-color: var(--primary) !important; border-color: var(--primary) !important; }
select.dp-input option { background: #1a1a30; }

/* === Cards === */
.dp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dp-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

/* === Progress === */
.dp-progress {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}
.dp-progress .progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* === Avatar === */
.dp-avatar-sm {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: white; flex-shrink: 0;
}

/* === Badge === */
.dp-badge-level { background: rgba(124,58,237,0.2); color: var(--primary-light); font-size: 0.7rem; border-radius: 6px; }
.dp-badge-stat { background: rgba(255,255,255,0.08); color: var(--text); font-weight: 400; font-size: 0.8rem; }
.bg-purple-subtle { background: rgba(124,58,237,0.15); }
.text-purple { color: var(--primary-light); }

/* ===================== AUTH ===================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(ellipse at top, #1a1040 0%, var(--bg) 60%);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; margin-bottom: 1.5rem; }
.auth-logo i { color: var(--primary); font-size: 1.5rem; }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }
.auth-form .form-group { margin-bottom: 1rem; }
.auth-footer { text-align: center; color: var(--text-muted); margin-top: 1.5rem; font-size: 0.9rem; }
.auth-footer a { color: var(--primary-light); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ===================== LANDING ===================== */
.public-layout { background: var(--bg); }

.hero-section { position: relative; background: var(--bg); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.15) 0%, transparent 70%);
}
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--primary-light); border-radius: 999px;
  padding: 0.35rem 1rem; font-size: 0.85rem; font-weight: 500;
}
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; }
.hero-subtitle { font-size: 1.15rem; color: #94a3b8; max-width: 520px; line-height: 1.7; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 700; color: var(--primary-light); }
.hero-stat span { font-size: 0.8rem; color: var(--text-muted); }

.floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}
.fc-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.fc-item i { color: var(--success); }

.section-dark { background: var(--bg); }
.section-darker { background: #07070f; }
.section-badge {
  display: inline-block;
  background: rgba(124,58,237,0.15);
  color: var(--primary-light);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title { font-size: 2rem; font-weight: 700; }

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}
.highlight-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }
.hc-icon { font-size: 1.5rem; color: var(--primary-light); margin-bottom: 0.75rem; }
.highlight-card h5 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.highlight-card p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

.sprint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.2s;
}
.sprint-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }
.sprint-number { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-light); margin-bottom: 0.75rem; }
.sprint-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.sprint-card h5 { font-weight: 700; }

.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0; font-size: 0.95rem; }
.check-list i { font-size: 1.1rem; }

.topic-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 0 60px rgba(124,58,237,0.15);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; border-radius: 999px; padding: 0.25rem 1.25rem; font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
}
.pricing-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }
.pricing-price { margin-bottom: 1.5rem; }
.price-from { display: block; font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; }
.price-value { display: block; font-size: 3rem; font-weight: 800; color: white; line-height: 1; }
.price-period { display: block; font-size: 0.85rem; color: var(--text-muted); }
.pricing-features { list-style: none; padding: 0; margin-bottom: 2rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.75rem; padding: 0.45rem 0; font-size: 0.9rem; }

.dp-accordion-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px !important; margin-bottom: 0.5rem; overflow: hidden; }
.dp-accordion-btn { background: var(--bg-card) !important; color: var(--text) !important; box-shadow: none !important; font-weight: 500; padding: 1.1rem 1.25rem; }
.dp-accordion-btn::after { filter: invert(1); }
.dp-accordion-btn:not(.collapsed) { color: var(--primary-light) !important; }
.accordion-body { background: var(--bg-card); }

.cta-section {
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.1) 0%, var(--bg) 70%);
  border-top: 1px solid var(--border);
}
.dp-footer { background: #07070f; border-top: 1px solid var(--border); }
.dp-footer a:hover { color: var(--primary-light) !important; }

/* ===================== STUDENT AREA ===================== */

/* --- Navbar (student) --- */
.dp-navbar .dp-avatar-sm { width: 30px; height: 30px; }

/* --- Course Cards (dashboard) --- */
.dp-course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  height: 100%;
}
.dp-course-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }
.course-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.course-thumb-placeholder {
  height: 160px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(167,139,250,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--primary-light);
}
.course-card-body { padding: 1.25rem; }
.course-title { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; line-height: 1.4; }
.course-desc { font-size: 0.85rem; margin-bottom: 0; }

/* --- Certificate card --- */
.dp-cert-card {
  background: var(--bg-card);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cert-icon { font-size: 1.75rem; color: var(--warning); }

/* ===================== COURSE LAYOUT ===================== */
.course-layout {
  display: flex;
  height: calc(100vh - 57px);
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.course-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.3s;
}
.course-sidebar.collapsed { width: 0; overflow: hidden; }

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.sidebar-course-title {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-modules {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem 0;
}
.sb-module { padding: 0 0.5rem 0.5rem; }
.sb-module-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.5rem;
}
.sb-lesson {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.85rem;
  transition: all 0.15s;
  cursor: pointer;
}
.sb-lesson:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.sb-lesson.active { background: rgba(124,58,237,0.2); color: var(--primary-light); }
.sb-lesson-icon { font-size: 0.9rem; flex-shrink: 0; }
.sb-lesson-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-lesson-dur { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }

/* Main course area */
.course-main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Lesson topbar */
.lesson-topbar {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.lesson-breadcrumb { font-size: 0.85rem; color: var(--text-muted); }
.lesson-breadcrumb span:last-child { color: var(--text); }

/* Lesson content */
.lesson-content-wrap {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.lesson-video { margin-bottom: 2rem; border-radius: 12px; overflow: hidden; }
.lesson-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.lesson-body {
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 0.97rem;
}
.lesson-body h2 { font-size: 1.3rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: white; }
.lesson-body h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; color: white; }
.lesson-body code {
  background: rgba(124,58,237,0.15);
  color: var(--primary-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}
.lesson-body pre {
  background: #0d0d1a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  overflow-x: auto;
}
.lesson-body pre code { background: none; padding: 0; color: #e2e8f0; }
.lesson-body a { color: var(--primary-light); }
.lesson-body ul, .lesson-body ol { padding-left: 1.5rem; }
.lesson-body li { margin-bottom: 0.4rem; }
.lesson-body blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

/* Materials */
.lesson-materials {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.material-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.material-card:hover { border-color: rgba(124,58,237,0.4); color: var(--primary-light); }

/* Exercise */
.lesson-exercise {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.exercise-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6,182,212,0.05);
}
.exercise-header i { font-size: 1.25rem; }
.exercise-desc { padding: 1.25rem; color: #94a3b8; }
#exerciseForm { padding: 0 1.25rem 1.25rem; }

/* Quiz */
.lesson-quiz {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.quiz-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(124,58,237,0.06);
}
.quiz-header i { font-size: 1.25rem; }
.quiz-question {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.quiz-question:last-child { border-bottom: 0; }
.qnum { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-light); margin-bottom: 0.5rem; }
.qtext { font-weight: 500; margin-bottom: 1rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.quiz-option:hover { border-color: rgba(124,58,237,0.4); }
.quiz-option input { display: none; }
.quiz-option.selected { border-color: var(--primary); background: rgba(124,58,237,0.1); }
.quiz-option.correct { border-color: var(--success) !important; background: rgba(16,185,129,0.1) !important; }
.quiz-option.wrong { border-color: var(--danger) !important; background: rgba(239,68,68,0.1) !important; }
#quizForm { padding: 0 1.25rem 1.25rem; }

/* Notes panel */
.notes-panel {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.3s;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 20;
}
.notes-panel.open { transform: translateX(0); }
.notes-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.notes-body { flex: 1; padding: 1rem; overflow-y: auto; }
.notes-textarea {
  width: 100%;
  height: 100%;
  min-height: 200px;
  resize: none;
  border-radius: 10px !important;
}
.notes-footer { padding: 1rem; border-top: 1px solid var(--border); }

/* ===================== ADMIN ===================== */
.admin-layout { background: #07070f; }

.dp-admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #0a0a16;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.admin-brand i { color: var(--primary); font-size: 1.3rem; }
.admin-nav { padding: 0.75rem 0.75rem; flex: 1; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 0.2rem;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.admin-nav-item.active { background: rgba(124,58,237,0.2); color: var(--primary-light); }
.admin-nav-item i { font-size: 1rem; width: 18px; }
.admin-sidebar-footer { padding: 0.75rem; border-top: 1px solid var(--border); }

.dp-admin-main { background: var(--bg); min-height: 100vh; }
.admin-topbar {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s;
}
.admin-stat-card:hover { border-color: rgba(124,58,237,0.3); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

.dp-table { color: var(--text); margin: 0; }
.dp-table thead th {
  background: rgba(255,255,255,0.03);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-color: var(--border);
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.dp-table td { border-color: var(--border); vertical-align: middle; padding: 0.85rem 1rem; }
.dp-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.lesson-row {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.lesson-row:last-child { border-bottom: 0; }

.exercise-review-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.quiz-question-admin {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* ===================== MISC ===================== */
.dp-empty-state { color: var(--text-muted); }
.dp-empty-state i { display: block; }

/* Bootstrap overrides */
.alert-danger { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.bg-success-subtle { background: rgba(16,185,129,0.15) !important; }
.bg-info-subtle { background: rgba(6,182,212,0.15) !important; }
.bg-warning-subtle { background: rgba(245,158,11,0.15) !important; }
.bg-primary-subtle { background: rgba(124,58,237,0.15) !important; }
.bg-secondary-subtle { background: rgba(100,116,139,0.2) !important; }
.text-success { color: var(--success) !important; }
.text-info { color: var(--info) !important; }
.text-warning { color: var(--warning) !important; }
.text-primary { color: var(--primary-light) !important; }
.text-danger-subtle { color: #fca5a5; }
.dropdown-divider { border-color: var(--border) !important; }
.badge { font-weight: 500; }

/* === Code editor / answer preview === */
.dp-code-preview {
  background: #0d0d1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  color: #a5f3fc;
  overflow-x: auto;
  max-height: 300px;
  white-space: pre;
}
.dp-answer-preview {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  max-height: 200px;
  overflow-y: auto;
}
.CodeMirror {
  height: 280px;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}
.CodeMirror-scroll { background: #0d0d1a !important; }
.exercise-answer-textarea {
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.75rem;
  resize: vertical;
  min-height: 130px;
  width: 100%;
  transition: border-color 0.2s;
}
.exercise-answer-textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.rounded { border-radius: var(--radius) !important; }
a { color: var(--primary-light); }

/* Responsive */
@media (max-width: 768px) {
  .course-sidebar { width: 100%; position: absolute; z-index: 30; transform: translateX(-100%); transition: transform 0.3s; }
  .course-sidebar.open { transform: translateX(0); }
  .lesson-content-wrap { padding: 1.25rem; }
  .dp-admin-sidebar { display: none; }
  .hero-stats { gap: 1.5rem; }
  .auth-card { padding: 1.75rem; }
}
