/* ─── enconf Docs — Brand-aligned with netcell-webpanel.de ──────── */

:root {
  --md-primary-fg-color: #0B1426;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #1677ff;
  --md-typeset-a-color: #1677ff;
  --nc-primary: #1677ff;
  --nc-primary-dark: #0958d9;
  --nc-text: #1E293B;
  --nc-text-light: #64748B;
  --nc-border: #E2E8F0;
  --nc-surface: #F8FAFC;
  --md-typeset-font-size: 0.72rem;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */

.md-typeset {
  font-size: var(--md-typeset-font-size) !important;
  line-height: 1.65;
  color: var(--nc-text);
}

.md-typeset h1 { font-size: 1.4em; font-weight: 700; color: var(--nc-text); border-bottom: 2px solid var(--nc-border); padding-bottom: 0.4em; }
.md-typeset h2 { font-size: 1.25em; font-weight: 600; color: var(--nc-text); margin-top: 2em; }
.md-typeset h3 { font-size: 1.05em; font-weight: 600; color: #334155; }
.md-typeset h4 { font-size: 0.95em; font-weight: 600; }

/* ─── Header ─────────────────────────────────────────────────────────────── */

.md-header {
  background: linear-gradient(135deg, #0B1426 0%, #101D33 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.md-header__title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ─── Tabs ────────────────────────────────────────────────────────────────── */

.md-tabs {
  background: #101D33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.md-tabs__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  opacity: 1;
}

.md-tabs__link--active {
  border-bottom: 2px solid var(--nc-primary);
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */

.md-sidebar--primary {
  border-right: 1px solid var(--nc-border);
}

.md-sidebar--primary .md-sidebar__scrollwrap {
  background: var(--nc-surface);
}

.md-nav__title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--nc-text-light);
  padding: 0.6rem 0.8rem 0.3rem;
}

.md-nav__item .md-nav__link {
  font-size: 0.8rem;
  color: var(--nc-text);
  border-radius: 6px;
  margin: 1px 8px;
  padding: 0.35rem 0.6rem;
  transition: all 0.15s ease;
}

.md-nav__item .md-nav__link:hover {
  background: rgba(22, 119, 255, 0.06);
  color: var(--nc-primary);
}

.md-nav__item .md-nav__link--active {
  background: rgba(22, 119, 255, 0.1);
  color: var(--nc-primary);
  font-weight: 600;
  border-left: 3px solid var(--nc-primary);
  margin-left: 5px;
}

/* ─── Content ────────────────────────────────────────────────────────────── */

.md-content {
  max-width: 960px;
}

/* ─── Links ──────────────────────────────────────────────────────────────── */

.md-typeset a {
  color: var(--nc-primary);
}

.md-typeset a:hover {
  color: var(--nc-primary-dark);
}

/* ─── Tables ─────────────────────────────────────────────────────────────── */

.md-typeset table:not([class]) {
  border: 1px solid var(--nc-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.md-typeset table:not([class]) thead {
  background: var(--nc-surface);
}

.md-typeset table:not([class]) th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nc-text-light);
  border-bottom: 2px solid var(--nc-border);
  padding: 0.75rem 1rem;
}

.md-typeset table:not([class]) td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.85rem;
}

.md-typeset table:not([class]) tbody tr:hover {
  background: rgba(22, 119, 255, 0.03);
}

/* ─── Admonitions ────────────────────────────────────────────────────────── */

.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px;
  border: 1px solid var(--nc-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  font-size: 0.85rem;
}

.md-typeset .admonition-title,
.md-typeset summary {
  font-weight: 600;
  font-size: 0.85rem;
}

/* ─── Code ───────────────────────────────────────────────────────────────── */

.md-typeset code {
  background: #F1F5F9;
  color: #0F172A;
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.82em;
  border: 1px solid #E2E8F0;
}

.md-typeset pre > code {
  border: none;
  padding: 0;
}

.md-typeset pre {
  border-radius: 8px;
  border: 1px solid var(--nc-border);
}

/* ─── Search ─────────────────────────────────────────────────────────────── */

.md-search__input {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

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

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.md-footer {
  background: #0B1426;
}

.md-footer-meta {
  background: #070E1A;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.md-typeset .md-button--primary {
  background: var(--nc-primary);
  border-color: var(--nc-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
}

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

/* ─── Dark Mode ──────────────────────────────────────────────────────────── */

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0F172A;
  --md-default-fg-color: #E2E8F0;
  --md-primary-fg-color: #0B1426;
  --md-accent-fg-color: #1677ff;
  --nc-border: #1E293B;
  --nc-surface: #1E293B;
  --nc-text: #F1F5F9;
  --nc-text-light: #94A3B8;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-sidebar__scrollwrap {
  background: #0F172A;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background: #1E293B;
  color: #E2E8F0;
  border-color: #334155;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
  border-color: #1E293B;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) thead {
  background: #1E293B;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  color: #94A3B8;
  border-color: #334155;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
  border-color: #1E293B;
}

[data-md-color-scheme="slate"] .md-content {
  background: #0F172A;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tbody tr:hover {
  background: rgba(22, 119, 255, 0.06);
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */

.md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 4px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

[data-md-color-scheme="slate"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background: #475569;
}

/* ─── Logo ───────────────────────────────────────────────────────────────── */

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.4rem;
  filter: drop-shadow(0 0 6px rgba(22, 119, 255, 0.3));
}

/* ─── Print ──────────────────────────────────────────────────────────────── */

@media print {
  .md-sidebar, .md-header, .md-footer, .md-tabs { display: none; }
}
