/* Cinewall dashboard — Apple-achtige "glass" stijl.
   Echte vervaging (backdrop-filter) alleen op bedieningslagen: bovenbalk, segmenten, paneel, melding.
   Datakaarten zijn stevig en licht doorschijnend: beter leesbaar en vloeiend op Android. */
:root {
  --bg: #070b16;
  --tekst: #f4f6fb; --zacht: rgba(235,240,250,.62); --zachter: rgba(235,240,250,.42);
  --lijn: rgba(255,255,255,.10); --lijn2: rgba(255,255,255,.18);
  --kaart: rgba(255,255,255,.055); --kaart-hover: rgba(255,255,255,.085);
  --goed: #34d399; --slecht: #fb7185; --let: #fbbf24; --blauw: #7dd3fc; --paars: #c4b5fd; --goud: #d4af37;
  --r: 22px; --r-s: 14px;
  --veer: cubic-bezier(.2,.8,.2,1); --veer-op: cubic-bezier(.34,1.56,.64,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.45 var(--font); color: var(--tekst); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-synthesis: none; text-rendering: optimizeLegibility;
}
/* sfeer: vaste, zachte kleurvlekken (geen vervaging nodig) */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vmax 32vmax at 12% 8%, rgba(56,189,248,.22), transparent 70%),
    radial-gradient(40vmax 34vmax at 92% 14%, rgba(168,85,247,.20), transparent 70%),
    radial-gradient(48vmax 36vmax at 50% 108%, rgba(20,184,166,.16), transparent 70%);
}
.glas {
  background: rgba(20,26,44,.72);
  border: 1px solid var(--lijn2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.35);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glas { background: rgba(20,26,44,.48); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); }
}
.kaart {
  position: relative; border-radius: var(--r); padding: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid var(--lijn);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.25);
  transition: transform .26s var(--veer), border-color .2s ease, box-shadow .26s ease, background .2s ease;
}
/* lichtvlek die de muis volgt */
.kaart::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.09), transparent 60%);
  transition: opacity .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .kaart:hover { transform: translateY(-2px); border-color: var(--lijn2); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 40px rgba(0,0,0,.35); }
  .kaart:hover::after { opacity: 1; }
}
.knop {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--lijn2);
  background: rgba(255,255,255,.08); color: var(--tekst); font: 600 15px/1 var(--font); text-decoration: none;
  cursor: pointer; transition: transform .18s var(--veer), background .18s ease, border-color .18s ease;
}
.knop:hover { background: rgba(255,255,255,.14); }
.knop:active { transform: scale(.96); }
.knop.primair { background: rgba(125,211,252,.22); border-color: rgba(125,211,252,.5); }
.knop.goed { background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.5); }
.knop:disabled { opacity: .5; pointer-events: none; }
.knop.rond { width: 44px; padding: 0; }
.knop svg { width: 18px; height: 18px; }
.logo {
  width: 40px; height: 40px; flex: none; border-radius: 12px; background: #000; color: var(--goud);
  display: grid; place-items: center; font: 800 21px/1 var(--font-d); border: 1px solid rgba(212,175,55,.45);
  box-shadow: 0 6px 18px rgba(212,175,55,.15);
}
/* inloggen */
body.login { display: grid; place-items: center; min-height: 100dvh; padding: 16px; }
.loginbox { width: min(380px, 100%); display: grid; gap: 14px; padding: 28px; border-radius: 26px; animation: op .5s var(--veer) both; }
.loginbox h1 { font: 700 26px/1.15 var(--font-d); margin: 4px 0 2px; letter-spacing: -.02em; }
.loginbox label { display: grid; gap: 6px; font-size: 14px; color: var(--zacht); }
.loginbox input { font: 16px var(--font); color: var(--tekst); background: rgba(0,0,0,.28); border: 1px solid var(--lijn2); border-radius: 12px; padding: 12px 14px; min-height: 46px; }
.loginbox input:focus { outline: none; border-color: rgba(125,211,252,.7); box-shadow: 0 0 0 4px rgba(125,211,252,.15); }
.fout { color: var(--slecht); min-height: 1.2em; margin: 0; font-size: 14px; }
@keyframes op { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
