/* ==========================================================================
   Kiddo'z Kantoor — beheer van de website. Kleuren van het Kiddo'z-logo.
   ========================================================================== */

:root {
    --colorA: #eba552;   /* oranje */
    --colorB: #e1959b;   /* roze */
    --colorC: #71578d;   /* paars */
    --colorD: #9ec642;   /* groen */
    --colorE: #488a9a;   /* blauwgroen */
    --colorF: #fed45e;   /* geel */
    --colorG: #e65c78;   /* rood-roze */

    --ink: #1c2530;
    --ink-soft: #4a5562;
    --paper: #f6f3ee;
    --card: #fff;
    --line: #e7e0d5;
    --good: #4f7f1a;
    --good-bg: #eef7dc;
    --bad: #c23b58;
    --bad-bg: #fde9ee;
    --warn-bg: #fdf0dc;

    --radius: 12px;
    --shadow: 0 1px 0 rgba(28, 37, 48, .05), 0 4px 14px rgba(28, 37, 48, .06);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --side-w: 15rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; }
a { color: var(--colorC); }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
[hidden] { display: none !important; }

/* ---------- Opbouw: menu links, inhoud rechts ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }

.side {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; gap: .25rem;
    padding: 1rem .75rem;
    background: var(--colorC); color: #fff;
    overflow-y: auto;
}
.side__brand { display: block; padding: .5rem .5rem 1rem; text-decoration: none; color: #fff; }
.side__brand img { display: block; width: 100%; max-width: 11rem; background: #fff; border-radius: 10px; padding: .4rem .6rem; }
.side__brand span { display: block; margin-top: .4rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; opacity: .85; }

.side .nav {
    display: flex; align-items: center; gap: .6rem;
    width: 100%; padding: .55rem .7rem;
    border: 0; border-radius: 8px; background: none;
    color: #fff; font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
}
.side .nav:hover { background: rgba(255, 255, 255, .12); }
.side .nav.is-active { background: #fff; color: var(--colorC); }
.side .nav:focus-visible { outline: 2px solid var(--colorF); outline-offset: 1px; }
.side .nav__icon { width: 1.4rem; text-align: center; }
.side .nav--soon { opacity: .55; cursor: default; }
.side .nav--soon:hover { background: none; }
.side .nav small { margin-left: auto; font-size: .7rem; font-weight: 700; opacity: .9; }
.side__spacer { flex: 1; }
.side__user { padding: .5rem .7rem; font-size: .85rem; opacity: .85; }

.badge {
    margin-left: auto; min-width: 1.3rem; padding: 0 .4rem;
    border-radius: 999px; background: var(--colorF); color: var(--ink);
    font-size: .75rem; font-weight: 800; text-align: center;
}

.main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 3rem; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-head p { margin: 0; color: var(--ink-soft); }

/* Mobiel: menu als balk bovenaan, uitklapbaar */
.side-toggle { display: none; }
@media (max-width: 800px) {
    .shell { grid-template-columns: 1fr; }
    .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .5rem .75rem; }
    .side__brand { padding: .25rem; }
    .side__brand img { max-width: 7rem; }
    .side__brand span { display: none; }
    .side-toggle { display: block; margin-left: auto; border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 8px; padding: .4rem .8rem; font: inherit; font-weight: 700; }
    .side .nav, .side__spacer, .side__user { display: none; }
    .side.is-open .nav, .side.is-open .side__user { display: flex; }
    .main { padding-top: 1.25rem; }
}

