/* Steil Status - huisstijl iteratie 2: cream/ink, coral primair, Bricolage. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-600.ttf") format("truetype");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-700.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
:root {
  --cream: oklch(98.4% 0.014 95deg);
  --ink: oklch(22% 0.03 277deg);
  --night: oklch(16.5% 0.028 277deg);
  --coral: oklch(67% 0.19 25deg);
  --coral-soft: oklch(95% 0.04 25deg);
  --sun: oklch(86% 0.16 92deg);
  --blue: oklch(62% 0.17 252deg);
  --mint: oklch(82% 0.13 168deg);
  --mint-soft: oklch(95% 0.05 168deg);
  --violet: oklch(62% 0.2 305deg);
  --panel: #ffffff;
  --line: oklch(92% 0.01 95deg);
  --muted: oklch(50% 0.02 277deg);
  --red-soft: oklch(95% 0.04 25deg);
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); background: var(--cream); font-size: 14px; line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- layout (admin) ---- */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 230px; flex-shrink: 0; background: var(--night); color: oklch(80% 0.02 277deg);
  display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 0 8px; }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; font-size: 16px; }
.brand-name { font-weight: 700; color: #fff; font-size: 15px; letter-spacing: -.01em; }
.sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar .nav-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .09em; color: oklch(55% 0.02 277deg); margin: 26px 12px 10px; }
.sidebar nav a { color: oklch(78% 0.02 277deg); padding: 10px 12px; border-radius: 9px; font-weight: 500; }
.sidebar nav a:hover { background: oklch(24% 0.03 277deg); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: var(--coral); color: #fff; }
.sidebar nav a.ext::after { content: " ↗"; color: var(--sun); font-size: 11px; }
.sidebar-foot { margin-top: auto; padding: 0 8px; font-size: 12px; color: oklch(60% 0.02 277deg);
  display: flex; flex-direction: column; gap: 4px; }

.content { flex: 1; min-width: 0; }
.topbar { border-bottom: 1px solid var(--line); background: var(--panel); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 32px; max-width: 1150px; margin: 0 auto; width: 100%; }
.topbar h1 { font-size: 21px; letter-spacing: -.015em; }
.topbar-actions { display: flex; gap: 10px; }
.page { padding: 28px 32px; max-width: 1150px; margin: 0 auto; width: 100%; }

/* ---- componenten ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px;
  font-weight: 600; cursor: pointer; font-family: inherit; transition: all .12s; }
.btn:hover { background: var(--cream); text-decoration: none; }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.primary:hover { filter: brightness(.94); }
.btn.danger { color: oklch(55% 0.19 25deg); border-color: oklch(88% 0.05 25deg); }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { padding: 6px 11px; font-size: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.card-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.card.alert { background: var(--coral-soft); border-color: oklch(88% 0.05 25deg); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 15px; }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tbody tr:last-child td { border-bottom: none; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pill.ok { background: var(--mint-soft); color: oklch(40% 0.09 168deg); }
.pill.fail { background: var(--coral-soft); color: oklch(48% 0.16 25deg); }
.pill.idle { background: oklch(94% 0.01 95deg); color: var(--muted); }
.pill.warn { background: oklch(96% 0.06 92deg); color: oklch(50% 0.1 92deg); }

.spark { width: 160px; height: 36px; color: var(--blue); display: block; }
.muted { color: var(--muted); font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

form.inline { display: inline; }
.form-grid { display: grid; gap: 14px; max-width: 460px; }
.form-grid label { font-size: 12.5px; font-weight: 600; display: grid; gap: 5px; }
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=datetime-local], textarea, select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit;
  background: #fff; width: 100%; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }

/* ---- modal (huisstijl, geen native confirm) ---- */
dialog { border: none; border-radius: var(--radius); padding: 24px; max-width: 380px;
  box-shadow: 0 18px 50px oklch(20% 0.03 277deg / .25); }
dialog::backdrop { background: oklch(18% 0.03 277deg / .45); }
dialog h3 { margin-bottom: 8px; font-size: 16px; }
dialog p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
dialog .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---- klantpagina ---- */
.client-wrap { max-width: 860px; margin: 0 auto; padding: 34px 22px 60px; }
.client-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.client-brand { display: flex; align-items: center; gap: 12px; }
.client-brand .brand-mark { background: var(--night); color: var(--cream); width: 38px; height: 38px;
  border-radius: 50%; display: grid; place-items: center; font-size: 17px; }
.client-brand strong { font-size: 17px; letter-spacing: -.01em; }
.auth-card { max-width: 400px; margin: 9vh auto 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px; box-shadow: 0 14px 44px oklch(20% 0.03 277deg / .08); }
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.flash.err { background: var(--coral-soft); color: oklch(45% 0.16 25deg); border-radius: 9px;
  padding: 10px 13px; font-size: 13px; margin-bottom: 14px; }
.umami-frame { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; }

/* zachte blobs op de achtergrond (klantzijde) */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blobs::before, .blobs::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.blobs::before { width: 420px; height: 420px; background: var(--mint); top: -140px; right: -100px; }
.blobs::after { width: 380px; height: 380px; background: var(--sun); bottom: -160px; left: -120px; }

@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar .nav-label, .sidebar-foot { display: none; }
  .page, .topbar-inner { padding-left: 18px; padding-right: 18px; }
}

/* Onderhoud en dagbalken */
.pill.maint { background: oklch(93% 0.05 252deg); color: oklch(44% 0.12 252deg); }
.maint-banner {
  background: oklch(95% 0.03 252deg); border: 1px solid oklch(88% 0.05 252deg);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px;
}
.daybar { display: flex; gap: 3px; height: 32px; align-items: stretch; }
.daybar .day { flex: 1; border-radius: 3px; background: oklch(93% 0.012 95deg);
  min-width: 2px; transition: transform .1s ease; }
.daybar .day:hover { transform: scaleY(1.12); }
.daybar .day.ok { background: var(--mint); }
.daybar .day.warn { background: var(--sun); }
.daybar .day.fail { background: var(--coral); }
.daybar-range { display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 11.5px; color: var(--muted); }

/* klassieke status-look per onderdeel */
.uptime-list { padding: 4px 18px 14px; }
.uptime-row { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.uptime-row:last-child { border-bottom: none; }
.uptime-head { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; }
.uptime-name { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.uptime-side { display: flex; align-items: center; gap: 12px; }
.uptime-side .spark { width: 110px; height: 26px; opacity: .8; }
.uptime-pct { font-weight: 700; font-size: 14px; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; }

/* Voorkeuren */
label.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.checkbox input { margin-top: 4px; }

/* Portaal-tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.tabs a { padding: 8px 14px; color: var(--muted); font-weight: 600; font-size: 13.5px;
  border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--coral); }

/* Officieel Steil-woordmerk */
.wordmark { font-weight: 700; font-size: 24px; letter-spacing: -0.04em;
  line-height: 1; color: var(--ink); user-select: none; }
.wordmark .dot { color: var(--coral); }
.sidebar .wordmark { color: #fbf3e4; font-size: 21px; }
.daybar-row td { padding-top: 0; }
