/* ==========================================
   DARK THEME - Professional Dark Mode
   ========================================== */

[data-theme="dark"] {
  /* Dark color palette */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border-primary: #334155;
  --border-secondary: #475569;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

/* Dark theme body */
[data-theme="dark"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Dark theme cards */
[data-theme="dark"] .pro-card,
[data-theme="dark"] .course-card,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .pro-sidebar {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .pro-card:hover,
[data-theme="dark"] .course-card:hover {
  background: var(--bg-tertiary);
}

/* Dark theme text */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-primary);
}

[data-theme="dark"] p,
[data-theme="dark"] .course-info p,
[data-theme="dark"] .pro-card-subtitle {
  color: var(--text-secondary);
}

/* Dark theme navigation */
[data-theme="dark"] .pro-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-primary);
}

[data-theme="dark"] .pro-header.scrolled {
  background: rgba(15, 23, 42, 0.98);
}

/* Dark theme buttons */
[data-theme="dark"] .pro-btn-primary {
  background: var(--primary-600);
  color: white;
}

[data-theme="dark"] .pro-btn-secondary {
  border-color: var(--border-secondary);
  color: var(--text-primary);
}

/* Dark theme sidebar */
[data-theme="dark"] .pro-sidebar-nav-link {
  color: var(--text-secondary);
}

[data-theme="dark"] .pro-sidebar-nav-link:hover,
[data-theme="dark"] .pro-sidebar-nav-link.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Dark theme inputs */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark theme code blocks */
[data-theme="dark"] pre,
[data-theme="dark"] code {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-primary);
}

/* Dark theme tables */
[data-theme="dark"] table {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}

[data-theme="dark"] th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="dark"] td {
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

/* Dark theme footer */
[data-theme="dark"] footer,
[data-theme="dark"] .site-footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-primary);
}

/* Dark theme course list */
[data-theme="dark"] .courses_list {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
}

[data-theme="dark"] .courses_list ul li a {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="dark"] .courses_list ul li a:hover,
[data-theme="dark"] .courses_list a.active {
  background: var(--primary-600);
  color: white;
}

/* Dark theme hero */
[data-theme="dark"] .pro-hero {
  background: linear-gradient(135deg, 
    var(--bg-secondary) 0%, 
    var(--bg-tertiary) 50%, 
    var(--bg-primary) 100%);
}

/* Dark theme gradients */
[data-theme="dark"] .gradient-bg {
  background: linear-gradient(135deg, 
    var(--bg-secondary) 0%, 
    var(--bg-tertiary) 100%);
}

/* Dark theme glassmorphism */
[data-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Dark theme scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--border-secondary);
  border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--border-primary);
}

/* Dark theme selection */
[data-theme="dark"] ::selection {
  background: var(--primary-600);
  color: white;
}
