/* ============================================================
   COURSE PAGE - ENHANCED MODERN UI 2025
   Professional, Student-Friendly Learning Experience
   With Advanced Interactions & Visual Polish
   ============================================================ */

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  --primary: #d1039e;
  --primary-dark: #7a0060;
  --primary-light: rgba(209, 3, 158, 0.1);
  --primary-glow: rgba(209, 3, 158, 0.3);
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --text-dark: #1a1a2e;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(209, 3, 158, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --header-height: 90px;
  --topbar-height: 56px;
  --sidebar-width: 300px;
  --total-offset: 146px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-code: 'Fira Code', 'Monaco', 'Consolas', 'Courier New', monospace;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg-light);
}

/* ===========================
   FIX GLOBAL SECTION OVERRIDES
   =========================== */
/* Fix global section overrides — inner elements only, NOT .course-content itself */
.course-content section,
.course-content .lesson-section,
.course-content #lessonContent > * {
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* ===========================
   HEADER - FIXED AT TOP
   =========================== */
body .site-header,
.site-header {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--header-height) !important;
  z-index: 1000 !important;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* ===========================
   COURSE TOPBAR - COURSE NAVIGATION
   =========================== */
.course-topbar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  width: 100%;
  height: var(--topbar-height);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.course-hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 18px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-right: 16px;
  transition: var(--transition);
}

.course-hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.course-hamburger:active {
  transform: scale(0.95);
}

.course-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.course-nav::-webkit-scrollbar {
  display: none;
}

.course-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-nav a i {
  font-size: 1rem;
  transition: var(--transition);
}

.course-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.course-nav a:hover i {
  transform: scale(1.1);
}

.course-nav a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(209, 3, 158, 0.4);
}

.course-nav a.active i {
  color: #fff;
}

/* ===========================
   MAIN GRID LAYOUT
   =========================== */
.course-container {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  margin-top: var(--total-offset);
  min-height: calc(100vh - var(--total-offset));
  background: var(--bg-light);
}

/* ===========================
   SIDEBAR - MODERN DESIGN
   Beautiful gradient background with smooth interactions
   =========================== */
.course-sidebar {
  background: var(--bg-gradient);
  border-right: 1px solid var(--border-light);
  height: calc(100vh - var(--total-offset));
  position: sticky;
  top: var(--total-offset);
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.04);
}

/* Custom Scrollbar - Brand Colors */
.course-sidebar::-webkit-scrollbar {
  width: 6px;
}

.course-sidebar::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 3px;
}

.course-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  transition: var(--transition);
}

.course-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Firefox Scrollbar */
.course-sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f1f5f9;
}

/* Sticky Sidebar Header */
.course-sidebar h3 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 20px 20px 14px;
  margin: 0;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.05), rgba(122, 0, 96, 0.03));
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-sidebar h3::before {
  content: '📚';
  font-size: 1rem;
}

/* Sidebar List */
.course-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 12px;
}

.course-sidebar li {
  margin-bottom: 4px;
}

/* Interactive Lesson Links with Left Border Animation */
.course-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  border: 1px solid transparent;
  overflow: hidden;
}

/* Left Border Animation Effect */
.course-sidebar a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 0 4px 4px 0;
  transition: var(--transition);
}

/* Dot indicator */
.course-sidebar a::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  flex-shrink: 0;
  transition: var(--transition);
  order: -1;
}

/* Hover State - Slide Effect */
.course-sidebar a:hover {
  background: linear-gradient(135deg, var(--primary-light), rgba(209, 3, 158, 0.05));
  color: var(--primary-dark);
  transform: translateX(8px);
  box-shadow: var(--shadow-sm);
}

.course-sidebar a:hover::before {
  height: 70%;
}

.course-sidebar a:hover::after {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Active Lesson - Gradient Background */
.course-sidebar a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(209, 3, 158, 0.35);
  border-color: transparent;
  transform: translateX(4px);
}

.course-sidebar a.active::before {
  height: 100%;
  background: #fff;
  width: 4px;
  opacity: 0.5;
}

.course-sidebar a.active::after {
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.course-sidebar a.active:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 25px rgba(209, 3, 158, 0.45);
}

/* Progress Indicator (if implemented) */
.course-sidebar .lesson-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary-light), rgba(122, 0, 96, 0.05));
  border-radius: var(--radius-md);
  margin: 12px;
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
  border: 1px solid rgba(209, 3, 158, 0.15);
}

