/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

:root {
  --primary: #1e3a8a;
  --primary-dark: #172554;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --secondary: #60a5fa;
  --accent: #fbbf24;
  --bg-light: #0f172a;
  --bg-white: #1e293b;
  --text-dark: #f8fafc;
  --text-medium: #cbd5e1;
  --text-light: #94a3b8;
  --border: #334155;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Theme toggle */
.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
  margin-left: 0.5rem;
  font-family: var(--font-sans);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: var(--text-light);
}

.breadcrumbs .current {
  color: var(--text-dark);
  font-weight: 600;
}

/* Search */
.search-container {
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--bg-white);
  color: var(--text-dark);
  transition: all 0.3s;
}

.search-container input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.search-container::before {
  content: '🔍';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.6;
}

/* Filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-medium);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-chip:hover {
  border-color: var(--secondary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.category-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-medium);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.category-chip:hover {
  border-color: var(--secondary);
  color: var(--primary);
}

.category-chip.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-pdf {
  background: #fee2e2;
  color: #991b1b;
}

.badge-docx {
  background: rgba(219, 230, 255, 0.6);
  color: #1e40af;
}

.badge-doc {
  background: #e0e7ff;
  color: #3730a3;
}

.badge-rtf {
  background: #fce7f3;
  color: #9d174d;
}

.badge-txt {
  background: #e5e7eb;
  color: #374151;
}

.badge-zip {
  background: #fef3c7;
  color: #92400e;
}

.badge-jpg {
  background: #d1fae5;
  color: #065f46;
}

.badge-folder {
  background: #f3f4f6;
  color: #374151;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Category tag */
.category-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(219, 230, 255, 0.6);
  color: #1e40af;
  margin-bottom: 0.75rem;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 32px;
  height: 32px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: var(--accent);
  font-weight: 600;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03), transparent 40%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
  color: #78350f;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .btn-secondary {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0.7;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 0.95rem;
  flex-grow: 1;
}

.card .btn {
  margin-top: 1.25rem;
  width: 100%;
  text-align: center;
}

/* Features Section */
.features {
  background: var(--bg-white);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--bg-light);
  transition: all 0.3s;
}

.feature-item:hover {
  background: rgba(219, 230, 255, 0.4);
}

[data-theme="dark"] .feature-item:hover {
  background: rgba(96, 165, 250, 0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.feature-content p {
  color: var(--text-medium);
}

/* Content Pages */
.content-page {
  padding: 3rem 0;
  min-height: calc(100vh - 80px);
}

.content-page .container {
  max-width: 900px;
}

.content-page h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.content-page .lead {
  font-size: 1.25rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.content-section {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

.content-section h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--primary-dark);
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 1.05rem;
}

.content-section ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
  color: var(--text-medium);
  line-height: 1.7;
}

.content-section .highlight {
  background: rgba(219, 230, 255, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
  margin: 1.5rem 0;
  backdrop-filter: blur(5px);
}

.content-section .highlight p {
  color: var(--primary-dark);
  font-weight: 500;
  margin: 0;
}

/* 9 Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-card h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

footer p {
  opacity: 0.9;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .content-page h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 1rem;
  }

  nav.active ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.bg-white {
  background: var(--bg-white);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Sidebar for content pages */
.content-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.sidebar {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
  border: 1px solid var(--border);
}

.sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  color: var(--text-medium);
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(219, 230, 255, 0.5);
  color: var(--primary);
}

@media (max-width: 768px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

/* Table of Contents */
.toc {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--secondary);
}

.toc h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.toc ol {
  margin-left: 1.5rem;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--text-medium);
  text-decoration: none;
}

