/* Istarix Video — reception theme.
 *
 * Used by the sign-in and reception screens. The older admin.css leaned on translucent
 * panels over a gradient, which made contrast unpredictable, and paired 13px secondary text
 * in #9eabc0 with it — legible on a monitor, not on a bright front desk. Everything here is
 * a SOLID surface with measured contrast, and secondary text is lightened and enlarged.
 *
 * Contrast against --surface (#182444):
 *   --text      #f4f7ff   ~14.5:1
 *   --text-soft #c8d4ea   ~9.2:1     (was ~5.9:1)
 *   --text-dim  #a3b2cd   ~6.3:1     smallest role, never below 14px
 */

:root {
  color-scheme: dark;

  --bg:          #0a1120;
  --surface:     #182444;
  --surface-2:   #1f2d52;
  --surface-in:  #101a33;   /* inputs, wells */
  --line:        #35477a;
  --line-strong: #4a5f96;

  --text:      #f4f7ff;
  --text-soft: #c8d4ea;
  --text-dim:  #a3b2cd;

  --accent:      #5590f7;
  --accent-hover:#6b9ff9;
  --accent-ink:  #ffffff;

  --good:     #3ad07d;
  --good-bg:  #0f3d28;
  --good-line:#1f6b45;
  --bad:      #ff6b6b;
  --bad-bg:   #45161d;
  --bad-line: #7a2b35;
  --warn:     #ffc861;
  --warn-bg:  #4a3512;

  --radius:   16px;
  --radius-lg:22px;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
/* An explicit `display` beats the UA's [hidden] rule, so guard it globally. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 22px; font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p  { margin: 0; }

/* Section label. Uppercase micro-type needs extra weight and tracking to stay readable. */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 800;
  color: #8fb8ff;
}

.muted { color: var(--text-soft); }
.dim   { color: var(--text-dim); font-size: 14px; }

/* ── Surfaces ─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ── Controls ─────────────────────────────────────────────────────────── */
button, input, select, textarea { font: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 18px; font-weight: 700; cursor: pointer;
  color: var(--text); background: var(--surface-2);
  border-color: var(--line-strong);
}
.btn:hover { border-color: #6079b5; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: var(--accent-hover); border-color: transparent; }
.btn-call { background: #1c8b52; color: #fff; border-color: #24a862; }
.btn-call:hover { background: #22a561; }
.btn-danger { background: var(--bad-bg); color: #ffc9c9; border-color: var(--bad-line); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-sm { padding: 8px 12px; font-size: 14px; }

a.btn { text-decoration: none; }

label { display: block; font-weight: 650; color: var(--text-soft); margin-bottom: 16px; font-size: 15px; }
label input, label textarea {
  display: block; width: 100%; margin-top: 7px;
  background: var(--surface-in); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
label input:focus, label textarea:focus { outline: none; border-color: var(--accent); }

/* ── Status pills ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 5px 11px;
  font-size: 13px; font-weight: 800; border: 1px solid transparent;
}
.pill-good { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.pill-idle { background: #262f45; color: #cbd6e8; border-color: #3c4864; }
.pill-warn { background: var(--warn-bg); color: var(--warn); border-color: #6b4a1b; }

/* ── Notices ──────────────────────────────────────────────────────────── */
.notice { padding: 12px 15px; border-radius: 12px; font-size: 15px; }
.notice-error { background: var(--bad-bg); color: #ffc9c9; border: 1px solid var(--bad-line); }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); top: 18px; z-index: 60;
  max-width: min(560px, 92vw); padding: 14px 22px; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--text); text-align: center; font-weight: 600;
  box-shadow: 0 16px 44px #000b;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