.course-sidebar .progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(209, 3, 158, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.course-sidebar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ===========================
   COURSE PROGRESS TRACKER
   Displays user progress or login prompt
   Positioned below lesson title in content area
   =========================== */
.course-progress-tracker {
  margin: 0 0 20px 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-right: 0 !important;
}

/* Logged In State - Progress Display */
.progress-tracker-content {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary-light), rgba(122, 0, 96, 0.08));
}

.progress-tracker-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.progress-tracker-header i {
  font-size: 1rem;
  color: var(--primary);
}

.progress-tracker-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.progress-lessons {
  color: var(--text-muted);
  font-weight: 500;
}

.progress-percent {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.progress-tracker-bar {
  height: 8px;
  background: rgba(209, 3, 158, 0.15);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-tracker-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--primary-glow);
  position: relative;
}

.progress-tracker-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Logged Out State - Login Prompt */
.progress-tracker-login {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.progress-login-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary-light), rgba(209, 3, 158, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-login-icon i {
  font-size: 1.2rem;
  color: var(--primary);
}

.progress-tracker-login p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(209, 3, 158, 0.3);
}

.progress-signin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 3, 158, 0.4);
}

.progress-signin-btn:active {
  transform: translateY(0);
}

.progress-signin-btn i {
  font-size: 1rem;
}

/* Mobile Responsive for Progress Tracker */
@media (max-width: 900px) {
  .progress-tracker-content {
    padding: 16px;
  }

  .progress-tracker-login {
    padding: 16px;
  }

  .progress-login-icon {
    width: 40px;
    height: 40px;
  }

  .progress-login-icon i {
    font-size: 1rem;
  }
}

/* ===========================
   COMPLETED LESSON STYLES
   Visual indicators for completed lessons
   =========================== */

/* Sidebar completed lesson styling */
.course-sidebar a.completed {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.08), rgba(209, 3, 158, 0.03));
}

.course-sidebar a.completed::after {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.course-sidebar a.completed .complete-icon {
  color: var(--primary);
  margin-right: 8px;
  font-size: 0.9rem;
}

/* Mark Complete Button */
.mark-complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.mark-complete-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.mark-complete-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.mark-complete-btn.completed {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 15px rgba(209, 3, 158, 0.3);
  cursor: default;
}

.mark-complete-btn:disabled {
  opacity: 0.9;
}

.mark-complete-btn i {
  font-size: 1rem;
}

/* Mobile responsive for mark complete button */
@media (max-width: 900px) {
  .mark-complete-btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .lesson-nav {
    gap: 10px;
  }

  .mark-complete-btn {
    order: -1;
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   CONTENT AREA
   =========================== */
.course-content {
  background: var(--bg-white);
  padding: 20px 20px 20px 20px;
  min-height: calc(100vh - var(--total-offset));
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  min-width: 0;
  box-sizing: border-box;
}

/* Inner Content Wrapper */
.course-content #lessonContent,
.course-content > div:not(.lesson-nav) {
  max-width: 100%;
  padding-right: 0;
}

/* Bottom spacer so content doesn't bump into browser bottom */
.course-content::after {
  content: '';
  display: block;
  height: 60px;
}

/* Content Header with Underline */
.course-content h2,
.course-content #lessonTitle {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 28px 0;
  line-height: 1.2;
  position: relative;
  padding-bottom: 18px;
  padding-left: 20px;
}

.course-content h2::after,
.course-content #lessonTitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Lesson Title Container with Bookmark */
.lesson-title-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.lesson-title-container #lessonTitle {
  flex: 1;
  margin-bottom: 28px;
}

/* Bookmark Button */
.bookmark-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--text-muted);
  padding: 8px 12px;
  margin-top: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: none;
}

.bookmark-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.bookmark-btn:active {
  transform: translateY(0);
}

.bookmark-btn.bookmarked i {
  color: var(--primary);
}

.bookmark-btn.bookmarked i::before {
  content: '\f02e'; /* fas fa-bookmark (solid) */
  font-weight: 900;
}

.bookmark-btn i {
  transition: var(--transition-fast);
}

.bookmark-btn:hover i {
  transform: scale(1.1);
}

/* Student-Friendly Typography */
.course-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 18px;
}

/* ===========================
   INTERACTIVE LESSON SECTIONS
   Gradient backgrounds with hover effects
   =========================== */
