/* Websitebeelden — stijl overgenomen van de Aanbesteding-assistent (AFAS Content Hub-look). */
:root {
  --navy: #222939;
  --bg: #F8FAFC;
  --zwart: #0F1419;
  --tekst: #374151;
  --grijs-500: #6B7280;
  --grijs-400: #9CA3AF;
  --grijs-200: #E5E7EB;
  --grijs-100: #F3F4F6;
  --lijn: rgba(15, 20, 25, .07);
  --blauw: #005FAA;
  --blauw2: #0074D0;
  --blauw-xl: #D7EAFF;
  --blauw-50: #F0F7FF;
  --blauw-rand: #B8D8F8;
  --oranje: #F59F39;
  --rood: #DC2626;
  --kaart-schaduw: 0 1px 3px rgba(0, 0, 0, .04), 0 8px 32px rgba(0, 95, 170, .045);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--tekst); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(0, 95, 170, .04) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(245, 159, 57, .03) 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
}
button, input, textarea { font-family: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1 { color: var(--zwart); letter-spacing: -0.035em; line-height: 1.05; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; }
.page { padding: 40px 48px 72px; max-width: 1400px; margin: 0 auto; }

/* Zijbalk */
.sidebar {
  width: 268px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--navy); color: #fff; display: flex; flex-direction: column;
}
.sidebar::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 200px; pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 116, 208, .2), transparent 65%);
}
.sidebar > * { position: relative; }
.brand { display: flex; align-items: center; gap: 12px; padding: 30px 26px 26px; }
.brand img { height: 26px; width: auto; }
.brand .sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .2); }
.brand .label { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.nav-label { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: rgba(255, 255, 255, .45); padding: 0 30px; margin: 10px 0; }
.nav { padding: 0 14px; display: flex; flex-direction: column; gap: 3px; }
.nav button {
  display: flex; align-items: center; gap: 13px; padding: 7px 12px; border-radius: 16px; border: 0; background: none; text-align: left;
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .6); transition: all .25s;
}
.nav .tile { width: 34px; height: 34px; border-radius: 11px; overflow: hidden; background: rgba(255, 255, 255, .05); flex-shrink: 0; transition: box-shadow .25s; }
.nav .tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; }
.nav small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .4); font-variant-numeric: tabular-nums; }
.nav button:hover { background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .9); }
.nav button.active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: 0 2px 20px rgba(0, 95, 170, .15), inset 0 1px 0 rgba(255, 255, 255, .06); }
.nav button.active .tile { box-shadow: 0 0 0 2px var(--blauw2), 0 2px 12px rgba(0, 95, 170, .4); }
.nav button.active .tile img { opacity: 1; }
.nav-label.later { margin-top: 26px; color: rgba(255, 255, 255, .3); }
.nav.minder button:not(.active) { color: rgba(255, 255, 255, .38); }
.nav.minder button:not(.active):hover { color: rgba(255, 255, 255, .75); }
.nav.minder button:not(.active) small { color: rgba(255, 255, 255, .28); }
.nav.minder button:not(.active) .tile img { opacity: .4; }
.side-foot { margin-top: auto; padding: 18px 14px 20px; border-top: 1px solid rgba(255, 255, 255, .05); }
.mock-chip { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #FCD9A8; padding: 2px 14px; }
.mock-chip .ico { width: 14px; height: 14px; color: var(--oranje); }

/* Kop */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head h1 { font-size: 32px; font-weight: 800; }
.page-head p { font-size: 14px; color: var(--grijs-500); margin-top: 8px; font-weight: 500; max-width: 640px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blauw); margin-bottom: 10px; font-variant-numeric: tabular-nums; }

