/* =========================================
   BelNotities - Hoofdstijlblad
   Kleurenpalet gebaseerd op IT-Wizzard oranje
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange-900: #2a0f00;
    --orange-700: #d95518;
    --orange-500: #FC6828;
    --orange-200: #fdd0b0;
    --orange-50:  #fff5ef;
    --accent:   #FC6828;
    --grey-900: #1e2328;
    --grey-700: #3d4550;
    --grey-500: #6b7280;
    --grey-300: #d1d5db;
    --grey-100: #f3f6f9;
    --white:    #ffffff;
    --success:  #16a34a;
    --danger:   #dc2626;
    --warning:  #d97706;
    --radius:   8px;
    --shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: var(--grey-700);
    background: var(--grey-100);
    min-height: 100vh;
}

/* ---- Topbalk ---- */
.topbar {
    background: var(--orange-900);
    color: var(--white);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.topbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.topbar-logo {
    height: 30px;
    width: auto;
    display: block;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 5px;
}
.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-nav a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.topbar-nav a:hover,
.topbar-nav a.actief { background: rgba(252,104,40,.25); color: var(--white); }
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.8);
}
.topbar-user a { color: rgba(255,255,255,.6); font-size: 13px; }
.topbar-user a:hover { color: var(--white); }

/* ---- Layout ---- */
.container { max-width: 960px; margin: 0 auto; padding: 28px 20px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }

/* ---- Kaart ---- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--grey-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h2 { font-size: 17px; font-weight: 600; color: var(--grey-900); }
.card-body { padding: 24px; }

/* ---- Formulier ---- */
.form-groep { margin-bottom: 18px; }
.form-groep label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.form-groep input,
.form-groep textarea,
.form-groep select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--grey-300);
    border-radius: 6px;
    font-size: 15px;
    color: var(--grey-900);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.form-groep input:focus,
.form-groep textarea:focus,
.form-groep select:focus {
    outline: none;
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(252,104,40,.15);
}
.form-groep textarea { resize: vertical; min-height: 100px; }
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--orange-500);
    cursor: pointer;
}
.form-check label { font-size: 15px; font-weight: 500; color: var(--grey-700); cursor: pointer; }
.form-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-rij { grid-template-columns: 1fr; } }

/* ---- Knoppen ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter .15s, transform .1s;
    line-height: 1;
}
.btn:active { transform: scale(.98); }
.btn-primary   { background: var(--orange-500); color: var(--white); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-danger    { background: var(--danger); color: var(--white); }
.btn-danger:hover { filter: brightness(1.1); }
.btn-outline   { background: transparent; color: var(--orange-500); border: 1.5px solid var(--orange-500); }
.btn-outline:hover { background: var(--orange-50); }
.btn-ghost     { background: transparent; color: var(--grey-500); border: 1.5px solid var(--grey-300); }
.btn-ghost:hover { background: var(--grey-100); color: var(--grey-700); }
.btn-sm        { padding: 6px 12px; font-size: 13px; }

/* ---- Tabel ---- */
.tabel-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--grey-500);
    padding: 10px 16px;
    background: var(--grey-100);
    border-bottom: 1px solid var(--grey-300);
}
td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--grey-100);
    font-size: 14px;
    color: var(--grey-700);
    vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--orange-50); }
