/* Peakhour Documentation Extra Styles */

/* Brand colors and custom properties */
:root {
  --md-primary-fg-color: #1e40af;
  --md-accent-fg-color: #f97316;
  --md-primary-fg-color--light: #3b82f6;
  --md-primary-fg-color--dark: #1e3a8a;
  --peakhour-blue: #1e40af;
  --peakhour-orange: #f97316;
}

/* Header customizations */
.md-header {
  background-color: var(--peakhour-blue) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.md-header__title {
  color: white;
  font-weight: 600;
}

/* Navigation improvements */
.md-nav__item--active > .md-nav__link {
  color: var(--peakhour-orange);
}

.md-nav__link[data-md-level="1"] {
  font-weight: 600;
}

/* Code block styling */
.md-typeset .highlight {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.md-typeset code {
  background-color: #f1f5f9;
  border-radius: 0.25rem;
  padding: 0.125rem 0.25rem;
  color: var(--peakhour-blue);
}

/* Links */
.md-typeset a {
  color: var(--peakhour-blue);
}

.md-typeset a:hover {
  color: var(--peakhour-orange);
}

/* Tables */
.md-typeset table:not([class]) {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background-color: var(--peakhour-blue);
  color: white;
  font-weight: 600;
}

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

/* Admonitions */
.md-typeset .admonition.note {
  border-color: var(--peakhour-blue);
}

.md-typeset .admonition.warning {
  border-color: var(--peakhour-orange);
}

/* Search */
.md-search__form {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

.md-search__input {
  background-color: transparent;
  color: white;
}

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

/* Sidebar */
.md-sidebar {
  border-right: 1px solid #e2e8f0;
}

/* Footer */
.md-footer {
  background-color: var(--peakhour-blue);
  color: white;
}

/* Custom button styles for docs */
.md-button {
  background-color: var(--peakhour-orange);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: background-color 0.2s;
}

.md-button:hover {
  background-color: #ea580c;
  color: white;
}

.md-button--primary {
  background-color: var(--peakhour-blue);
}

.md-button--primary:hover {
  background-color: var(--md-primary-fg-color--dark);
}

/* Responsive adjustments */
@media (max-width: 76.1875em) {
  .md-nav--primary .md-nav__item--active > .md-nav__link {
    color: var(--peakhour-orange);
  }
}

/* Content spacing */
.md-content {
  padding-top: 1rem;
}

.md-typeset h1 {
  color: var(--peakhour-blue);
  border-bottom: 2px solid var(--peakhour-orange);
  padding-bottom: 0.5rem;
}

.md-typeset h2 {
  color: var(--peakhour-blue);
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.25rem;
}

/* Breadcrumbs */
.md-nav--secondary .md-nav__title {
  color: var(--peakhour-blue);
  font-weight: 600;
}