.lesson-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  padding: 28px 32px !important;
  border-radius: var(--radius-lg) !important;
  margin-bottom: 32px !important;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

/* Left Accent Border */
.lesson-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 0 3px 3px 0;
  transition: var(--transition);
}

/* Hover Effects */
.lesson-section:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(209, 3, 158, 0.1);
  transform: translateY(-3px);
  border-color: rgba(209, 3, 158, 0.2);
}

.lesson-section:hover::before {
  width: 6px;
  box-shadow: 2px 0 15px var(--primary-glow);
}

/* Section Headers with Arrow Icons */
.lesson-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 18px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

/* Animated Arrow Icon */
.lesson-section h3::before {
  content: '▸';
  font-size: 1.2rem;
  color: var(--primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-light), rgba(209, 3, 158, 0.05));
  border-radius: 50%;
}

.lesson-section:hover h3::before {
  transform: translateX(4px);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.lesson-section p {
  margin: 0 20px 14px 30px;
  color: #4a5568;
}

/* Custom List Bullets - Checkmarks */
.lesson-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
  margin-left: 30px;
}

.lesson-section ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.7;
  color: #4a5568;
}

.lesson-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary-light), rgba(209, 3, 158, 0.15));
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lesson-section ul li:hover::before {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 3px 10px var(--primary-glow);
}

.lesson-section ol {
  padding-left: 24px;
  margin-bottom: 18px;
  margin-left: 10px;
}

.lesson-section ol li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #4a5568;
}

/* ===========================
   CODE BLOCKS - Dark Theme with Header Bar
   =========================== */
.lesson-section pre {
  background: linear-gradient(180deg, #1e1e1e 0%, #2d2d2d 100%);
  color: #e2e8f0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-code);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 20px 20px 20px 20px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

/* Gradient Header Bar with Window Dots */
.lesson-section pre::before {
  content: '';
  display: block;
  height: 36px;
  background: linear-gradient(90deg, #2d2d2d, #3d3d3d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.lesson-section pre::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 16px;
  width: 12px;
  height: 12px;
  background: #ff5f57;
  border-radius: 50%;
  box-shadow: 20px 0 0 #febc2e, 40px 0 0 #28c840;
}

.lesson-section pre code {
  display: block;
  padding: 20px 24px;
  color: inherit;
  background: transparent;
  overflow-x: auto;
}

/* Code Block Scrollbar */
.lesson-section pre code::-webkit-scrollbar {
  height: 8px;
}

.lesson-section pre code::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.lesson-section pre code::-webkit-scrollbar-thumb {
  background: rgba(209, 3, 158, 0.4);
  border-radius: 4px;
}

.lesson-section pre code::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Inline Code */
.lesson-section code {
  background: linear-gradient(135deg, var(--primary-light), rgba(209, 3, 158, 0.08));
  color: var(--primary-dark);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.9em;
  border: 1px solid rgba(209, 3, 158, 0.15);
}

/* ===========================
   TRY IT YOURSELF BLOCKS
   =========================== */
.try-preview-container {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 2px solid rgba(209, 3, 158, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 20px 24px 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.try-preview-container:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}

.try-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--primary-light), rgba(122, 0, 96, 0.06));
  border-bottom: 1px solid rgba(209, 3, 158, 0.15);
}

.try-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Light Bulb Emoji Decoration */
.try-header h4::before {
  content: '💡';
  font-size: 1.3rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.edit-run-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(209, 3, 158, 0.3);
}

.edit-run-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(209, 3, 158, 0.45);
}

.edit-run-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.try-preview-box {
  padding: 20px 24px;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
}

.try-preview-box:hover {
  background: #f1f5f9;
}

.try-preview-box pre {
  margin: 0;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.try-preview-box pre::before,
.try-preview-box pre::after {
  display: none;
}

.try-preview-box code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
}

/* ===========================
   LESSON NOTES - Gradient Pink Background
   with Light Bulb Decoration
   =========================== */
.lesson-notes {
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.08) 0%, rgba(209, 3, 158, 0.15) 100%);
  border: 1px solid rgba(209, 3, 158, 0.25);
  border-radius: var(--radius-md);
  padding: 22px 24px 22px 56px;
  margin: 24px 20px 24px 20px;
  position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Light Bulb Decoration */
