:root{
  /* Licht thema als standaard */
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #0b0d12;
  --color-muted: #667085;
  --accent1: #3f81c3;   /* jouw accent 1 */
  --accent2: #fac412;   /* jouw accent 2 */
  --radius: 14px;
  --gap: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --font-ui: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
}

/* Donker thema (optioneel): voeg .dark op <html> toe */
html.dark{ --color-bg:#0f1115; --color-surface:#171a21; --color-text:#e8eaf0; --color-muted:#9aa4b2; }

html,body{ height:100%; }
body{
  margin:0; background:var(--color-bg); color:var(--color-text); font-family:var(--font-ui);
}

.container{ max-width:1100px; margin:0 auto; padding:24px; }
.h2{ font-size:1.5rem; margin:0 0 1rem; }
.h3{ font-size:1.2rem; margin:1.5rem 0 .75rem; }

.btn{ display:inline-flex; align-items:center; gap:.5rem; border-radius:var(--radius); padding:.6rem 1rem; border:1px solid transparent; background:var(--color-surface); color:var(--color-text); box-shadow:var(--shadow); cursor:pointer; }
.btn:hover{ border-color:rgba(255,255,255,.15); }
.btn-primary{ background:var(--accent1); color:#0b0d12; }
.btn-secondary{ background:var(--accent2); color:#0b0d12; }
.btn-danger{ background:#b3261e; color:#fff; }
.btn-small{ padding:.35rem .6rem; border-radius:10px; }
.inline{ display:inline; }

.admin-header{ position:sticky; top:0; background:var(--color-surface); box-shadow:var(--shadow); z-index:20; }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:var(--gap); }
.nav .brand{ color:var(--color-text); text-decoration:none; font-weight:700; }
.nav .menu{ list-style:none; display:flex; gap:var(--gap); margin:0; padding:0; }
.nav .menu a{ color:var(--color-text); text-decoration:none; opacity:.9; }

.table{ width:100%; border-collapse:separate; border-spacing:0; background:var(--color-surface); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.table th, .table td{ padding:.75rem 1rem; border-bottom:1px solid rgba(255,255,255,.08); }
.table thead th{ background:rgba(255,255,255,.04); text-align:left; font-weight:600; }

.grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--gap); }
.grid.grid-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
/* 1/3 + 2/3 split */
.split-13-23{ display:grid; grid-template-columns: 1fr 2fr; gap:var(--gap); align-items:start; }
label{ display:grid; gap:.4rem; font-size:.95rem; color:var(--color-muted); }
input, select{ background:#ffffff; color:var(--color-text); border:1px solid rgba(0,0,0,.12); border-radius:0; padding:.45rem .55rem; }
textarea{ background:#ffffff; color:var(--color-text); border:1px solid rgba(0,0,0,.12); border-radius:0; padding:.55rem .6rem; }

/* buttons */
.btn{ display:inline-flex; align-items:center; gap:.45rem; cursor:pointer; border:1px solid rgba(0,0,0,.18); background:#f6f7f9; color:#0b0d12; padding:.4rem .7rem; border-radius:0; line-height:1; text-decoration:none; }
.btn svg{ width:16px; height:16px; display:inline-block; }
.btn-primary{ background:#0d47a1; color:#fff; border-color:#0b3b86; }
.btn-secondary{ background:#e9ecf1; color:#0b0d12; border-color:#cfd6df; }
.btn-danger{ background:#c62828; color:#fff; border:none; }
.btn:hover{ filter:brightness(.98); }
.btn:active{ filter:brightness(.95); }
.btn-small{ padding:.35rem .55rem; font-size:.92rem; }

/* admin gallery */
.thumb-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap:12px; }
.thumb{ background:var(--color-surface); border:1px solid rgba(0,0,0,.1); padding:8px; }
.thumb img{ width:100%; height:120px; object-fit:cover; display:block; border:1px solid rgba(0,0,0,.06); }
.thumb form{ display:grid; gap:6px; margin-top:6px; }
.thumb input[type="text"], .thumb select { width:100%; max-width:100%; }
.thumb .actions{ display:flex; gap:8px; align-items:center; }
.btn-small{ padding:.35rem .6rem; font-size:.9rem; }
.btn-danger{ background:#c62828; color:#fff; border:none; }
.thumb.dragging{ opacity:.6; }
.thumb.drop-target{ outline:2px dashed var(--accent1); }
.inline{ display:inline-block; }

/* attachments */
.file-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }
.file-card{ background:var(--color-surface); border:1px solid rgba(0,0,0,.1); padding:10px; }
.file-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.file-icon{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:28px; font-size:.8rem; font-weight:700; background:rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.1); }
.file-card form{ display:grid; gap:6px; }
.file-card input[type="text"]{ width:100%; max-width:100%; }
.file-card.dragging{ opacity:.6; }

.flash{ margin:1rem 0; padding:.7rem 1rem; background:#1b3a20; color:#c6f0cf; border:1px solid #295f39; border-radius:10px; }
.toolbar{ margin:1rem 0; display:flex; justify-content:flex-end; }

/* login */
body.login{ display:grid; place-items:center; }
.login-card{ width:min(420px, 92vw); background:var(--color-surface); padding:2rem; border-radius:var(--radius); box-shadow:var(--shadow); }
.login-card h1{ margin-top:0; }
