/* ============================================
   KODARA ACADEMY - Design System Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Primary Colors */
  --green-primary: #2E7D52;
  --green-hover: #256B45;
  --blue-primary: #3B82F6;
  --navy: #1A1A2E;
  --navy-light: #22223a;

  /* Background Colors */
  --bg-white: #FFFFFF;
  --bg-app: #E8F0FE;
  --bg-gray-light: #F7F7F7;

  /* Text Colors */
  --text-primary: #18181B;
  --text-secondary: #52525B;
  --text-tertiary: #71717A;
  --text-muted: #A1A1AA;
  --text-green: #2E7D52;
  --text-white: #FFFFFF;

  /* Border Colors */
  --border-light: #E5E5E8;
  --border-subtle: #F0F0F2;
  --border-input-focus: #3B82F6;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-elevated: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.05);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Misc */
  --transition: 0.2s ease;

  /* Status Colors */
  --red: #ef4444;
  --red-bg: #fef2f2;
  --green-status: #22c55e;
  --green-status-bg: #f0fdf4;
  --blue-bg: #eff6ff;
}

html {
  scroll-behavior: smooth;
  zoom: 1.25;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input, textarea, select {
  font-family: var(--font-sans);
  font-size: inherit;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-10);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo-img {
  height: 21px;
  width: auto;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-primary);
  display: inline-block;
  flex-shrink: 0;
}

.btn-go-to-app {
  background: var(--green-primary);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-go-to-app:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

/* ============================================
   COURSE DETAIL / LESSON VIEW
   ============================================ */

.course-detail {
  min-height: calc(100vh - 56px - 60px);
  background: var(--bg-white);
}

.empty-state {
  padding: var(--space-16) var(--space-5);
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
}

.course-detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-10) var(--space-16);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-10);
}

/* Course Selector Dropdown */
.course-selector {
  width: 100%;
  padding: 10px var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  cursor: pointer;
  margin-bottom: var(--space-4);
  transition: border-color var(--transition);
  appearance: auto;
}

.course-selector:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* LESSON SIDEBAR */
.lesson-sidebar {
  position: sticky;
  top: 68px;
  height: fit-content;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--bg-white);
  box-shadow: var(--shadow-subtle);
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.lesson-list {
  list-style: none;
}

.lesson-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 1px solid var(--border-subtle);
}

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

.lesson-item:hover {
  opacity: 0.8;
}

.lesson-item.active {
  opacity: 1;
}

.lesson-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.lesson-item.active .lesson-number {
  background: var(--blue-primary);
  color: var(--text-white);
}

.lesson-item.completed .lesson-number {
  background: var(--green-primary);
  color: var(--text-white);
}

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

.lesson-info .lesson-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-item.completed .lesson-info .lesson-title {
  color: var(--text-tertiary);
}

.lesson-info .lesson-duration {
  font-size: 11px;
  color: var(--text-muted);
}

/* Progress Bar */
.progress-section {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.progress-bar-track {
  height: 4px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--green-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* MAIN CONTENT */
.lesson-main {
  max-width: 800px;
}

.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--text-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-elevated);
}

.video-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 15px;
}

.lesson-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.lesson-active-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.lesson-active-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Completion Button */
.btn-complete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-primary);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-complete:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

.btn-complete.completed {
  background: transparent;
  color: var(--green-primary);
  border: 1.5px solid var(--green-primary);
}

.btn-complete.completed:hover {
  background: rgba(46,125,82,0.06);
  transform: translateY(-1px);
}

/* ============================================
   ACTION CHECKLIST
   ============================================ */

.action-checklist {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

.action-checklist-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--text-tertiary);
}

.action-checklist-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.action-checklist-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-gray-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.action-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition);
}

.action-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.action-item:first-of-type {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.action-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.action-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  background: var(--bg-white);
}

.action-item:hover .action-checkbox {
  border-color: var(--green-primary);
}

.action-item.checked .action-checkbox {
  background: var(--green-primary);
  border-color: var(--green-primary);
}

.action-item.checked .action-checkbox::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid var(--text-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.action-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: all var(--transition);
}

.action-item.checked .action-label {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ============================================
   LESSON CONTENT
   ============================================ */

.lesson-content {
  line-height: 1.75;
  color: var(--text-secondary);
  font-size: 15px;
}

.lesson-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  letter-spacing: -0.3px;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-light);
}

.lesson-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.lesson-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.lesson-content p {
  margin-bottom: var(--space-4);
}

.lesson-content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