.lesson-notes::before {
  content: '💡';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.lesson-notes p {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.7;
}

.lesson-notes p + p {
  margin-top: 10px;
}

/* ===========================
   NAVIGATION BUTTONS with Icons
   =========================== */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  margin-left: 20px;
  margin-right: 20px;
  padding-top: 32px;
  border-top: 2px solid var(--border-light);
}

/* Top Navigation - Compact version below title */
.lesson-nav.lesson-nav-top {
  margin-top: 0;
  margin-bottom: 32px;
  padding-top: 0;
  padding-bottom: 24px;
  border-top: none;
  border-bottom: 1px solid var(--border-light);
}

.lesson-nav-top button {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Arrow Icons for top navigation buttons */
.lesson-nav button#prevLessonTop::before {
  content: '\2190';
  font-size: 1.1rem;
  position: static;
  background: none;
  width: auto;
  height: auto;
  margin-right: 6px;
}

.lesson-nav button#nextLessonTop::after {
  content: '\2192';
  font-size: 1.1rem;
  margin-left: 6px;
}

.lesson-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(209, 3, 158, 0.3);
  position: relative;
  overflow: hidden;
}

/* Button Shine Effect */
.lesson-nav button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.lesson-nav button:hover::before {
  left: 100%;
}

.lesson-nav button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(209, 3, 158, 0.4);
}

.lesson-nav button:active:not(:disabled) {
  transform: translateY(-1px);
}

.lesson-nav button:disabled {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.lesson-nav button:disabled::before {
  display: none;
}

/* Arrow Icons */
.lesson-nav button#prevLesson::before {
  content: '←';
  font-size: 1.2rem;
  position: static;
  background: none;
  width: auto;
  height: auto;
}

.lesson-nav button#nextLesson::after {
  content: '→';
  font-size: 1.2rem;
}

/* ===========================
   LOADING STATE - Modern Animation
   =========================== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
  gap: 20px;
}

.loading::after {
  content: '';
  width: 44px;
  height: 44px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 15px var(--primary-glow);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================
   FOOTER ADJUSTMENTS
   =========================== */
.footer {
  margin-top: 0;
}

/* ===========================
   RESPONSIVE - TABLET
   =========================== */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
  }

  .course-content {
    padding: 20px;
  }

  .course-content #lessonContent,
  .course-content > div:not(.lesson-nav) {
    max-width: 100%;
    padding-right: 0;
  }

  .course-content h2,
  .course-content #lessonTitle {
    font-size: 2rem;
  }
}

/* ===========================
   RESPONSIVE - MOBILE (Touch-Friendly)
   =========================== */
