/* Custom styles for PrimeThink Documentation */

:root {
  --md-primary-fg-color: #243c58;
  --md-accent-fg-color: #55bca6;
}

/* Custom Navigation Bar Colors */
/* Header background */
.md-header {
  background-color: #243c58 !important;
}

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

/* Header links and icons - default white */
.md-header__button,
.md-header__title,
.md-header__topic,
.md-header a {
  color: white !important;
}

/* Navigation tab links - default white */
.md-tabs__link {
  color: white !important;
  opacity: 0.8;
}

/* Hover state - brighter white */
.md-tabs__link:hover {
  color: white !important;
  opacity: 1;
}

/* Active/selected link - yellow with higher specificity */
.md-tabs__link--active,
.md-tabs__link--active:hover,
.md-tabs__item .md-tabs__link--active,
.md-tabs__link[aria-current="page"] {
  color: #f8ed92 !important;
  opacity: 1 !important;
}

/* Ensure active tab text is yellow */
.md-tabs__link--active .md-ellipsis,
.md-tabs__link[aria-current="page"] .md-ellipsis {
  color: #f8ed92 !important;
}

/* Target any active state indicators */
.md-tabs__item--active .md-tabs__link {
  color: #f8ed92 !important;
}

/* Sidebar navigation improvements */

/* Section headers - make them bold and distinct */
.md-nav__item--section > .md-nav__link {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  color: var(--md-default-fg-color--light);
}

/* Subsection headers */
.md-nav__item--nested > .md-nav__link {
  font-weight: 600;
  color: var(--md-default-fg-color--light);
}

/* Add indentation for nested items */
.md-nav__item .md-nav__item {
  padding-left: 0.6rem;
}

.md-nav__item .md-nav__item .md-nav__item {
  padding-left: 1.2rem;
}

/* Active link - use teal instead of yellow for better contrast */
.md-nav__link--active {
  color: #55bca6 !important;
  font-weight: 600;
}

.md-nav__item--active > .md-nav__link {
  color: #55bca6 !important;
  font-weight: 600;
  border-left: 2px solid #55bca6;
  padding-left: 0.5rem;
}

/* Hover state for sidebar links */
.md-nav__link:hover {
  color: #55bca6 !important;
}

/* Light mode specific */
[data-md-color-scheme="default"] .md-nav__link--active {
  color: #243c58 !important;
}

[data-md-color-scheme="default"] .md-nav__item--active > .md-nav__link {
  color: #243c58 !important;
  border-left-color: #55bca6;
}

/* Add subtle separators between major sections */
.md-nav__item--section {
  border-top: 1px solid var(--md-default-fg-color--lightest);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
}

.md-nav__item--section:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Search input in header */
.md-search__input {
  background-color: rgba(248, 237, 146, 0.1) !important;
  color: #f8ed92 !important;
}

.md-search__input::placeholder {
  color: rgba(248, 237, 146, 0.5) !important;
}

/* Primary buttons */
.md-button--primary {
  background-color: #55bca6 !important;
  border-color: #55bca6 !important;
  color: white !important;
}

.md-button--primary:hover,
.md-button--primary:focus {
  background-color: #4aa896 !important;
  border-color: #4aa896 !important;
}

/* Improve code block styling */
.highlight pre {
  border-radius: 0.5rem;
}

/* Custom admonition colors */
.md-typeset .admonition.note {
  border-left-color: #4f46e5;
}

/* Better table styling */
.md-typeset table:not([class]) {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
}

/* Image styling */
.md-typeset img {
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

/* Footer link styling */
.md-footer-copyright a {
  color: var(--md-footer-fg-color--lighter);
  transition: color 0.2s ease;
}

.md-footer-copyright a:hover {
  color: #55bca6;
}