/* Kaarten */
.card {
  background: rgba(255, 255, 255, .88); border-radius: 20px; border: 1px solid rgba(15, 20, 25, .05);
  box-shadow: var(--kaart-schaduw); padding: 24px;
}
.card-title { font-size: 16px; font-weight: 700; color: var(--zwart); margin-bottom: 4px; }
.card-sub { font-size: 13px; color: var(--grijs-500); margin-bottom: 14px; }
.grid { display: grid; gap: 20px; }
.g-main { grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.flex { display: flex; align-items: center; gap: 10px; }
.scheiding { height: 1px; background: var(--lijn); }

/* Voorbeeld */
.doek-wrap {
  position: relative; border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 240px; padding: 18px;
  background-color: #EEF2F7;
  background-image: linear-gradient(45deg, #E2E8F0 25%, transparent 25%), linear-gradient(-45deg, #E2E8F0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #E2E8F0 75%), linear-gradient(-45deg, transparent 75%, #E2E8F0 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
#doek { display: block; max-width: 100%; max-height: 66vh; cursor: grab; touch-action: none; box-shadow: 0 6px 24px rgba(15, 20, 25, .12); }
#doek.slepen { cursor: grabbing; }
.drop-hint {
  position: absolute; inset: 0; display: none; place-items: center; font-weight: 700; font-size: 16px; color: var(--blauw);
  background: rgba(240, 247, 255, .9); border: 2px dashed var(--blauw2); border-radius: 14px;
}
.doek-wrap.drag .drop-hint { display: grid; }
.doek-balk { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.zoom { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--grijs-500); }
.zoom input { flex: 1; accent-color: var(--blauw); }
.tip { font-size: 12.5px; color: var(--grijs-500); margin-top: 10px; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 14px; font-weight: 600; font-size: 13px;
  padding: 11px 20px; transition: all .25s cubic-bezier(.4, 0, .2, 1); white-space: nowrap; line-height: 1.2;
}
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--blauw), var(--blauw2)); color: #fff; box-shadow: 0 2px 8px rgba(0, 95, 170, .25), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 95, 170, .32), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-ghost { background: #fff; color: var(--tekst); border: 1px solid rgba(15, 20, 25, .09); }
.btn-ghost:hover { color: var(--blauw); border-color: var(--blauw-rand); background: var(--blauw-50); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 12px; }
.btn-blok { width: 100%; justify-content: center; padding: 13px 20px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* Formulier */
.dropzone {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: all .25s;
  border: 2px dashed var(--blauw-rand); border-radius: 16px; background: rgba(240, 247, 255, .7);
}
.dropzone:hover, .dropzone:focus-within { background: var(--blauw-50); border-color: var(--blauw2); }
.tile { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.tile.blue { background: linear-gradient(135deg, rgba(0, 95, 170, .1), rgba(56, 189, 248, .1)); color: var(--blauw); }
.dz-tekst { min-width: 0; }
.dz-tekst b { display: block; color: var(--zwart); font-size: 13.5px; }
.dz-tekst small { display: block; font-size: 12px; color: var(--grijs-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--zwart); }
.field > span em { font-style: normal; font-weight: 400; color: var(--grijs-400); }
.field small { font-size: 12px; color: var(--grijs-500); word-break: break-all; }
.input, .textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid rgba(15, 20, 25, .1); border-radius: 12px; font-size: 13.5px;
  background: #fff; color: var(--zwart); outline: none; transition: border-color .2s, box-shadow .2s;
}
.textarea { resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--blauw); box-shadow: 0 0 0 4px rgba(0, 95, 170, .08); }
#kleur { width: 44px; height: 40px; border: 1.5px solid rgba(15, 20, 25, .1); border-radius: 12px; background: #fff; padding: 3px; cursor: pointer; flex-shrink: 0; }
#kleur-hex { width: 110px; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; user-select: none; color: var(--zwart); }
.check input { width: 16px; height: 16px; accent-color: var(--blauw); }
.field small.fout-tekst { color: var(--rood); font-weight: 500; word-break: normal; }
.seg { display: inline-flex; background: var(--grijs-100); border-radius: 12px; padding: 3px; gap: 2px; align-self: flex-start; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--grijs-500); }
.seg button:hover { color: var(--zwart); }
.seg button.on { background: #fff; color: var(--zwart); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg button:disabled { cursor: default; opacity: .45; }

/* Melding */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120px); opacity: 0; visibility: hidden;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 500; font-size: 13px; z-index: 200;
  transition: all .3s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 12px 32px rgba(15, 20, 25, .25); max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.toast.fout { background: #7F1D1D; }

@media (max-width: 1180px) {
  .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; }
  .brand { padding: 18px 20px 12px; }
  .nav-label, .side-foot { display: none; }
  .nav { flex-direction: row; overflow-x: auto; padding: 0 12px 12px; }
  .nav button { flex-shrink: 0; }
  .page { padding: 26px 18px 56px; }
  .page-head h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
