/* SignageLab Brand Colors */
:root {
  --md-primary-fg-color: #2EB67D;
  --md-primary-fg-color--light: #5fcfa0;
  --md-primary-fg-color--dark: #1a8a5a;
  --md-accent-fg-color: #2EB67D;
  --md-typeset-a-color: #2EB67D;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #2EB67D;
  --md-primary-fg-color--light: #5fcfa0;
  --md-primary-fg-color--dark: #1a8a5a;
  --md-accent-fg-color: #2EB67D;
  --md-typeset-a-color: #4fd89e;
  --md-default-bg-color: #1a1a2e;
  --md-default-bg-color--light: #22223a;
  --md-default-bg-color--lighter: #2a2a44;
}

/* ============================================
   Header — White top bar
   ============================================ */
.md-header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}
.md-header__topic,
.md-header-nav__topic {
  color: #1a1a2e;
}
.md-header .md-header__button {
  color: #4b5563;
}
.md-header .md-header__button:hover {
  color: #2EB67D;
}
/* Search bar in header */
.md-search__input {
  color: #1a1a2e;
  background-color: #f3f4f6;
}
.md-search__input::placeholder {
  color: #9ca3af;
}
.md-search__input + .md-search__icon {
  color: #6b7280;
}
/* Logo sizing */
.md-header__button.md-logo img {
  height: 28px;
  width: auto;
}
/* Dark mode header */
[data-md-color-scheme="slate"] .md-header {
  background-color: #1a1a2e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: #e5e7eb;
}
[data-md-color-scheme="slate"] .md-header__topic,
[data-md-color-scheme="slate"] .md-header-nav__topic {
  color: #e5e7eb;
}
[data-md-color-scheme="slate"] .md-header .md-header__button {
  color: #9ca3af;
}
[data-md-color-scheme="slate"] .md-search__input {
  color: #e5e7eb;
  background-color: #22223a;
}
/* Invert logo in dark mode */
[data-md-color-scheme="slate"] .md-header__button.md-logo img {
  filter: brightness(0) invert(1);
}

/* ============================================
   Sidebar — Sections & Collapsible
   ============================================ */

/* Hide site name from sidebar */
.md-nav--primary > .md-nav__title {
  display: none;
}

/* Section titles (top-level groups) */
.md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav__link,
.md-nav--primary > .md-nav__list > .md-nav__item--nested > label.md-nav__link {
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a2e;
  padding: 6px 12px 3px;
  margin-top: 10px;
}
[data-md-color-scheme="slate"] .md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav__link,
[data-md-color-scheme="slate"] .md-nav--primary > .md-nav__list > .md-nav__item--nested > label.md-nav__link {
  color: #9ca3af;
}

/* Child nav links */
.md-nav--primary .md-nav__item .md-nav .md-nav__link {
  font-size: 0.72rem;
  font-weight: 400;
  color: #4b5563;
  padding: 5px 12px 5px 20px;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item .md-nav .md-nav__link {
  color: #9ca3af;
}
.md-nav--primary .md-nav__item .md-nav .md-nav__link:hover {
  color: #2EB67D;
  border-left-color: #2EB67D;
  background: rgba(46, 182, 125, 0.04);
}

/* Active sidebar item */
.md-nav__item--active > .md-nav__link {
  color: #2EB67D !important;
  font-weight: 600;
  border-left-color: #2EB67D !important;
}

/* Collapse/expand toggle arrow */
.md-nav__item--nested .md-nav__toggle ~ .md-nav__link::after {
  color: #9ca3af;
}

/* Sidebar border */
.md-sidebar--primary .md-sidebar__inner {
  border-right: 1px solid #e5e7eb;
}
[data-md-color-scheme="slate"] .md-sidebar--primary .md-sidebar__inner {
  border-right: 1px solid #2a2a44;
}

/* ============================================
   Admonitions
   ============================================ */
.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-color: #2EB67D;
}
.md-typeset .tip > .admonition-title,
.md-typeset .tip > summary {
  background-color: rgba(46, 182, 125, 0.1);
}
.md-typeset .admonition.info,
.md-typeset details.info {
  border-color: #3b82f6;
}

/* ============================================
   Footer
   ============================================ */
.md-footer-meta {
  background-color: #1a1a2e;
}

/* ============================================
   Tables
   ============================================ */
.md-typeset table:not([class]) th {
  background-color: #2EB67D;
  color: #ffffff;
}

/* ============================================
   Code & Tabs
   ============================================ */
.md-typeset code {
  border-radius: 4px;
}
.md-typeset .tabbed-labels > label.tabbed-label--active {
  color: #2EB67D;
  border-color: #2EB67D;
}

/* ============================================
   Home Page Styles
   ============================================ */

/* Hero section */
.hero-section {
  padding: 56px 0 48px;
  text-align: center;
}
.hero-logo {
  height: 56px;
  width: auto;
  margin-bottom: 20px;
}
.hero-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
}
[data-md-color-scheme="slate"] .hero-section h2 {
  color: #e5e7eb;
}
[data-md-color-scheme="slate"] .hero-logo {
  filter: brightness(0) invert(1);
}
.hero-section p {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto 8px;
}
[data-md-color-scheme="slate"] .hero-section p {
  color: #9ca3af;
}

/* Hero buttons */
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.hero-actions .btn-primary {
  background: #2EB67D;
  color: #fff !important;
}
.hero-actions .btn-primary:hover {
  background: #259c6a;
  box-shadow: 0 4px 16px rgba(46, 182, 125, 0.35);
  transform: translateY(-1px);
}
.hero-actions .btn-outline {
  background: transparent;
  color: #2EB67D !important;
  border: 2px solid #2EB67D;
}
.hero-actions .btn-outline:hover {
  background: rgba(46, 182, 125, 0.08);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.feature-card {
  display: block;
  padding: 28px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.2s ease;
  color: inherit !important;
}
[data-md-color-scheme="slate"] .feature-card {
  border-color: #374151;
  background: #22223a;
}
.feature-card:hover {
  border-color: #2EB67D;
  box-shadow: 0 4px 20px rgba(46, 182, 125, 0.12);
  transform: translateY(-2px);
}
.feature-card h3 {
  font-size: 1rem;
  margin: 14px 0 8px;
  color: #1a1a2e;
}
[data-md-color-scheme="slate"] .feature-card h3 {
  color: #e5e7eb;
}
.feature-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
[data-md-color-scheme="slate"] .feature-card p {
  color: #9ca3af;
}
.feature-icon {
  color: #2EB67D;
}
.feature-icon svg {
  width: 40px;
  height: 40px;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 36px 0 32px;
  }
  .hero-section h2 {
    font-size: 1.6rem;
  }
}
