/* =============================================================================
   Adaptensor Docs - Custom Styles
   ============================================================================= */

/* CRITICAL: Fix table header colors - NUCLEAR OPTION */
th,
thead th,
table th,
.md-typeset th,
.md-typeset table th,
.md-typeset table:not([class]) th,
.md-typeset__table th,
.md-typeset__table table th,
[data-md-component="content"] th,
.md-content th {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #0d9488 !important;
}

/* Dark mode - override everything */
[data-md-color-scheme="slate"] th,
[data-md-color-scheme="slate"] thead th,
[data-md-color-scheme="slate"] table th,
[data-md-color-scheme="slate"] .md-typeset th,
[data-md-color-scheme="slate"] .md-typeset table th,
[data-md-color-scheme="slate"] .md-typeset table:not([class]) th,
[data-md-color-scheme="slate"] .md-typeset__table th,
[data-md-color-scheme="slate"] .md-typeset__table table th,
[data-md-color-scheme="slate"] [data-md-component="content"] th,
[data-md-color-scheme="slate"] .md-content th {
  background: #334155 !important;
  background-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Remove any default dark styling */
.md-typeset table:not([class]) th {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Table styling */
.md-typeset table:not([class]),
.md-typeset__table table {
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.md-typeset table:not([class]) td,
.md-typeset__table table td {
  border-bottom: 1px solid #e2e8f0;
}

.md-typeset table:not([class]) tr:hover td,
.md-typeset__table table tr:hover td {
  background-color: #f8fafc;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td,
[data-md-color-scheme="slate"] .md-typeset__table table td {
  border-bottom: 1px solid #475569;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:hover td,
[data-md-color-scheme="slate"] .md-typeset__table table tr:hover td {
  background-color: #1e293b;
}

/* Code block styling */
.md-typeset pre {
  border-radius: 8px;
}

.md-typeset code {
  border-radius: 4px;
}

/* Admonition styling */
.md-typeset .admonition {
  border-radius: 8px;
}

/* Primary button styling */
.md-typeset .md-button--primary {
  background-color: #0d9488;
  border-color: #0d9488;
}

/* Navigation buttons at top */
.nav-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.nav-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.nav-buttons a.primary {
  background: #0d9488;
  color: white;
}

.nav-buttons a.secondary {
  background: #1f2937;
  color: white;
}

.nav-buttons a.tertiary {
  background: #3b82f6;
  color: white;
}

/* Logo in header - make it clickable to main site */
.md-header__button.md-logo {
  cursor: pointer;
}

.md-header__button.md-logo img {
  height: 1.5rem;
  width: auto;
}

/* Feature cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.text-teal {
  color: #0d9488;
}