td a { color: var(--orange-700); text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}
.badge-groen  { background: #dcfce7; color: #15803d; }
.badge-rood   { background: #fee2e2; color: #b91c1c; }
.badge-blauw  { background: #dbeafe; color: #1d4ed8; }
.badge-oranje { background: #ffedd5; color: #c2410c; }
.badge-grijs  { background: var(--grey-300); color: var(--grey-700); }

/* ---- Meldingen ---- */
.melding {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
}
.melding-succes  { background: #f0fdf4; border-color: var(--success); color: #15803d; }
.melding-fout    { background: #fef2f2; border-color: var(--danger);  color: #b91c1c; }
.melding-info    { background: var(--orange-50); border-color: var(--orange-500); color: var(--orange-700); }

/* ---- Inlogscherm ---- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange-900) 0%, var(--orange-700) 100%);
    padding: 20px;
}
.login-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}
.login-header {
    background: var(--orange-900);
    padding: 28px 32px 24px;
    text-align: center;
}
.login-header h1 { color: var(--white); font-size: 22px; margin-bottom: 4px; }
.login-header p  { color: var(--orange-200); font-size: 14px; }
.login-body { padding: 28px 32px; }

/* ---- Paginakop ---- */
.pagina-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.pagina-kop h1 { font-size: 22px; font-weight: 700; color: var(--grey-900); }
.pagina-kop p  { font-size: 14px; color: var(--grey-500); margin-top: 2px; }

/* ---- Stat blokjes ---- */
.stats-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-kaart {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--orange-500);
}
.stat-kaart .getal { font-size: 28px; font-weight: 800; color: var(--orange-500); line-height: 1; }
.stat-kaart .label { font-size: 13px; color: var(--grey-500); margin-top: 4px; }

/* ---- Bestand laden scherm ---- */
.leeg-staat {
    text-align: center;
    padding: 48px 24px;
    color: var(--grey-500);
}
.leeg-staat svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: .4; }
.leeg-staat p { font-size: 15px; }

/* ---- Zijbalk admin ---- */
.admin-layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
    width: 220px;
    background: var(--white);
    border-right: 1px solid var(--grey-300);
    padding: 20px 0;
    flex-shrink: 0;
}
.sidebar-sectie { padding: 0 12px; margin-bottom: 8px; }
.sidebar-sectie-titel {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--grey-500);
    padding: 8px 12px 4px;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-700);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.sidebar a:hover  { background: var(--orange-50); color: var(--orange-500); }
.sidebar a.actief { background: var(--orange-50); color: var(--orange-500); font-weight: 600; }
.admin-inhoud { flex: 1; padding: 28px; min-width: 0; }
@media (max-width: 700px) {
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--grey-300); }
    .admin-inhoud { padding: 20px; }
}

/* ---- Zoekbare dropdown ---- */
.zoek-select { position: relative; }
.zoek-select-trigger {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--grey-300);
    border-radius: 6px;
    font-size: 15px;
    color: var(--grey-900);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color .15s, box-shadow .15s;
    user-select: none;
}
.zoek-select-trigger:focus,
.zoek-select.open .zoek-select-trigger {
    outline: none;
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(252,104,40,.15);
}
.zoek-select-waarde { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoek-select-waarde.placeholder { color: var(--grey-500); }
.zoek-select-chevron { flex-shrink: 0; color: var(--grey-500); transition: transform .15s; }
.zoek-select.open .zoek-select-chevron { transform: rotate(180deg); }
.zoek-select-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--white);
    border: 1.5px solid var(--orange-500);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
    overflow: hidden;
}
.zoek-select-invoer {
    width: 100%;
    padding: 9px 14px;
    border: none;
    border-bottom: 1px solid var(--grey-300);
    font-size: 14px;
    color: var(--grey-900);
    font-family: inherit;
    background: var(--grey-100);
}
.zoek-select-invoer:focus { outline: none; background: var(--white); }
.zoek-select-lijst {
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
.zoek-select-item {
    padding: 9px 14px;
    font-size: 14px;
    color: var(--grey-700);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zoek-select-item:hover { background: var(--orange-50); color: var(--orange-700); }
.zoek-select-item.geselecteerd { background: var(--orange-50); color: var(--orange-500); font-weight: 600; }
.zoek-select-leeg { padding: 12px 14px; font-size: 14px; color: var(--grey-500); font-style: italic; }
.zoek-select.uitgeschakeld .zoek-select-trigger {
    background: var(--grey-100);
    color: var(--grey-500);
    cursor: not-allowed;
}
.zoek-select.uitgeschakeld { pointer-events: none; }

/* ---- Overige ---- */
.tekst-klein  { font-size: 13px; color: var(--grey-500); }
.tekst-rechts { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-tussen { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
hr.scheiding { border: none; border-top: 1px solid var(--grey-300); margin: 20px 0; }
