/* Persistent light/dark toggle for MkDocs ReadTheDocs theme. */

.theme-toggle-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn:hover {
  filter: brightness(0.98);
}

html.theme-dark body {
  background: #0f172a;
  color: #e5e7eb;
}

html.theme-dark .wy-body-for-nav {
  background: #0f172a;
}

html.theme-dark .wy-nav-side {
  background: #111827;
}

html.theme-dark .wy-side-nav-search {
  background: #1f2937;
}

html.theme-dark .wy-menu-vertical a {
  color: #d1d5db;
}

html.theme-dark .wy-menu-vertical a:hover,
html.theme-dark .wy-menu-vertical a:focus {
  background: #374151;
  color: #f9fafb;
}

html.theme-dark .wy-nav-content {
  background: #111827;
  color: #e5e7eb;
}

html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6,
html.theme-dark .wy-nav-content a {
  color: #f9fafb;
}

html.theme-dark code,
html.theme-dark pre {
  background: #1f2937;
  color: #f3f4f6;
}

html.theme-dark .theme-toggle-btn {
  background: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}
