/* WhisperHedge Custom Color Scheme */
/* Matching the main website's dark blue branding */

/* Override slate theme CSS variables */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #020617;
  --md-default-fg-color: #F8FAFC;
  --md-primary-fg-color: #0F172A;
  --md-primary-fg-color--light: #334155;
  --md-primary-fg-color--dark: #0F172A;
  --md-accent-fg-color: #3B82F6;
  --md-code-bg-color: #0F172A;
  --md-code-fg-color: #F8FAFC;
  --md-typeset-a-color: #3B82F6;
}

/* Main content background - dark blue */
[data-md-color-scheme="slate"] .md-main {
  background-color: #020617;
}

[data-md-color-scheme="slate"] .md-content {
  background-color: #020617;
}

/* Header/navbar - DO NOT CHANGE THIS COLOR */
[data-md-color-scheme="slate"] .md-header {
  background-color: #0F172A;
  border-bottom: 1px solid #1E293B;
}

/* Navigation tabs */
[data-md-color-scheme="slate"] .md-tabs {
  background-color: #0F172A;
  border-bottom: 1px solid #1E293B;
}

/* Left sidebar - dark blue background */
.md-sidebar--primary {
  background-color: #020617;
}

.md-sidebar--primary .md-sidebar__scrollwrap {
  background-color: #020617;
}

/* Right sidebar (TOC) - dark blue background */
.md-sidebar--secondary {
  background-color: #020617;
}

.md-sidebar--secondary .md-sidebar__scrollwrap {
  background-color: #020617;
}

/* Fix navigation section headers (Getting Started, etc.) */
[data-md-color-scheme="slate"] .md-nav__title {
  background-color: transparent !important;
  background: transparent !important;
  border-top: none !important;
  font-weight: 600;
  color: #94A3B8 !important;
  padding: 0.6rem 0.6rem !important;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Remove the weird block background from section headers */
[data-md-color-scheme="slate"] .md-nav__title[for] {
  background-color: transparent !important;
  background: transparent !important;
}

/* Fix the label inside nav title */
[data-md-color-scheme="slate"] .md-nav__title .md-nav__button {
  display: none;
}

/* Fix Table of Contents header in right sidebar */
[data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__title {
  background-color: transparent !important;
  background: transparent !important;
  border-top: none !important;
  padding: 0.6rem 0.6rem !important;
}

/* Navigation items */
[data-md-color-scheme="slate"] .md-nav__item {
  padding: 0;
}

/* Navigation links - bright blue for contrast */
[data-md-color-scheme="slate"] .md-nav__link {
  color: #60A5FA !important;
  padding: 0.4rem 0.6rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

[data-md-color-scheme="slate"] .md-nav__link:hover {
  background-color: #1E293B;
  color: #F8FAFC;
}

/* Active/selected page - high contrast */
.md-nav__link--active {
  background-color: #3B82F6 !important;
  color: #F8FAFC !important;
  font-weight: 600;
}

/* Nested navigation items */
.md-nav--secondary .md-nav__link--active {
  background-color: #3B82F6 !important;
  color: #F8FAFC !important;
}

/* Search box */
.md-search__input {
  background-color: #1E293B;
  border: 1px solid #334155;
  color: #F8FAFC;
}

.md-search__input::placeholder {
  color: #64748B;
}

/* Buttons and primary elements */
.md-button--primary {
  background-color: #3B82F6;
  color: #F8FAFC;
}

.md-button--primary:hover {
  background-color: #60A5FA;
}

/* Admonitions (info boxes) */
.md-typeset .admonition,
.md-typeset details {
  border-left: 0.2rem solid #3B82F6;
  background-color: rgba(59, 130, 246, 0.05);
}

/* Tables */
.md-typeset table:not([class]) {
  border: 1px solid #1E293B;
  background-color: #0F172A;
}

.md-typeset table:not([class]) th {
  background-color: #1E293B;
  color: #F8FAFC;
}

.md-typeset table:not([class]) td {
  border-color: #1E293B;
}

/* Code blocks */
.md-typeset code {
  background-color: #1E293B;
  color: #3B82F6;
}

.md-typeset pre > code {
  background-color: #0F172A;
}

/* Footer */
.md-footer {
  background-color: #0F172A;
  border-top: 1px solid #1E293B;
}

/* Scrollbar styling for dark theme */
.md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 0.4rem;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background-color: #334155;
  border-radius: 0.2rem;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
  background-color: #475569;
}
