/*
  API Service theme, layered on Tabler (@tabler/core 1.4.0).
  House rules: 14px base, 4px corners on every rounded element, monospace for keys, IPs and figures.
  Colour is a code, not decoration: each hue always means the same kind of thing on every page.
    indigo  keys          teal    IPs / network     purple  docs
    green   online / ok   red     blocked / errors  orange  needs attention
*/
:root{
  --tblr-font-sans-serif:'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --tblr-font-monospace:'Martian Mono',ui-monospace,'Cascadia Mono',Consolas,monospace;
  --tblr-border-radius:4px;--tblr-border-radius-sm:4px;--tblr-border-radius-lg:4px;--tblr-border-radius-xl:4px;--tblr-border-radius-xxl:4px;--tblr-border-radius-pill:4px;

  /* the colour code: fill for icons and tints, ink for text on white or on the tint (all pass 4.5:1) */
  --k-key:#4263eb;     --k-key-ink:#364fc7;
  --k-ip:#0ca678;      --k-ip-ink:#087f5b;
  --k-docs:#ae3ec9;    --k-docs-ink:#862e9c;
  --k-ok:#2fb344;      --k-ok-ink:#237f33;
  --k-block:#d63939;   --k-block-ink:#b02525;
  --k-warn:#f76707;    --k-warn-ink:#a84a06;
}
/* single-tone pages (the docs): every kind collapses to the webtheme accent, with neutral greys for everything else */
.single-tone{
  --tblr-primary:#2a78d6;--tblr-primary-rgb:42,120,214;--tblr-link-color:#1f5fae;--tblr-link-color-rgb:31,95,174;--tblr-link-hover-color:#174a88;
  --k-key:#2a78d6;--k-key-ink:#1f5fae;
  --k-ip:#2a78d6;--k-ip-ink:#1f5fae;
  --k-docs:#2a78d6;--k-docs-ink:#1f5fae;
  --k-ok:#2a78d6;--k-ok-ink:#1f5fae;
  --k-block:#2a78d6;--k-block-ink:#1f5fae;
  --k-warn:#2a78d6;--k-warn-ink:#1f5fae;
}
.single-tone .alert{--tblr-alert-color:#1f5fae;--tblr-alert-bg:color-mix(in srgb,#2a78d6 8%,#fff);--tblr-alert-border-color:color-mix(in srgb,#2a78d6 25%,#fff);color:#1f5fae;background:color-mix(in srgb,#2a78d6 8%,#fff);border-color:color-mix(in srgb,#2a78d6 25%,#fff)}

body{font-family:var(--tblr-font-sans-serif);font-size:14px;font-feature-settings:normal}
.card{--tblr-card-border-radius:4px;--tblr-card-inner-border-radius:3px}
.modal{--tblr-modal-border-radius:4px;--tblr-modal-inner-border-radius:3px}
.dropdown-menu{--tblr-dropdown-border-radius:4px}
.pagination{--tblr-pagination-border-radius:4px}
.status-dot,.avatar-rounded{border-radius:50%}

/* Martian Mono, narrowed so keys and IPs sit comfortably in table columns */
.font-monospace,code,pre,kbd{font-family:var(--tblr-font-monospace)!important;font-stretch:87.5%}

/* keep absolutely positioned bits (e.g. .visually-hidden header labels) inside the table's own scroll area,
   or they push the whole page sideways on narrow screens */
.table-responsive{position:relative}

/* sentence-case table headers instead of Tabler's tracked capitals */
.table thead th{text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;color:var(--tblr-secondary)}

/* tokens: the signature element. A key, an IP or a blocked address always looks the same, wherever it appears */
.tok{display:inline-flex;align-items:center;gap:5px;padding:1px 7px;border-radius:4px;font-family:var(--tblr-font-monospace);font-stretch:87.5%;font-size:12.5px;line-height:1.7;white-space:nowrap}
.tok i{font-size:13px}
.tok-key{background:color-mix(in srgb,var(--k-key) 10%,#fff);color:var(--k-key-ink)}
.tok-ip{background:color-mix(in srgb,var(--k-ip) 10%,#fff);color:var(--k-ip-ink)}
.tok-block{background:color-mix(in srgb,var(--k-block) 10%,#fff);color:var(--k-block-ink)}
.tok-muted{background:var(--tblr-bg-surface-secondary);color:var(--tblr-secondary)}

/* section colours in the navbar, so each area keeps its hue as you move around */
.nav-link-icon.k-ok{color:var(--k-ok)}
.nav-link-icon.k-docs{color:var(--k-docs)}
.nav-link-icon.k-key{color:var(--k-key)}

/* icon tiles: solid fill in the kind's colour */
.tile{width:40px;height:40px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;color:#fff;font-size:20px}
.tile-key{background:var(--k-key)} .tile-ip{background:var(--k-ip)} .tile-docs{background:var(--k-docs)}
.tile-ok{background:var(--k-ok)} .tile-block{background:var(--k-block)} .tile-warn{background:var(--k-warn)}
.tile-muted{background:#6c7a91}

/* no underline on hover, anywhere (Tabler's a:hover would otherwise underline whole link rows) */
a:hover,a:hover *{text-decoration:none!important}

a:focus-visible,button:focus-visible,.btn:focus-visible,.nav-link:focus-visible{outline:2px solid var(--k-key);outline-offset:2px;box-shadow:none}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