.lesson-content li {
  margin-bottom: var(--space-2);
}

.lesson-content blockquote {
  border-left: 3px solid var(--green-primary);
  padding: var(--space-3) var(--space-5);
  margin: var(--space-6) 0;
  background: transparent;
  font-style: italic;
  color: var(--text-tertiary);
}

.lesson-content blockquote p {
  margin-bottom: 0;
}

.lesson-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.lesson-content a {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.lesson-content a:hover {
  color: var(--green-hover);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-beginner {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-intermediate {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-advanced {
  background: #fce4ec;
  color: #c62828;
}

/* ============================================
   ADMIN STYLES
   ============================================ */

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray-light);
}

.admin-login-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  width: 400px;
  text-align: center;
}

.admin-login-box h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.admin-login-box p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-4);
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
  color: var(--text-primary);
}

.form-input:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-error {
  color: var(--red);
  font-size: 13px;
  margin-top: var(--space-2);
}

.btn-full {
  width: 100%;
  padding: var(--space-3);
  background: var(--navy);
  color: var(--text-white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-full:hover {
  background: var(--navy-light);
}

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: var(--navy);
  color: var(--text-white);
  padding: var(--space-6) 0;
  flex-shrink: 0;
}

.admin-sidebar-logo {
  padding: 0 var(--space-6);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.admin-sidebar-label {
  padding: 0 var(--space-6);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-5);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-6);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition);
}

.admin-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-white);
}

.admin-nav-item.active {
  background: rgba(255,255,255,0.1);
  color: var(--text-white);
}

.admin-main {
  flex: 1;
  background: var(--bg-gray-light);
  padding: var(--space-8);
  overflow-y: auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-card .stat-change {
  font-size: 12px;
  color: var(--green-primary);
  margin-top: var(--space-1);
}

.admin-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.admin-card-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-4);
  background: var(--navy);
  color: var(--text-white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-admin:hover {
  background: var(--navy-light);
}

.btn-admin-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-admin-outline:hover {
  border-color: var(--text-muted);
  background: var(--bg-gray-light);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.admin-table td {
  padding: 14px var(--space-3);
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-secondary);
}

.admin-table tr:hover td {
  background: var(--bg-gray-light);
}

.admin-table .actions {
  display: flex;
  gap: var(--space-2);
}

.action-btn {
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.action-btn.edit {
  background: var(--blue-bg);
  color: var(--blue-primary);
}

.action-btn.delete {
  background: var(--red-bg);
  color: var(--red);
}

.action-btn:hover {
  opacity: 0.8;
}

/* Admin Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(10px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--border-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  outline: none;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.form-textarea:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  background: var(--bg-white);
  appearance: auto;
  color: var(--text-primary);
}

.form-select:focus {
  border-color: var(--border-input-focus);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Rich text editor toolbar */
.editor-toolbar {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-2);
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-gray-light);
}

.editor-toolbar button {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.editor-toolbar button:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.editor-content {
  border: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px;
  min-height: 200px;
  outline: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

.editor-content:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.editor-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: var(--space-3) 0 var(--space-2);
}

.editor-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.editor-content ul {
  padding-left: 20px;
  margin: var(--space-2) 0;
}

.editor-content blockquote {
  border-left: 3px solid var(--green-primary);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-2) 0;
  background: var(--bg-gray-light);
  font-style: italic;
}

/* Drag and drop lesson list */
.draggable-lessons {
  list-style: none;
}

.draggable-lesson {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  background: var(--bg-white);
  cursor: grab;
  transition: all var(--transition);
}

.draggable-lesson:active {
  cursor: grabbing;
}

.draggable-lesson.dragging {
  opacity: 0.5;
  box-shadow: var(--shadow-elevated);
}

.drag-handle {
  color: var(--text-muted);
  cursor: grab;
  font-size: 16px;
}

.draggable-lesson .lesson-order {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.draggable-lesson .lesson-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .course-detail-layout {
    grid-template-columns: 260px 1fr;
    gap: var(--space-6);
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 var(--space-5);
  }

  .course-detail-layout {
    grid-template-columns: 1fr;
    padding: var(--space-4) var(--space-5) var(--space-12);
  }

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

  .lesson-header {
    flex-direction: column;
    gap: var(--space-3);
  }

  .btn-complete {
    align-self: flex-start;
  }

  .footer-inner {
    padding: var(--space-4) var(--space-5);
  }

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

  .admin-sidebar {
    width: 200px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILITY
   ============================================ */

.hidden {
  display: none !important;
}
