/* Beheerinterface Zolderkolder */
:root {
    --rood: #8a1f2b;
    --rood-donker: #6c141e;
    --op-rood: #ffffff;
    --op-rood-donker: #ffffff;
    --goud: #c79a3c;
    --inkt: #261b1b;
    --grijs: #6f6760;
    --rand: #e6e0d7;
    --bg: #f3efe8;
    --wit: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--inkt); }
a { color: var(--rood); }

.admin-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-side {
    width: 248px; flex-shrink: 0; background: var(--inkt); color: #d9cfc6;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; gap: .7rem; align-items: center; padding: 1.3rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand .brand-mark,
.admin-brand svg.brand-mark { width: 42px; height: 42px; flex-shrink: 0; display: block; border-radius: 10px; }
.admin-brand strong { display: block; color: #fff; }
.admin-brand small { color: #b7aaa0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.admin-side nav { display: flex; flex-direction: column; padding: 1rem .75rem; gap: .15rem; flex: 1; }
.admin-side nav a { color: #d9cfc6; text-decoration: none; padding: .65rem .85rem; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side nav a.active { background: var(--rood); color: var(--op-rood); }
.admin-side-foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .5rem; }
.admin-side-foot a { color: #b7aaa0; text-decoration: none; font-size: .9rem; }
.admin-side-foot a:hover { color: #fff; }

/* Main */
.admin-main { flex: 1; min-width: 0; }
.admin-top { background: var(--wit); border-bottom: 1px solid var(--rand); padding: 1.1rem 1.75rem; display: flex; align-items: center; justify-content: space-between; }
.admin-top h1 { margin: 0; font-size: 1.4rem; }
.admin-user { color: var(--grijs); font-size: .9rem; }
.admin-content { padding: 1.75rem; max-width: 1100px; }

/* Cards / panelen */
.panel { background: var(--wit); border: 1px solid var(--rand); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.panel h2 { margin-top: 0; font-size: 1.2rem; }
.panel-sectie { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rand); }
.panel-sectie:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.panel-sectie h3 { margin: 0 0 1rem; font-size: .95rem; font-weight: 600; color: var(--grijs); text-transform: uppercase; letter-spacing: .06em; }
.panel-sectie .field:last-child { margin-bottom: 0; }

/* Statistiek-tegels */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.tile { background: var(--wit); border: 1px solid var(--rand); border-radius: 12px; padding: 1.25rem; }
.tile .num { font-size: 2rem; font-weight: 700; color: var(--rood); }
.tile .lbl { color: var(--grijs); font-size: .9rem; }
.tile a { font-size: .85rem; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; background: var(--wit); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rand); border-radius: 12px; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--rand); font-size: .92rem; vertical-align: top; }
th { background: #faf7f2; font-weight: 600; color: var(--grijs); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.acties { white-space: nowrap; }

/* Formulieren */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { color: var(--grijs); font-weight: 400; font-size: .82rem; }
.field input, .field select, .field textarea {
    font-family: inherit; font-size: .95rem; padding: .6rem .7rem;
    border: 1.5px solid var(--rand); border-radius: 8px; background: #fff; color: var(--inkt);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rood); }
.field textarea { min-height: 90px; resize: vertical; }

/* Eenvoudige tekst-editor (vet / cursief) — één werkbalk bovenaan */
.editor-uitleg {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 16px rgba(38, 27, 27, .08);
}
.editor-uitleg h2 { margin: 0 0 .75rem; font-size: 1.05rem; }
.stijl-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.25rem 2rem;
}
.stijl-blok h3 { margin: 0 0 .4rem; font-size: .82rem; font-weight: 600; color: var(--grijs); text-transform: uppercase; letter-spacing: .04em; }
.stijl-kleurrij { display: flex; align-items: center; gap: .5rem; }
.stijl-kleurkiezer {
    width: 56px; height: 36px; padding: .1rem;
    border: 1.5px solid var(--rand); border-radius: 6px; background: #fff; cursor: pointer;
}
.stijl-kleurcode {
    padding: .35rem .55rem; border: 1.5px solid var(--rand); border-radius: 6px; background: #fff;
    font-size: .82rem;
}
.stijl-kleur-tip { margin: .35rem 0 0; font-size: .75rem; color: var(--grijs); max-width: 280px; line-height: 1.35; }
.stijl-beeldmerk-preview { display: inline-flex; align-items: center; margin-left: .25rem; }
.stijl-beeldmerk-preview svg { width: 36px; height: 36px; }
.stijl-scheiding { border-top: 1px solid var(--rand); margin: .75rem 0; }
.stijl-subkop { margin: 0 0 .45rem; font-size: .82rem; font-weight: 600; color: var(--grijs); text-transform: uppercase; letter-spacing: .04em; }

.logo-keuze-compact { display: flex; gap: .5rem; }
.logo-keuze-klein {
    display: flex; flex-direction: column; align-items: center; gap: .25rem;
    padding: .4rem .55rem; border: 1.5px solid var(--rand); border-radius: 8px;
    background: #fff; cursor: pointer; min-width: 72px;
}
.logo-keuze-klein:has(input:checked) { border-color: var(--rood); background: #fffafa; }
.logo-keuze-klein input { position: absolute; opacity: 0; pointer-events: none; }
.logo-keuze-klein .logo-keuze-preview {
    display: grid; place-items: center; width: 64px; height: 32px;
    padding: .15rem; background: #faf7f1; border-radius: 4px;
}
.logo-keuze-klein .logo-keuze-preview img { max-width: 100%; max-height: 28px; width: auto; height: auto; }
.logo-keuze-klein .logo-keuze-label { font-size: .72rem; font-weight: 500; color: var(--inkt); }
.logo-keuze-mist { color: var(--grijs); font-size: .7rem; }

.stijl-meer { margin-top: .45rem; font-size: .8rem; }
.stijl-meer summary { cursor: pointer; color: var(--grijs); user-select: none; }
.stijl-meer summary:hover { color: var(--rood); }
.stijl-meer-inhoud { display: flex; flex-direction: column; gap: .35rem; margin-top: .45rem; padding-top: .45rem; }
.stijl-bestand { font-size: .82rem; max-width: 280px; }

.stijl-homepage-panel { margin-bottom: 1.5rem; }
.stijl-homepage-panel h2 { font-size: 1.05rem; margin-top: 0; }
.stijl-homepage-rij {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.stijl-homepage-keuze { display: flex; flex-wrap: wrap; gap: .65rem 1rem; }
.stijl-homepage-upload { display: flex; align-items: center; gap: .65rem; }
.stijl-hero-preview { max-height: 40px; width: auto; border: 1px solid var(--rand); border-radius: 6px; background: #fff; padding: .2rem; }
.stijl-breedte { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 180px; max-width: 320px; }
.stijl-breedte-label { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.stijl-breedte input[type="range"] { flex: 1; }
.stijl-breedte code { font-size: .82rem; white-space: nowrap; }

.logo-keuze-inline { font-weight: 400; font-size: .88rem; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }

.editor-werkbalk {
    display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
    padding: .55rem .65rem; background: #faf7f1; border: 1px solid var(--rand); border-radius: 8px;
}
.editor-werkbalk.is-actief { border-color: var(--rood); background: #fff; }
.editor-werkbalk-label { font-size: .85rem; font-weight: 600; color: var(--grijs); margin-right: .15rem; }
.editor-werkbalk-hint { margin-left: auto; font-size: .82rem; color: var(--grijs); font-style: italic; }
.editor-aa { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; }

@media (max-width: 720px) {
    .editor-uitleg { padding: .65rem .85rem; }
    .editor-werkbalk-hint { margin-left: 0; width: 100%; font-size: .78rem; }
    .stijl-compact { gap: .85rem; }
}

.editor { border: 1.5px solid var(--rand); border-radius: 8px; overflow: hidden; background: #fff; transition: border-color .15s ease; }
.editor:focus-within { border-color: var(--rood); box-shadow: 0 0 0 3px rgba(138, 31, 43, .08); }
.editor-balk { display: flex; gap: .25rem; padding: .35rem; background: #faf7f1; border-bottom: 1px solid var(--rand); }
.editor-knop {
    min-width: 32px; height: 30px; padding: 0 .55rem; cursor: pointer;
    border: 1px solid var(--rand); border-radius: 6px; background: #fff; color: var(--inkt);
    font-size: .95rem; line-height: 1;
}
.editor-knop:hover { background: #f0ebe2; }
.editor-select {
    height: 30px; border: 1px solid var(--rand); border-radius: 6px; background: #fff;
    color: var(--inkt); font-size: .85rem; padding: 0 .35rem; cursor: pointer;
}
.editor-kleur {
    display: inline-flex; align-items: center; justify-content: center; position: relative;
    width: 32px; height: 30px; border: 1px solid var(--rand); border-radius: 6px;
    background: #fff; cursor: pointer; overflow: hidden;
}
.editor-kleur span { font-weight: 700; font-size: .9rem; line-height: 1; pointer-events: none; }
.editor-kleur input[type="color"] {
    position: absolute; left: 0; bottom: -2px; width: 100%; height: 8px; padding: 0; border: 0;
    background: none; cursor: pointer;
}
.editor-kleur-goud {
    min-width: 32px; height: 30px; padding: 0 .55rem; cursor: pointer;
    border: 1px solid var(--rand); border-radius: 6px; background: #fff; color: var(--inkt);
    font-size: .95rem; line-height: 1;
}
.editor-kleur-goud:hover { background: #f0ebe2; }
.editor-kleur-goud span { font-weight: 700; font-size: .9rem; line-height: 1; pointer-events: none; }
.editor-vak { padding: .6rem .7rem; font-size: .95rem; line-height: 1.5; min-height: 46px; outline: none; }
.editor-vak-enkel { min-height: 0; }
.editor-vak:empty::before { content: attr(data-placeholder); color: var(--grijs); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* Knoppen */
.btn { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid transparent; border-radius: 8px; padding: .55rem 1rem; font-weight: 600; font-family: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; line-height: 1; }
.btn-primary { background: var(--rood); color: var(--op-rood); }
.btn-primary:hover { background: var(--rood-donker); color: var(--op-rood-donker); }
.btn-outline { background: #fff; border-color: var(--rand); color: var(--inkt); }
.btn-outline:hover { border-color: var(--rood); color: var(--rood); }
.btn-danger { background: #fff; border-color: #e7bdb8; color: #b3261e; }
.btn-danger:hover { background: #fdecea; }
.btn-sm { padding: .35rem .7rem; font-size: .82rem; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

/* Badges / status */
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.badge-jeugd { background: #e7f1e8; color: #1c7a3f; }
.badge-volwassenen { background: #e7f0fa; color: var(--rood); }
.badge-speciaal { background: #f6ecd6; color: #8a5a00; }
.badge-nieuw { background: #eef2fb; color: #2f4a8a; }
.badge-bevestigd, .badge-behandeld, .badge-betaald { background: #e7f4ec; color: #1c6b3a; }
.badge-geannuleerd { background: #fdecea; color: #b3261e; }
.badge-wacht_op_betaling { background: #fff3da; color: #8a5a00; }
.badge-muted { background: #efe9e0; color: var(--grijs); }

/* Flash */
.flash { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 500; }
.flash-succes { background: #e7f4ec; color: #1c6b3a; border: 1px solid #b7e0c6; }
.flash-fout { background: #fdecea; color: #a3231b; border: 1px solid #f3c2bd; }
.flash-info { background: #eef2fb; color: #2f4a8a; border: 1px solid #c5d2ef; }

.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.muted { color: var(--grijs); }
.thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; }
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.foto-card { background: var(--wit); border: 1px solid var(--rand); border-radius: 10px; overflow: hidden; }
.foto-card img { width: 100%; height: 120px; object-fit: cover; }
.foto-card .meta { padding: .5rem .6rem; font-size: .8rem; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(140deg, var(--rood-donker), var(--rood)); }
.login-card { background: #fff; border-radius: 16px; padding: 2rem; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-card .brand-mark { width: 52px; height: 52px; display: grid; place-items: center; background: var(--rood); color: var(--goud); border-radius: 12px; font-weight: 700; margin: 0 auto 1rem; }
.login-card h1 { text-align: center; font-size: 1.4rem; margin: 0 0 1.5rem; }