@media (max-width: 900px) {
  :root {
    --sidebar-width: 85%;
  }

  .course-container {
    grid-template-columns: 1fr;
  }

  /* Mobile Sidebar - Slide-in Drawer */
  .course-sidebar {
    position: fixed;
    left: 0;
    top: var(--total-offset);
    width: var(--sidebar-width);
    max-width: 320px;
    height: calc(100vh - var(--total-offset));
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    box-shadow: none;
  }

  .course-sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
  }

  /* Dark Overlay when sidebar open */
  .course-sidebar.sidebar-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 100%;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .course-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* Touch-Friendly Targets */
  .course-sidebar a {
    padding: 16px;
    min-height: 48px;
  }

  .course-content {
    padding: 16px;
  }

  .course-content #lessonContent,
  .course-content > div:not(.lesson-nav) {
    max-width: 100%;
    padding-right: 0;
  }

  .course-content::after {
    height: 40px;
  }

  .course-content h2,
  .course-content #lessonTitle {
    font-size: 1.75rem;
  }

  .lesson-section {
    padding: 22px 24px !important;
  }

  .lesson-nav {
    flex-direction: column;
    gap: 12px;
  }

  .lesson-nav button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  /* Top navigation stays horizontal on mobile */
  .lesson-nav.lesson-nav-top {
    flex-direction: row;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .lesson-nav-top button {
    width: auto;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ===========================
   RESPONSIVE - SMALL MOBILE
   =========================== */
@media (max-width: 480px) {
  .course-topbar {
    padding: 0 12px;
  }

  .course-nav a {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .course-nav a i {
    font-size: 0.9rem;
  }

  .course-content {
    padding: 20px 12px 20px 12px;
  }

  .course-content #lessonContent,
  .course-content > div:not(.lesson-nav) {
    padding-right: 0;
  }

  .course-content::after {
    height: 30px;
  }

  .course-content h2,
  .course-content #lessonTitle {
    font-size: 1.4rem;
  }

  .lesson-section {
    padding: 18px 16px !important;
    margin-bottom: 20px !important;
  }

  .lesson-section h3 {
    font-size: 1.15rem;
  }

  .lesson-section h3::before {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }

  .try-header {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
  }

  .edit-run-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .lesson-nav button {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  /* Top navigation on small mobile */
  .lesson-nav-top button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .lesson-notes {
    padding: 18px 16px 18px 48px;
  }

  .lesson-notes::before {
    left: 14px;
    font-size: 1.3rem;
  }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lesson-section {
  animation: fadeInUp 0.5s ease-out backwards;
}

/* Stagger animation for multiple sections */
.lesson-section:nth-child(1) { animation-delay: 0s; }
.lesson-section:nth-child(2) { animation-delay: 0.08s; }
.lesson-section:nth-child(3) { animation-delay: 0.16s; }
.lesson-section:nth-child(4) { animation-delay: 0.24s; }
.lesson-section:nth-child(5) { animation-delay: 0.32s; }
.lesson-section:nth-child(6) { animation-delay: 0.4s; }

/* ===========================
   ACCESSIBILITY
   =========================== */
.course-sidebar a:focus,
.course-nav a:focus,
.lesson-nav button:focus,
.edit-run-btn:focus,
.course-hamburger:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Focus visible for keyboard navigation */
.course-sidebar a:focus-visible,
.course-nav a:focus-visible,
.lesson-nav button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(209, 3, 158, 0.2);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .course-sidebar,
  .course-topbar,
  .site-header,
  .lesson-nav,
  .edit-run-btn,
  .try-preview-container {
    display: none !important;
  }

  .course-container {
    display: block;
    margin-top: 0;
  }

  .course-content {
    padding: 0;
  }

  .lesson-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  .lesson-section::before {
    background: #333;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* ===========================
   BOOKMARK NOTIFICATION
   =========================== */
.bookmark-notification {
  position: fixed;
  top: calc(var(--header-height) + 20px);
  right: 20px;
  background: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid var(--primary);
}

.bookmark-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.bookmark-notification i {
  color: var(--primary);
  font-size: 1.2rem;
}

.bookmark-notification.success {
  border-left-color: #10b981;
}

.bookmark-notification.success i {
  color: #10b981;
}

.bookmark-notification.info {
  border-left-color: #3b82f6;
}

.bookmark-notification.info i {
  color: #3b82f6;
}

/* Mobile bookmark button adjustments */
@media (max-width: 768px) {
  .bookmark-btn {
    font-size: 1.5rem;
    padding: 6px 10px;
  }

  .lesson-title-container {
    gap: 8px;
  }

  .bookmark-notification {
    top: calc(var(--header-height) + 10px);
    right: 10px;
    left: 10px;
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}

/* ===========================
   BOOKMARK LOGIN DIALOG
   =========================== */
.bookmark-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.bookmark-login-overlay.show {
  opacity: 1;
}

.bookmark-login-dialog {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bookmark-login-overlay.show .bookmark-login-dialog {
  transform: scale(1);
}

.bookmark-login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary-light), rgba(124, 58, 237, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark-login-icon i {
  font-size: 2.5rem;
  color: var(--primary);
}

.bookmark-login-dialog h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.bookmark-login-dialog > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.bookmark-login-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.bookmark-login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.bookmark-login-feature i {
  font-size: 1.25rem;
  color: var(--primary);
  width: 24px;
  flex-shrink: 0;
}

.bookmark-login-feature span {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.bookmark-login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bookmark-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(209, 3, 158, 0.3);
}

.bookmark-login-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(209, 3, 158, 0.4);
}

.bookmark-login-btn i {
  font-size: 1.2rem;
}

.bookmark-cancel-btn {
  padding: 12px 24px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.bookmark-cancel-btn:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* Mobile login dialog */
@media (max-width: 768px) {
  .bookmark-login-dialog {
    padding: 32px 24px;
  }

  .bookmark-login-icon {
    width: 70px;
    height: 70px;
  }

  .bookmark-login-icon i {
    font-size: 2rem;
  }

  .bookmark-login-dialog h3 {
    font-size: 1.5rem;
  }

  .bookmark-login-dialog > p {
    font-size: 0.95rem;
  }

  .bookmark-login-features {
    padding: 20px;
  }
}

/* ============================================================
   COURSE COMPLETE BANNER
   ============================================================ */

.course-complete-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  box-sizing: border-box;
  max-width: 100%;
}

.ccb-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ccb-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.ccb-text {
  display: flex;
  flex-direction: column;
}

.ccb-text strong {
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

.ccb-text span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.ccb-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ccb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ccb-cert {
  background: white;
  color: #059669;
}

.ccb-cert:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ccb-next {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ccb-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .course-complete-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .ccb-left {
    flex-direction: column;
    gap: 8px;
  }
  .ccb-actions {
    width: 100%;
    flex-direction: column;
  }
  .ccb-btn {
    justify-content: center;
    width: 100%;
  }
}

/* Dark mode */
[data-theme="dark"] .course-complete-banner {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

/* ============================================================
   DARK MODE - COURSE PAGES
   ============================================================ */

[data-theme="dark"] {
  --bg-light: #0f0f1a;
  --bg-white: #1a1a2e;
  --bg-gradient: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
  --text-dark: #e4e4e4;
  --text-muted: #9a9a9a;
  --text-light: #777;
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Header override */
[data-theme="dark"] body .site-header,
[data-theme="dark"] .site-header {
  background: rgba(15, 15, 26, 0.98) !important;
}

/* Sidebar */
[data-theme="dark"] .course-sidebar {
  background: #1a1a2e;
  border-right-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .course-sidebar h3 {
  color: #fff;
}

[data-theme="dark"] .course-sidebar a {
  color: #bbb;
}

[data-theme="dark"] .course-sidebar a:hover {
  color: #fff;
  background: rgba(209, 3, 158, 0.1);
}

[data-theme="dark"] .course-sidebar a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

[data-theme="dark"] .course-sidebar a.completed {
  color: #4ade80;
}

/* Main content area */
[data-theme="dark"] .course-content {
  background: var(--bg-light);
}

[data-theme="dark"] #lessonTitle {
  color: #fff;
}

[data-theme="dark"] #lessonContent {
  color: #ccc;
}

[data-theme="dark"] #lessonContent h3,
[data-theme="dark"] #lessonContent h4 {
  color: #fff;
}

[data-theme="dark"] #lessonContent p {
  color: #bbb;
}

[data-theme="dark"] #lessonContent li {
  color: #bbb;
}

[data-theme="dark"] #lessonContent a {
  color: #e879b0;
}

/* Code blocks */
[data-theme="dark"] .code-block,
[data-theme="dark"] pre,
[data-theme="dark"] code {
  background: #0d0d1a !important;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .tryit-container,
[data-theme="dark"] .tryit-box {
  background: #1e1e2e;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Notes */
[data-theme="dark"] .note,
[data-theme="dark"] .lesson-note {
  background: rgba(209, 3, 158, 0.08);
  border-left-color: var(--primary);
  color: #ccc;
}

/* Progress tracker */
[data-theme="dark"] .course-progress-tracker {
  background: rgba(209, 3, 158, 0.06);
  border-color: rgba(209, 3, 158, 0.15);
}

[data-theme="dark"] .progress-tracker-content span {
  color: #ccc;
}

[data-theme="dark"] .progress-tracker-login {
  color: #bbb;
}

/* Section blocks */
[data-theme="dark"] .section-block,
[data-theme="dark"] .lesson-section {
  background: #1a1a2e;
  border-color: rgba(255, 255, 255, 0.06);
}

/* Navigation buttons */
[data-theme="dark"] .lesson-nav-btn {
  background: #1e1e2e;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ccc;
}

[data-theme="dark"] .lesson-nav-btn:hover {
  background: rgba(209, 3, 158, 0.1);
  border-color: var(--primary);
  color: #fff;
}

/* Bookmark */
[data-theme="dark"] .bookmark-btn {
  color: #888;
}

[data-theme="dark"] .bookmark-btn:hover {
  color: var(--primary);
}

/* Loading state */
[data-theme="dark"] .loading {
  color: #999;
}

/* Quiz section on course pages */
[data-theme="dark"] .quiz-container {
  background: #1e1e2e;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .quiz-option {
  background: #252536;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ccc;
}

[data-theme="dark"] .quiz-option:hover {
  border-color: var(--primary);
  background: rgba(209, 3, 158, 0.08);
}