/* ---------- Bouwstenen ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.4rem; }
.card + .card { margin-top: 1rem; }
.stack > * + * { margin-top: 1rem; }

.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.1rem; border: 0; border-radius: 999px;
    background: var(--colorC); color: #fff;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--colorF); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn--ghost { background: #fff; color: var(--colorC); box-shadow: inset 0 0 0 2px var(--colorC); }
.btn--danger { background: var(--bad); }
.btn--small { padding: .35rem .8rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }

.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; margin-bottom: .3rem; font-weight: 700; font-size: .9rem; }
.field small { display: block; margin-top: .3rem; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="date"], .field select, .field textarea {
    width: 100%; padding: .6rem .75rem;
    border: 2px solid var(--line); border-radius: 10px; background: #fff;
    font: inherit; color: inherit;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--colorC); }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 600; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }

.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eee8df; color: var(--ink-soft); white-space: nowrap; }
.pill--good { background: var(--good-bg); color: var(--good); }
.pill--warn { background: var(--warn-bg); color: #8a5a17; }
.pill--bad { background: var(--bad-bg); color: var(--bad); }

.hint { color: var(--ink-soft); font-size: .9rem; }
.error-text { color: var(--bad); font-weight: 600; min-height: 1.2em; }

/* Lijsten (nieuws, gebruikers) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.row-link {
    display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1rem; align-items: center;
    padding: .8rem .25rem; color: inherit; text-decoration: none;
}
.row-link:hover { background: #faf7f2; }
.row-link small { color: var(--ink-soft); }
.row-link strong { display: block; }
.rows__divider { padding: .6rem .25rem .3rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
@media (max-width: 600px) { .row-link { grid-template-columns: 1fr; gap: .2rem; } }

table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: .6rem .5rem; border-top: 1px solid var(--line); vertical-align: middle; }
table.list th { border-top: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }

/* Editor met voorbeeld ernaast */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } }
.preview-label { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }

/* Voorbeeld zoals op de site (zelfde opmaak als bso-2026/css/nieuws.css) */
.news-item { padding: 1rem 1.25rem 1rem 1.4rem; border-radius: var(--radius); background: #fff; box-shadow: 0 2px 8px rgba(28, 37, 48, .08); border-left: 6px solid var(--colorA); }
.news-item time { display: inline-block; margin-bottom: .25rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.news-item h3 { margin: 0 0 .35rem; font-size: 1.1rem; line-height: 1.3; }
.news-item p { margin: 0; }
.news-item p + p { margin-top: .5rem; }
.site-bg { padding: 1rem; border-radius: var(--radius); background: #ecf4dc; }

/* Publiceren */
.sections { list-style: none; margin: 0; padding: 0; }
.sections li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.sections li:first-child { border-top: 0; }

/* Scholen & tijden: de time-block-manager in zijn eigen venster */
.frame { width: 100%; height: calc(100vh - 12rem); min-height: 32rem; border: 0; border-radius: var(--radius); background: #f5f5f5; box-shadow: var(--shadow); }

/* Binnenkort */
.soon { text-align: center; padding: 3rem 1.5rem; }
.soon__icon { font-size: 3rem; }

/* Inloggen */
.auth { max-width: 26rem; margin: 10vh auto; padding: 0 1rem; }
.auth .card { padding: 1.75rem; }
.auth__logo { display: block; width: 12rem; margin: 0 auto 1rem; }
.auth h1 { text-align: center; font-size: 1.3rem; margin-bottom: 1.25rem; }

/* Meldingen */
.toast {
    position: fixed; left: 50%; bottom: 1.5rem; z-index: 50; transform: translateX(-50%);
    max-width: calc(100vw - 2rem); padding: .7rem 1.2rem; border-radius: 999px;
    background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.toast--error { background: var(--bad); }
.loading { color: var(--ink-soft); }

/* Teksten */
.row-link--text { grid-template-columns: 1fr auto; }
.site-text { padding: 1rem 1.25rem; border-radius: var(--radius); background: rgba(255, 255, 255, .85); }
.site-text p { margin: 0 0 .9rem; }
.site-text ul { margin: 0 0 .9rem; padding-left: 1.3rem; }
.site-text > :last-child { margin-bottom: 0; }
.site-text .facts__more, .site-text .kennismaken__note { font-size: .9rem; color: var(--ink-soft); }

/* Tarieven */
.rates-table input { width: 100%; min-width: 6rem; padding: .35rem .5rem; border: 2px solid var(--line); border-radius: 8px; font: inherit; }
.rates-table input:focus { outline: none; border-color: var(--colorC); }
.rates-table td { padding: .3rem .4rem; }
.icon-btn { border: 0; background: none; cursor: pointer; font-size: 1rem; padding: .3rem; border-radius: 6px; }
.icon-btn:hover { background: var(--bad-bg); }
.paste { margin: .5rem 0 1rem; }
.paste summary { cursor: pointer; font-weight: 700; color: var(--colorC); }
.paste textarea { width: 100%; padding: .5rem; border: 2px solid var(--line); border-radius: 10px; font: .9rem ui-monospace, monospace; }
