/* ======================================================================
   TTT Dashboard – basisstijl (tokens, knoppen, formulieren, dialogen, inlogpagina)
   Huisstijl Tech Talent Team: signaalgeel canvas, diepblauw, cyaan accent,
   dunne kolomlijnen, Inter voor koppen, JetBrains Mono voor data.
   ====================================================================== */
/* Lettertypes staan in de repo zelf (sneller, geen Google nodig) */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 900; font-display: swap; src: url('/assets/fonts/inter-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

:root {
  --yellow: #FAC200;
  --yellow-soft: #FFE27A;
  --ink: #0C2A52;
  --ink-2: #1D3F6E;
  --cream: #FFF8E1;
  --paper: #FFFFFF;
  --cyan: #00B4D8;
  --cyan-dark: #00718C;
  --danger: #B3261E;
  --ok: #0F7A4A;
  --muted: #3A4A66;
  --subtle: #56627A;
  --line: rgba(12, 42, 82, .16);
  --line-strong: rgba(12, 42, 82, .38);
  --display: 'Inter', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
  --shadow: 6px 6px 0 var(--cyan);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--body); color: var(--ink); background: var(--yellow); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
::selection { background: var(--ink); color: var(--yellow); }

/* Kolomlijnen zoals op techtalentteam.nl */
.columns-bg { position: fixed; inset: 0 2.5%; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 25%); }

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: .5rem .95rem;
  font: 700 .82rem var(--body); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 4px;
  cursor: pointer; text-decoration: none; transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn.primary { color: var(--yellow); background: var(--ink); }
.btn.primary:hover { box-shadow: 3px 3px 0 var(--cyan); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { box-shadow: 3px 3px 0 var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; transform: none; }
.btn.small { min-height: 32px; padding: .3rem .6rem; font-size: .75rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; font-size: 1rem; line-height: 1;
  color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; cursor: pointer; }
.icon-btn:hover { background: var(--yellow-soft); }

/* ---------- Formulieren ---------- */
.field { display: grid; gap: .3rem; margin-bottom: .9rem; }
.field > label, .field > .label { font: 700 .76rem var(--body); color: var(--muted); }
.field .hint { font: 400 .72rem var(--mono); color: var(--subtle); }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 42px; padding: .55rem .7rem; font: 400 .92rem var(--body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; }
.field textarea { min-height: 90px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 180, 216, .3); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.check { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-error { margin: .25rem 0 .8rem; padding: .55rem .7rem; font-size: .85rem; color: var(--danger); background: #FDECEA; border-left: 4px solid var(--danger); }

/* ---------- Dialoog ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 1rem;
  background: rgba(12, 42, 82, .55); animation: fade .18s ease-out; }
.modal { width: min(640px, 100%); max-height: calc(100dvh - 2rem); overflow: auto; background: var(--cream);
  border: 2px solid var(--ink); border-radius: 6px; box-shadow: 10px 10px 0 var(--cyan); animation: pop .22s var(--ease); }
.modal.wide { width: min(980px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; background: var(--cream); border-bottom: 2px solid var(--ink); }
.modal-head h2 { font-size: 1.25rem; }
.modal-body { padding: 1.2rem; }
.modal-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem;
  padding: .9rem 1.2rem; background: var(--cream); border-top: 1px solid var(--line-strong); }
.modal-foot .spacer { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- Meldingen ---------- */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1000; display: grid; gap: .5rem; justify-items: end; }
.toast { max-width: min(420px, calc(100vw - 2.5rem)); padding: .7rem 1rem; font: 700 .85rem var(--body); color: var(--yellow);
  background: var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--cyan); animation: toast-in .25s var(--ease); }
.toast.error { color: #fff; background: var(--danger); box-shadow: 4px 4px 0 var(--ink); }
.toast.warn { color: var(--ink); background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Inlogpagina ---------- */
.login { position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
.login-hero { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3.5rem); }
.login-brand { display: flex; align-items: center; gap: .75rem; font: 900 1rem var(--display); }
.login-brand img { width: 48px; height: 48px; object-fit: contain; }
.login-title { font-size: clamp(2.8rem, 7.5vw, 6.8rem); font-weight: 900; line-height: .92; letter-spacing: -.035em; }
.login-title .line { display: block; overflow: hidden; }
.login-title .line > span { display: block; animation: rise .9s var(--ease) both; }
.login-title .line:nth-child(2) > span { animation-delay: .08s; }
.login-title .line:nth-child(3) > span { animation-delay: .16s; }
.login-teams { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font: 400 .85rem var(--mono); color: var(--muted); }
.login-teams span::before { content: "■ "; color: var(--ink); }
.login-panel { position: relative; z-index: 1; display: grid; align-content: center; padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--ink); color: var(--cream); }
.login-panel h2 { font-size: 1.6rem; margin-bottom: .4rem; color: var(--yellow); }
.login-panel p { margin-bottom: 1.6rem; color: #C9D4E6; font-size: .92rem; }
.login-panel .field > label { color: #C9D4E6; }
.login-panel .field input { border-color: var(--cream); }
.login-panel .btn.primary { width: 100%; color: var(--ink); background: var(--yellow); border-color: var(--yellow); min-height: 48px; font-size: .95rem; }
.login-panel .btn.primary:hover { box-shadow: 4px 4px 0 var(--cyan); }
.login-panel .form-error { background: #3A1512; color: #FFD7D2; }
@keyframes rise { from { transform: translateY(105%); } }
@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { min-height: 44vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