.toc a:hover {
  color: var(--secondary);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Dark mode overrides */
[data-theme="dark"] .card {
  background: var(--bg-white);
  border-color: var(--border);
}

[data-theme="dark"] .content-section {
  background: var(--bg-white);
  border-color: var(--border);
}

[data-theme="dark"] .sidebar {
  background: var(--bg-white);
  border-color: var(--border);
}

[data-theme="dark"] .toc {
  background: var(--bg-light);
}

[data-theme="dark"] .feature-item {
  background: var(--bg-light);
}

[data-theme="dark"] .feature-item:hover {
  background: rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .step-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  border-color: var(--border);
}

[data-theme="dark"] .step-card h4 {
  color: var(--text-dark);
}

[data-theme="dark"] .breadcrumbs a {
  color: var(--secondary);
}

[data-theme="dark"] .breadcrumbs .current {
  color: var(--text-dark);
}

[data-theme="dark"] .breadcrumbs .separator {
  color: var(--text-light);
}

[data-theme="dark"] a {
  color: var(--secondary);
}

[data-theme="dark"] nav a {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] nav a:hover {
  color: var(--accent);
}

[data-theme="dark"] nav a.active {
  color: var(--accent);
}

[data-theme="dark"] header a {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .section-title {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .content-page h1 {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .hero h1 {
  color: white;
}

[data-theme="dark"] .card h3 {
  color: var(--text-dark);
}

[data-theme="dark"] .feature-content h4 {
  color: var(--text-dark);
}

[data-theme="dark"] .content-section h2 {
  color: var(--text-dark);
}

[data-theme="dark"] .content-section h3 {
  color: var(--text-dark);
}

[data-theme="dark"] .content-section .highlight {
  background: rgba(30, 58, 138, 0.3);
}

[data-theme="dark"] .highlight p {
  color: #bfdbfe;
  font-weight: 600;
}

[data-theme="dark"] .card p {
  color: var(--text-medium);
}

[data-theme="dark"] .feature-content p {
  color: var(--text-medium);
}

[data-theme="dark"] .content-page .lead,
[data-theme="dark"] .content-section p,
[data-theme="dark"] .content-section li {
  color: var(--text-medium);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bg-white);
  border-color: var(--border);
  color: var(--text-dark);
}

[data-theme="dark"] ::placeholder {
  color: var(--text-light);
}

[data-theme="dark"] .filter-chip {
  background: var(--bg-white);
  border-color: var(--border);
  color: var(--text-medium);
}

[data-theme="dark"] .filter-chip:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

[data-theme="dark"] .filter-chip.active {
  background: var(--secondary);
  color: white;
}

[data-theme="dark"] .category-chip {
  background: var(--bg-white);
  border-color: var(--border);
  color: var(--text-medium);
}

[data-theme="dark"] .category-chip:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

[data-theme="dark"] .category-chip.active {
  background: var(--secondary);
  color: white;
}

[data-theme="dark"] .sidebar a {
  color: var(--text-medium);
}

[data-theme="dark"] .sidebar a:hover,
[data-theme="dark"] .sidebar a.active {
  background: rgba(96, 165, 250, 0.1);
  color: var(--secondary);
}

[data-theme="dark"] .toc a {
  color: var(--text-medium);
}

[data-theme="dark"] .toc a:hover {
  color: var(--secondary);
}

[data-theme="dark"] .step-card p {
  color: var(--text-medium);
}

[data-theme="dark"] .back-to-top {
  background: var(--secondary);
}

[data-theme="dark"] .back-to-top:hover {
  background: var(--primary);
}

/* Dark mode badge colors */
[data-theme="dark"] .badge-folder {
  background: #374151;
  color: #d1d5db;
}

[data-theme="dark"] .badge-pdf {
  background: #7f1d1d;
  color: #fecaca;
}

[data-theme="dark"] .badge-docx {
  background: #1e3a8a;
  color: #bfdbfe;
}

[data-theme="dark"] .badge-doc {
  background: #3730a3;
  color: #c7d2fe;
}

[data-theme="dark"] .badge-rtf {
  background: #831843;
  color: #fbcfe8;
}

[data-theme="dark"] .badge-txt {
  background: #374151;
  color: #d1d5db;
}

[data-theme="dark"] .badge-zip {
  background: #78350f;
  color: #fde68a;
}

[data-theme="dark"] .badge-jpg {
  background: #065f46;
  color: #a7f3d0;
}

[data-theme="dark"] .category-tag {
  background: #1e3a8a;
  color: #bfdbfe;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
