/* AIC Data Science Documentation - Custom Theme */
/* Replace all blue colors with #262626 and ensure white text */

:root {
  /* Custom primary color variables */
  --md-primary-fg-color: #262626;
  --md-primary-fg-color--light: #404040;
  --md-primary-fg-color--dark: #1a1a1a;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #fcfcfc;
  
  /* Custom accent color */
  --md-accent-fg-color: #262626;
  --md-accent-fg-color--transparent: rgba(38, 38, 38, 0.1);
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: #fcfcfc;
}

/* Light mode customizations */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #262626;
  --md-primary-fg-color--light: #404040;
  --md-primary-fg-color--dark: #1a1a1a;
  --md-accent-fg-color: #262626;
}

/* Dark mode customizations */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #262626;
  --md-primary-fg-color--light: #404040;
  --md-primary-fg-color--dark: #1a1a1a;
  --md-accent-fg-color: #262626;
}

/* Header bar styling */
.md-header {
  background-color: #262626 !important;
  color: #ffffff !important;
}

.md-header__inner {
  background-color: #262626 !important;
}

/* Header text and links */
.md-header__title,
.md-header__topic,
.md-header .md-header__button,
.md-header .md-nav__link {
  color: #ffffff !important;
}

/* Header icons */
.md-header .md-icon {
  color: #ffffff !important;
}

/* Navigation tabs */
.md-tabs {
  background-color: #262626 !important;
}

.md-tabs__link {
  color: #ffffff !important;
  opacity: 0.7;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: #ffffff !important;
  opacity: 1;
}

/* Primary navigation */
.md-nav--primary .md-nav__title {
  background-color: #262626 !important;
  color: #ffffff !important;
}

/* Search box */
.md-search__input {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Search icon */
.md-search__icon {
  color: #ffffff !important;
}

/* Buttons and links */
.md-button {
  background-color: #262626 !important;
  color: #ffffff !important;
  border-color: #262626 !important;
}

.md-button:hover {
  background-color: #404040 !important;
  border-color: #404040 !important;
}

/* Primary button variant */
.md-button--primary {
  background-color: #262626 !important;
  color: #ffffff !important;
}

.md-button--primary:hover {
  background-color: #404040 !important;
}

/* Links */
a {
  color: #1565c0;
  text-decoration: underline;
}

a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* Dark mode links */
[data-md-color-scheme="slate"] a {
  color: #64b5f6;
}

[data-md-color-scheme="slate"] a:hover {
  color: #90caf9;
}

/* Code blocks and inline code accent */
.md-typeset .highlight .gp {
  color: #262626;
}

/* Admonitions */
.md-typeset .admonition.info,
.md-typeset .admonition.note {
  border-color: #262626;
}

.md-typeset .admonition.info > .admonition-title,
.md-typeset .admonition.note > .admonition-title {
  background-color: rgba(38, 38, 38, 0.1);
}

/* Progress bars and indicators */
.md-progress {
  background-color: #262626 !important;
}

/* Footer customization */
.md-footer {
  background-color: #262626 !important;
  color: #ffffff !important;
}

.md-footer__inner {
  background-color: #262626 !important;
}

.md-footer__link {
  color: #ffffff !important;
}

/* Mobile menu */
@media screen and (max-width: 76.1875em) {
  .md-nav--primary .md-nav__title[for="__drawer"] {
    background-color: #262626 !important;
    color: #ffffff !important;
  }
  
  .md-nav__source {
    background-color: #404040 !important;
  }
}

/* Table of contents active item */
.md-nav__link--active {
  color: #262626 !important;
}

/* Sidebar navigation active items */
.md-nav__item .md-nav__link--active {
  color: #262626 !important;
  font-weight: 700;
}

/* Source repository link */
.md-source {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.md-source:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.md-source__repository {
  color: #ffffff !important;
}

/* Custom styling for AIC branding */
.md-header__title {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.md-header__title::before {
  content: "📈 ";
  margin-right: 0.4em;
  flex-shrink: 0;
}

/* Logo styling for light/dark modes */
.aic-logo-light {
  display: block;
}

.aic-logo-dark {
  display: none;
}

[data-md-color-scheme="slate"] .aic-logo-light {
  display: none;
}

[data-md-color-scheme="slate"] .aic-logo-dark {
  display: block;
}

/* Ensure all header elements are properly styled */
.md-header *,
.md-tabs *,
.md-nav--primary .md-nav__title * {
  color: inherit !important;
}