/* OLED-Neon Theme Enhancements */

/* Hide theme picker - we only use oled-neon */
[id="mdbook-theme-toggle"],
.theme-popup {
  display: none !important;
}

/* Force oled-neon colors on all theme classes */
.light,
.rust,
.coal,
.navy,
.ayu,
.oled-neon,
html {
  /* OLED Background - Pure Black */
  --bg: #000000 !important;
  --fg: #e0e0e0 !important;

  --sidebar-bg: #000000 !important;
  --sidebar-fg: #e0e0e0 !important;
  --sidebar-non-existant: #555555 !important;
  --sidebar-active: #00f0ff !important;
  --sidebar-spacer: #1a1a1a !important;

  --scrollbar: #1a1a1a !important;

  --icons: #888888 !important;
  --icons-hover: #00f0ff !important;

  --links: #00f0ff !important;

  --inline-code-color: #ff00a0 !important;

  --theme-popup-bg: #0a0a0a !important;
  --theme-popup-border: #00a8b3 !important;
  --theme-hover: #1a1a1a !important;

  --quote-bg: #0a0a0a !important;
  --quote-border: #00a8b3 !important;

  --warning-border: #ff00a0 !important;

  --table-border-color: #1a1a1a !important;
  --table-header-bg: #0a0a0a !important;
  --table-alternate-bg: #050505 !important;

  --searchbar-border-color: #00a8b3 !important;
  --searchbar-bg: #0a0a0a !important;
  --searchbar-fg: #e0e0e0 !important;
  --searchbar-shadow-color: rgba(0, 240, 255, 0.2) !important;
  --searchresults-header-fg: #00f0ff !important;
  --searchresults-border-color: #1a1a1a !important;
  --searchresults-li-bg: #0a0a0a !important;
  --search-mark-bg: rgba(160, 255, 0, 0.3) !important;

  --color-scheme: dark !important;
}

/* Neon glow effects */
a:hover {
  text-shadow:
    0 0 5px rgba(0, 240, 255, 0.5),
    0 0 10px rgba(0, 240, 255, 0.3);
}

.sidebar .sidebar-scrollbox a.active {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* Code block styling with subtle glow */
pre {
  background-color: #0a0a0a !important;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
}

pre:hover {
  border-color: #00a8b3;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Inline code with accent color */
code {
  color: #ff00a0 !important;
  background-color: #0a0a0a !important;
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

pre code {
  color: inherit !important;
  background-color: transparent !important;
  padding: 0;
}

/* Headings with subtle neon accent */
h1 {
  color: #00f0ff !important;
  border-bottom: 1px solid #00a8b3 !important;
}

h2 {
  color: #e0e0e0 !important;
  border-bottom: 1px solid #1a1a1a !important;
}

h3,
h4,
h5,
h6 {
  color: #e0e0e0 !important;
}

/* Blockquotes with neon border */
blockquote {
  border-left: 4px solid #00a8b3 !important;
  background-color: #0a0a0a !important;
  padding: 0.5em 1em;
  margin: 1em 0;
}

/* Tables */
table {
  border-collapse: collapse;
}

table th {
  background-color: #0a0a0a !important;
  border: 1px solid #1a1a1a !important;
  color: #00f0ff !important;
}

table td {
  border: 1px solid #1a1a1a !important;
}

table tr:nth-child(even) {
  background-color: #050505 !important;
}

/* Search input glow on focus */
#searchbar:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4) !important;
  outline: none;
}

/* Menu bar styling */
.menu-bar {
  background-color: #000000 !important;
  border-bottom: 1px solid #1a1a1a !important;
}

.menu-bar i:hover {
  color: #00f0ff !important;
}

/* Buttons */
.nav-chapters:hover {
  color: #00f0ff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00a8b3;
}

/* Selection highlight */
::selection {
  background-color: rgba(0, 240, 255, 0.3);
  color: #ffffff;
}

/* Warning/important admonitions */
.warning {
  border-left-color: #ff00a0 !important;
  background-color: rgba(255, 0, 160, 0.1) !important;
}

/* Horizontal rules */
hr {
  border: none !important;
  border-top: 1px solid #1a1a1a !important;
}

/* Links in content */
.content a {
  color: #00f0ff !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.content a:hover {
  border-bottom-color: #00f0ff;
}

/* Print styles - revert to readable colors */
@media print {
  html {
    --bg: #ffffff !important;
    --fg: #000000 !important;
  }
}
