/* =========================================================
   BASIS / RESET
   ========================================================= */
html, body {
    height: 100%;
    overflow-x: hidden; /* nooit horizontaal scrollen */
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;

    /* header + footer vast, content scrollt binnen container */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   NAVIGATIE
   ========================================================= */
nav {
    background-color: #003366;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
    z-index: 1000;
    position: relative;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* links/rechts groepen */
.nav-left li { margin-right: 15px; }
.nav-right li { margin-left: 10px; }

/* Links als blok */
nav a.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.15s ease;
}

nav a.nav-link:hover,
nav a.nav-link:focus {
    background-color: rgba(255,255,255,0.18);
    outline: none;
}

/* Login / logout knop */
.nav-button {
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.nav-button.login { background-color: #4CAF50; }
.nav-button.login:hover { background-color: #45a049; }

.nav-button.logout { background-color: #E94F4F; }
.nav-button.logout:hover { background-color: #d43f3a; }

/* =========================================================
   DROPDOWNS
   ========================================================= */
.dropdown { position: relative; }

/* hover bridge tegen wegklappen */
.dropdown::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    height: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 200px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 2000;
}

.dropdown-content a {
    display: block;
    padding: 12px 14px;
    color: #003366;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background-color: #f1f1f1;
    outline: none;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

/* Logout knop in dropdown */
.dropdown-logout {
    width: 100%;
    border: none;
    padding: 12px 14px;
    background-color: #E94F4F;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-align: left;
}

.dropdown-logout:hover { background-color: #d43f3a; }

/* =========================================================
   CONTENT CONTAINER (scrollgebied)
   ========================================================= */
.container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;

    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);

    flex: 1 1 auto;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

/* ✅ EXTRA: container zonder scroll (voor zoeken.php) */
.container.no-scroll {
    overflow: hidden;
}

/* =========================================================
   LAYOUT BLOKKEN
   ========================================================= */
.row {
    display: flex;
    gap: 20px;
}

.column {
    flex: 1;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* =========================================================
   ALERTS
   ========================================================= */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
}

.alert-success {
    background-color: #eaf7ee;
    border: 1px solid #bfe7cb;
    color: #1f7a3a;
}

.alert-error {
    background-color: #fdecec;
    border: 1px solid #f5bcbc;
    color: #b42318;
}

/* =========================================================
   FORMULIEREN
   ========================================================= */
.add-user-form,
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-user-form label,
.upload-form label {
    font-weight: 600;
}

.add-user-form input,
.add-user-form textarea,
.add-user-form select,
.upload-form input,
.upload-form textarea,
.upload-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.add-user-form button,
.upload-form button {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #003366;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease;
}

.add-user-form button:hover,
.upload-form button:hover {
    background-color: #002244;
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

/* =========================================================
   BUTTON-LIKE LINKS
   ========================================================= */
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

a.btn-green { background-color: #4CAF50; }
a.btn-green:hover { background-color: #45a049; }

a.btn-orange { background-color: #f39c12; }
a.btn-orange:hover { background-color: #e67e22; }

a.btn-gray { background-color: #777; }
a.btn-gray:hover { background-color: #666; }

/* =========================================================
   TABEL
   ========================================================= */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

th {
    background-color: #f4f4f4;
}

td.actions {
    white-space: nowrap;
}

td.actions form {
    display: inline;
    margin: 0;
}

/* =========================================================
   KNOPPEN (ADMIN/MEDIA)
   ========================================================= */
button.edit {
    background-color: #4CAF50;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
button.edit:hover { background-color: #45a049; }

button.delete {
    background-color: #E94F4F;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
button.delete:hover { background-color: #d43f3a; }

button.cancel {
    background-color: #777;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
button.cancel:hover { background-color: #666; }

/* reset-knop in gebruikersbeheer */
button[name="send_reset"] {
    background-color: #f39c12;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
button[name="send_reset"]:hover { background-color: #e67e22; }

/* =========================================================
   GEBRUIKERSBEHEER ACCORDION
   ========================================================= */
tr.edit-row { display: none; }
tr.edit-row.open { display: table-row; }

.edit-box {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* =========================================================
   MEDIA / UPLOAD – 50/50 BLOKKEN
   ========================================================= */
.upload-container,
.media-management-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.upload-container > *,
.media-management-container > * {
    flex: 1;
    min-width: 0;
}

.preview,
.media-list,
.file-edit {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.preview img,
.file-edit img {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
}

/* =========================================================
   HOME GALLERY
   ========================================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 15px;

    position: relative;
    z-index: 3;
}

.gallery-item {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    transition: transform 0.12s ease, box-shadow 0.12s ease;

    display: block;
    position: relative;
    z-index: 4;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.gallery-thumb {
    height: 160px;
    background: #f6f6f6;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-meta {
    padding: 10px 12px;
}

.gallery-title {
    font-weight: 700;
    color: #003366;
}

.gallery-caption {
    font-size: 0.9rem;
    color: #555;
}

.gallery.gallery-search {
    grid-template-columns: repeat(3, 1fr);
}
.gallery.gallery-search .gallery-thumb {
    height: 130px;
}

/* =========================================================
   FOTO MODAL
   ========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 3000;
}

.modal-overlay.open { display: flex; }

.modal-window {
    background: #fff;
    width: min(1000px, 100%);
    max-height: 90vh;
    border-radius: 10px;
    padding: 18px;
    position: relative;
    overflow: auto;
    box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 26px;
    background: rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    line-height: 36px;
    text-align: center;
    font-weight: 700;
}

.modal-close:hover {
    background: rgba(0,0,0,0.16);
}

.modal-body {
    display: flex;
    gap: 20px;
}

.modal-media { flex: 1; }
.modal-info  { flex: 1; }

.modal-media img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
}

.info-row {
    margin-top: 10px;
}

/* =========================================================
   CHANGELOG
   ========================================================= */
.changelog-box {
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 14px 16px;
}

.changelog-version {
    font-weight: 800;
    color: #003366;
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.changelog-line {
    padding: 3px 0;
    line-height: 1.35;
    color: #333;
}

.changelog-empty {
    height: 10px;
}

.changelog-sep {
    height: 1px;
    background: #e2e2e2;
    margin: 12px 0;
}

/* Changelog in de V2-stijl; menu en footer blijven gedeelde componenten. */
.container.changelog-page { width: min(1080px, calc(100% - 40px)); margin: 20px auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
.changelog-page__hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 30px 34px; overflow: hidden; border-radius: 14px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(255,255,255,.18) 0, rgba(255,255,255,0) 32%), linear-gradient(120deg, #173f9f, #2457d6 62%, #4a86ef); box-shadow: 0 14px 32px rgba(23, 63, 159, .2); }
.changelog-page__eyebrow { margin: 0 0 7px; color: inherit; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.changelog-page__hero h1, .changelog-page__hero p { margin: 0; }
.changelog-page__hero h1 { font-size: clamp(1.8rem, 3vw, 2.35rem); }
.changelog-page__hero > div > p:last-child { max-width: 620px; margin-top: 8px; color: rgba(255,255,255,.85); line-height: 1.5; }
.changelog-page__hero-mark { display: grid; flex: 0 0 auto; width: 64px; height: 64px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 17px; background: rgba(255,255,255,.12); font-size: 2rem; font-weight: 300; }
.changelog-page__content { padding: 28px 32px 32px; border: 1px solid #e1e7f0; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(23, 32, 51, .06); }
.changelog-page__heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.changelog-page__heading .changelog-page__eyebrow { color: #2457d6; }
.changelog-page__heading h2 { margin: 0; color: #172033; font-size: 1.5rem; }
.changelog-page__source { color: #667085; font-size: .82rem; }
.changelog-page .changelog-box { padding: 0; border: 0; border-radius: 0; background: transparent; }
.changelog-page .changelog-version { margin: 26px 0 10px; padding: 10px 14px; border-left: 4px solid #2457d6; border-radius: 0 8px 8px 0; background: #f2f6ff; color: #173f9f; font-size: 1rem; }
.changelog-page .changelog-version:first-child { margin-top: 0; }
.changelog-page .changelog-line { padding: 5px 14px; color: #44516a; line-height: 1.5; }
.changelog-page .changelog-line::first-letter { color: #2457d6; font-weight: 800; }
.changelog-page .changelog-empty { height: 6px; }
.changelog-page .changelog-sep { margin: 22px 0; background: #e6ebf4; }

@media (max-width: 700px) {
    .container.changelog-page { width: calc(100% - 28px); margin: 14px auto; }
    .changelog-page__hero { align-items: flex-start; padding: 24px; }
    .changelog-page__hero-mark { width: 50px; height: 50px; border-radius: 14px; }
    .changelog-page__content { padding: 24px 18px; }
    .changelog-page__heading { align-items: flex-start; flex-direction: column; }
    .changelog-page .changelog-line { padding-right: 4px; padding-left: 8px; }
}

/* =========================================================
   FOOTER (vast, hoogte ongewijzigd)
   ========================================================= */
.site-footer {
    background-color: #003366;
    color: #fff;
    flex: 0 0 auto;
}

/* 3 zones: links / midden / rechts */
.footer-inner {
    max-width: 80%;
    margin: 0 auto;
    padding: 14px 0;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    font-size: 0.9rem;
}

.footer-left { text-align: left; }
.footer-center { display: flex; justify-content: center; align-items: center; }
.footer-right { text-align: right; }

.footer-logo {
    max-width: 240px;
    max-height: 30px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    /* Geen kleurfilter: dat veranderde een samengesteld logo in een balk. */
    filter: none;
    opacity: 0.95;
}

/* =========================================================
   ✅ CONFIRM MODAL (VERWIJDEREN)
   ========================================================= */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 4000;
}

.confirm-overlay.open { display: flex; }

.confirm-window {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 16px 16px 14px;
    box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.confirm-title {
    margin: 0 0 8px 0;
    color: #003366;
}

.confirm-message {
    margin: 0 0 14px 0;
    color: #333;
    line-height: 1.35;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-confirm {
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-confirm-no {
    background: #777;
    color: #fff;
}
.btn-confirm-no:hover { background: #666; }

.btn-confirm-yes {
    background: #E94F4F;
    color: #fff;
}
.btn-confirm-yes:hover { background: #d43f3a; }

/* =========================================================
   RESPONSIVE (AANGEPAST)
   ========================================================= */
@media (max-width: 900px) {
    .container { width: 95%; }

    /* ✅ Belangrijk bij flex + overflow: laat container krimpen zodat scroll werkt */
    .container { min-height: 0; }

    /* ✅ Nav mag wrappen zodat items niet buiten beeld verdwijnen */
    nav { flex-wrap: wrap; gap: 10px; }
    nav ul { flex-wrap: wrap; gap: 8px; }

    .row,
    .upload-container,
    .media-management-container,
    .modal-body {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery.gallery-search {
        grid-template-columns: repeat(2, 1fr);
    }

    td.actions { white-space: normal; }

    /* ✅ Form actions op tablet: mag wrappen */
    .form-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    /* ✅ Nav: links/rechts netjes onder elkaar */
    nav {
        align-items: stretch;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        width: 100%;
        justify-content: center;
    }

    /* ✅ Container compacter op mobiel */
    .container {
        padding: 16px;
        margin: 14px auto;
    }

    /* ✅ Login/form pages: button + link onder elkaar */
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .form-actions button,
    .form-actions a.btn {
        width: 100%;
        justify-content: center;
    }

    .footer-inner {
        max-width: 95%;
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 500px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery.gallery-search {
        grid-template-columns: 1fr;
    }

    /* ✅ Form nog wat compacter */
    .container {
        padding: 14px;
    }

    /* ✅ Dropdown niet buiten viewport op heel kleine schermen */
    .dropdown-content {
        left: 0;
        right: auto;
        min-width: 180px;
        max-width: calc(100vw - 24px);
    }

    /* ✅ Inputs iets prettiger tappable op mobiel */
    .add-user-form input,
    .add-user-form textarea,
    .add-user-form select,
    .upload-form input,
    .upload-form textarea,
    .upload-form select {
        padding: 12px;
    }
}

/* =========================================================
   WACHTWOORD INDICATOR
   ========================================================= */
.pw-hint {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
}

.pw-meter {
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
}

.pw-ok { color: #1f7a3a; font-weight: 600; }
.pw-bad { color: #b42318; font-weight: 600; }

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =========================================================
   ZOEKPAGINA 50/50 (DESKTOP) + SCROLL OP MOBIEL
   ========================================================= */

/* Desktop: links/rechts naast elkaar */
.search-layout {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    align-items: stretch;
}

.search-left,
.search-right {
    flex: 0 0 50%;
    min-width: 0;
}

/* Op desktop: geen scrollbar in rechterkolom (container regelt alles) */
.container.no-scroll .search-right {
    overflow: hidden;
}

/* =========================================================
   Mobiel/tablet: onder elkaar + scroll toestaan
   ========================================================= */
@media (max-width: 900px) {
    .search-layout {
        flex-direction: column;
    }

    .search-left,
    .search-right {
        flex: 1 1 auto;
        width: 100%;
    }

    /* Belangrijk: op mobiel mag zoekenpagina wél scrollen */
    .container.no-scroll {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .container.no-scroll .search-right {
        overflow: visible;
    }
}

/* =========================================================
   MODAL IMAGE FULLSCREEN
   ========================================================= */
.modal-image-fullscreen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.modal-image-fullscreen img {
    max-width: 98vw;
    max-height: 98vh;
    object-fit: contain;
}
.callbox-center {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.callbox {
  width: 350px;
  aspect-ratio: 1 / 1; /* blijft vierkant */
  padding: 20px;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;

  /* laat kleuren aansluiten op jouw theme */
  background: var(--card-bg, #f5f5f5);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 10px;
}

.callbox h2 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.callbox p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.callbox-email a {
  font-weight: bold;
}
.container h1 {
  text-align: center;
}

/* ===== Toggle Switch ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 26px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background-color: #f97316; /* jouw oranje */
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* =========================================================
   MAINTENANCE PAGE (FINAL)
   ========================================================= */

body.maintenance {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.maintenance-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.maintenance-card {
    width: min(600px, 100%);
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.maintenance-card .alert {
    margin-top: 20px;
    margin-bottom: 20px;
}

.alert-warning {
    background-color: #fff7e6;
    border: 1px solid #f5c26b;
    color: #8a5a00;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

body.login-page {
    height: auto;
    min-height: 100vh;
    background: #f4f7fb;
    color: #172033;
}

.beeldbank-login {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.beeldbank-login__hero {
    position: relative;
    display: none;
    width: 58.333%;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.12), transparent 34%),
        linear-gradient(135deg, #1b3d8d 0%, #2457d6 48%, #3f7bea 100%);
}

.beeldbank-login__hero::before,
.beeldbank-login__hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.beeldbank-login__hero::before {
    width: 420px;
    height: 420px;
    top: -100px;
    right: -120px;
}

.beeldbank-login__hero::after {
    width: 320px;
    height: 320px;
    bottom: -120px;
    left: -90px;
}

.beeldbank-login__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.beeldbank-login__hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 48px;
}

.beeldbank-brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.015em;
}

.beeldbank-brand__icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 14px;
    background: rgba(255,255,255,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.beeldbank-login__intro { max-width: 620px; }

.beeldbank-login__badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    color: #172033;
    font-size: .875rem;
    font-weight: 600;
}

.beeldbank-login__intro h1 {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
}

.beeldbank-login__intro p {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 1.25rem;
    line-height: 1.5;
}

.beeldbank-login__privacy {
    margin: 0;
    font-size: .875rem;
    opacity: .75;
}

.beeldbank-login__panel {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #fff;
}

.beeldbank-login__card { width: min(470px, 100%); }

.beeldbank-brand--mobile {
    margin-bottom: 48px;
    color: #172033;
}

.beeldbank-brand--mobile .beeldbank-brand__icon {
    border-color: transparent;
    background: #2457d6;
    color: #fff;
}

.beeldbank-login__heading { margin-bottom: 28px; }

.beeldbank-login__heading p {
    margin: 0 0 8px;
    color: #2457d6;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.beeldbank-login__heading h2 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 2rem;
    line-height: 1.2;
}

.beeldbank-login__heading span,
.beeldbank-login__access-note {
    color: #6c7587;
    line-height: 1.5;
}

.beeldbank-login__form { gap: 9px; }

.beeldbank-login__form label {
    color: #172033;
    font-size: .95rem;
}

.beeldbank-login__form input {
    min-height: 54px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #d8deea;
    border-radius: 6px;
    color: #172033;
    font-size: 1rem;
}

.beeldbank-login__form input:focus {
    border-color: #8daaf2;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(36, 87, 214, .12);
}

.beeldbank-login__password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.beeldbank-login__password-label a {
    color: #6c7587;
    font-size: .825rem;
    text-decoration: none;
}

.beeldbank-login__password-label a:hover { color: #2457d6; text-decoration: underline; }

.beeldbank-login__form button {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border-radius: 6px;
    background: #2457d6;
    box-shadow: 0 12px 28px rgba(36, 87, 214, .22);
    font-size: 1rem;
}

.beeldbank-login__form button:hover { background: #173f9f; }

.beeldbank-login__form--totp input {
    letter-spacing: .34em;
    text-align: center;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.beeldbank-login__actions {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.beeldbank-login__form .beeldbank-login__cancel {
    margin-top: 0;
    background: #eef2f8;
    box-shadow: none;
    color: #44516a;
}

.beeldbank-login__form .beeldbank-login__cancel:hover {
    background: #e1e7f0;
    color: #172033;
}

.beeldbank-login__access-note {
    margin: 24px 0 0;
    font-size: .875rem;
    text-align: center;
}

/* =========================================================
   WACHTWOORD WIJZIGEN
   ========================================================= */
.password-change-page {
    width: min(1080px, calc(100% - 40px));
    margin: 32px auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.password-change__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px 32px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #173f9f, #2457d6 62%, #4a86ef);
    box-shadow: 0 14px 32px rgba(23, 63, 159, .2);
}

.password-change__eyebrow,
.password-change__step {
    margin: 0 0 7px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.password-change__header h1,
.password-change__header p { margin: 0; }
.password-change__header h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.password-change__header > div > p:last-child { margin-top: 8px; color: rgba(255, 255, 255, .82); }

.password-change__header-icon {
    display: grid;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    font-size: 1.75rem;
}

.password-change__layout {
    display: grid;
    grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
    gap: 24px;
    align-items: start;
}

.password-change__intro,
.password-change__card {
    border: 1px solid #e1e7f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 32, 51, .06);
}

.password-change__intro { padding: 28px; }
.password-change__step { display: block; color: #2457d6; }
.password-change__intro h2,
.password-change__card h2 { margin: 0; color: #172033; }
.password-change__intro > p { margin: 12px 0 24px; color: #667085; line-height: 1.55; }

.password-change__requirements {
    padding: 16px;
    border-radius: 10px;
    background: #f4f7fd;
    color: #44516a;
    font-size: .9rem;
    line-height: 1.5;
}

.password-change__requirements strong { color: #172033; }
.password-change__requirements ul { margin: 10px 0 0 18px; padding: 0; }

.password-change__card { padding: 30px; }
.password-change__card-heading { margin-bottom: 24px; }
.password-change__card-heading p { margin: 8px 0 0; color: #667085; line-height: 1.5; }

.password-change__form { gap: 9px; }
.password-change__form label { color: #172033; }
.password-change__form input {
    min-height: 50px;
    padding: 12px 14px;
    border-color: #d8deea;
    border-radius: 7px;
}

.password-change__form input:focus {
    border-color: #8daaf2;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(36, 87, 214, .12);
}

.password-change__meter {
    margin-top: 10px;
    border-color: #dce5f6;
    border-radius: 9px;
    background: #f8faff;
}

.password-change__meter ul { margin-bottom: 0; }
.password-change__actions { margin-top: 14px; }
.password-change__actions button,
.password-change__actions .btn { min-height: 46px; }
.password-change__actions button { background: #2457d6; }
.password-change__actions button:hover { background: #173f9f; }
.password-change__actions .btn-gray { background: #eef2f8; color: #44516a; }
.password-change__actions .btn-gray:hover { background: #e1e7f0; color: #172033; }

@media (min-width: 992px) {
    .beeldbank-login__hero { display: flex; }
    .beeldbank-login__panel { width: 41.667%; }
    .beeldbank-brand--mobile { display: none; }
}

@media (max-width: 700px) {
    .beeldbank-login__panel { padding: 32px 20px; }
    .beeldbank-brand--mobile { margin-bottom: 40px; }

    .password-change-page { width: calc(100% - 28px); margin: 14px auto; }
    .password-change__header { padding: 24px; }
    .password-change__header-icon { display: none; }
    .password-change__layout { grid-template-columns: 1fr; gap: 16px; }
    .password-change__intro,
    .password-change__card { padding: 22px; }
}

/* Wachtwoord wijzigen: Beeldbank-loginstijl, met het gewone menu erboven. */
.password-change-page {
    width: min(1440px, calc(100% - 40px));
    /* Vul alleen de ruimte tussen menu en footer; geen onnodige scrollbar. */
    min-height: 0;
    margin: 16px auto;
    padding: 0;
    overflow: hidden;
}

.password-change__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(390px, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(23, 63, 159, .14);
}

.password-change__hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(115deg, #173f9f 0%, #2457d6 55%, #4a86ef 100%);
}

.password-change__hero::before,
.password-change__hero::after {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    content: '';
}

.password-change__hero::before { top: -175px; right: -100px; }
.password-change__hero::after { bottom: -250px; left: -160px; }

.password-change__grid {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
    background-size: 42px 42px;
}

.password-change__hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 590px;
    padding: 64px;
}

.password-change__badge {
    align-self: flex-start;
    margin-bottom: 24px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff;
    color: #172033;
    font-size: .8rem;
    font-weight: 700;
}

.password-change__hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    line-height: 1.08;
}

.password-change__hero p {
    max-width: 510px;
    margin: 18px 0 0;
    font-size: 1.15rem;
    line-height: 1.55;
}

.password-change__hero small {
    position: absolute;
    bottom: 48px;
    font-size: .84rem;
}

.password-change__card {
    align-self: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 30px 42px;
}

.password-change__eyebrow {
    color: #2457d6;
}

.password-change__card-heading h2 { font-size: 2rem; }
.password-change__card-heading p:last-child { color: #667085; }
.password-change__meter { font-size: .84rem; }
.password-change__actions { display: grid; grid-template-columns: 1fr 1fr; }
.password-change__actions button,
.password-change__actions .btn { width: 100%; text-align: center; }

@media (max-width: 900px) {
    /* Op kleinere schermen blijft inhoud uiteraard wel bereikbaar via scrollen. */
    .password-change-page { overflow-y: auto; }
    .password-change__shell { grid-template-columns: 1fr; height: auto; }
    .password-change__hero { min-height: 275px; }
    .password-change__hero-content { padding: 42px 34px; }
    .password-change__hero small { bottom: 30px; }
    .password-change__card { padding: 40px 34px; }
}

@media (max-width: 520px) {
    .password-change-page { width: 100%; margin: 0; }
    .password-change__shell { border-radius: 0; }
    .password-change__hero-content,
    .password-change__card { padding: 32px 22px; }
    .password-change__hero h1 { font-size: 2.2rem; }
    .password-change__hero small { display: none; }
    .password-change__actions { grid-template-columns: 1fr; }
}

/* =========================================================
   BEELDBANK V2 – OVERIGE PAGINA'S
   De gedeelde navigatie en footer blijven buiten deze laag.
   ========================================================= */
.v2-page {
    width: min(1440px, calc(100% - 40px));
    margin: 16px auto;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid #e1e8f4;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(74, 134, 239, .10), transparent 30%),
        #f8faff;
    box-shadow: 0 14px 38px rgba(23, 63, 159, .10);
    color: #24324a;
}

.v2-page > h1,
.v2-page > h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    color: #172033;
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
    letter-spacing: -.025em;
}

.v2-page > h1::before,
.v2-page > h2::before {
    width: 7px;
    height: 1.2em;
    border-radius: 99px;
    background: linear-gradient(#4a86ef, #173f9f);
    box-shadow: 0 4px 12px rgba(36, 87, 214, .25);
    content: '';
}

.v2-page h3 {
    margin-top: 0;
    color: #172033;
    font-size: 1.15rem;
}

.v2-page .row,
.v2-page .search-layout,
.v2-page .upload-container {
    gap: 22px;
}

.v2-page .column,
.v2-page .search-left,
.v2-page .search-right,
.v2-page .upload-form,
.v2-page .preview,
.v2-page .media-list {
    border: 1px solid #e0e7f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 32, 51, .055);
}

.v2-page .column { padding: 26px; }
.v2-page .search-left,
.v2-page .search-right,
.v2-page .media-list { padding: 24px; }
.v2-page .upload-form { padding: 26px; }
.v2-page .preview { padding: 22px; }

.v2-page .add-user-form,
.v2-page .upload-form {
    gap: 9px;
}

.v2-page .add-user-form label,
.v2-page .upload-form label,
.v2-registration .form-group label {
    margin-top: 6px;
    color: #34425a;
    font-size: .9rem;
    font-weight: 700;
}

.v2-page .add-user-form input,
.v2-page .add-user-form textarea,
.v2-page .add-user-form select,
.v2-page .upload-form input,
.v2-page .upload-form textarea,
.v2-page .upload-form select,
.v2-registration .form-control {
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d8e0ed;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.v2-page .add-user-form textarea,
.v2-page .upload-form textarea { min-height: 108px; resize: vertical; }

.v2-page input:focus,
.v2-page textarea:focus,
.v2-page select:focus,
.v2-registration .form-control:focus {
    border-color: #7196ee;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(36, 87, 214, .11);
}

.v2-page button,
.v2-page .btn,
.v2-registration .btn-primary {
    min-height: 42px;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: #2457d6;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 7px 16px rgba(36, 87, 214, .18);
}

.v2-page button:hover,
.v2-page .btn:hover,
.v2-registration .btn-primary:hover { background: #173f9f; }

.v2-page .btn-gray,
.v2-page .cancel {
    background: #edf2fa;
    color: #40506a;
    box-shadow: none;
}

.v2-page .btn-gray:hover,
.v2-page .cancel:hover { background: #e1e8f4; color: #172033; }

.v2-page .delete { background: #c73d46; box-shadow: 0 7px 16px rgba(199, 61, 70, .16); }
.v2-page .delete:hover { background: #a52d35; }
.v2-page .edit { background: #3578de; }

.v2-page .alert { border-radius: 9px; box-shadow: none; }
.v2-page .alert-error { background: #fff4f4; border-color: #f2c6ca; }
.v2-page .alert-success { background: #f0f8f3; border-color: #c7e8d2; }

.v2-page table {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e0e7f2;
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.v2-page th {
    padding: 13px 14px;
    border-bottom: 1px solid #dce5f2;
    background: #edf3ff;
    color: #29436e;
    font-size: .78rem;
    letter-spacing: .045em;
    text-align: left;
    text-transform: uppercase;
}

.v2-page td { padding: 13px 14px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.v2-page tbody tr:last-child td { border-bottom: 0; }
.v2-page tbody tr:hover { background: #f8faff; }
.v2-page .actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.v2-page .actions form { margin: 0; }

.v2-page .gallery-item {
    border: 1px solid #e0e7f2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(23, 32, 51, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.v2-page .gallery-item:hover { transform: translateY(-3px); box-shadow: 0 13px 26px rgba(23, 63, 159, .14); }
.v2-page .gallery-meta { padding: 12px; }
.v2-page .gallery-title { color: #172033; }
.v2-page .gallery-caption { color: #667085; }

.v2-home > h1 { justify-content: center; text-align: center; }
.v2-home .callbox {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, #173f9f, #2457d6 66%, #4a86ef);
    color: #fff;
    box-shadow: 0 13px 26px rgba(23, 63, 159, .18);
}
.v2-home .callbox h2 { color: #fff; }
.v2-home .callbox a { color: #fff; font-weight: 700; }

.v2-registration { max-width: 580px; }
.v2-registration form { display: grid; gap: 10px; }
.v2-registration .form-group { margin: 0; }
.v2-registration .form-control { width: 100%; }
.v2-registration .invalid-feedback { display: block; margin-top: 5px; color: #b42318; font-size: .85rem; }

/* Maintenance mode */
.v2-maintenance { max-width: 960px; }
.v2-maintenance__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: -32px -32px 28px;
    padding: 30px 32px;
    border-radius: 12px 12px 0 0;
    background:
        radial-gradient(circle at 92% -25%, rgba(116, 169, 255, .56), transparent 38%),
        linear-gradient(115deg, #123675, #2457d6);
    color: #fff;
}
.v2-maintenance__hero h1 { margin: 6px 0 8px; color: #fff; }
.v2-maintenance__hero p { max-width: 610px; margin: 0; color: rgba(255, 255, 255, .82); }
.v2-maintenance__status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 99px;
    background: rgba(6, 29, 88, .22);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
}
.v2-maintenance__status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8ed0ff; }
.v2-maintenance__status-dot.is-active { background: #ffc76a; box-shadow: 0 0 0 4px rgba(255, 199, 106, .18); }
.v2-maintenance__form { display: grid; gap: 18px; }
.v2-maintenance__section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e7f2;
    border-radius: 11px;
    background: #fbfcff;
}
.v2-maintenance__section h2 { margin: 0 0 5px; color: #172033; font-size: 1rem; }
.v2-maintenance__section p { margin: 0; color: #667085; font-size: .9rem; line-height: 1.5; }
.v2-maintenance__toggle { display: inline-flex; align-items: center; gap: 11px; }
.v2-maintenance__toggle-label { color: #4c5b72; font-size: .88rem; font-weight: 700; }
.v2-maintenance__toggle-state { min-width: 92px; color: #173f9f; font-size: .85rem; font-weight: 800; }
.v2-maintenance__message { grid-template-columns: 1fr; align-items: stretch; }
.v2-maintenance__message label { margin: 0 0 -10px; color: #34425a; font-size: .88rem; font-weight: 800; }
.v2-maintenance__message textarea { margin: 0; min-height: 130px; background: #fff; }
.v2-maintenance__actions { display: flex; justify-content: flex-end; padding-top: 2px; }

@media (max-width: 760px) {
    .v2-maintenance__hero { display: block; margin: -20px -20px 20px; padding: 24px 20px; border-radius: 10px 10px 0 0; }
    .v2-maintenance__status { margin-top: 17px; }
    .v2-maintenance__section { grid-template-columns: 1fr; align-items: start; }
    .v2-maintenance__toggle { flex-wrap: wrap; }
    .v2-maintenance__actions button { width: 100%; }
}

@media (max-width: 760px) {
    .v2-page { width: calc(100% - 24px); margin: 12px auto; padding: 20px; }
    .v2-page .row,
    .v2-page .search-layout,
    .v2-page .upload-container { flex-direction: column; grid-template-columns: 1fr; }
    .v2-page .column,
    .v2-page .search-left,
    .v2-page .search-right,
    .v2-page .upload-form,
    .v2-page .preview,
    .v2-page .media-list { padding: 18px; }
    .v2-page table { min-width: 650px; }
    .v2-page .media-list { overflow-x: auto; }
}

/* =========================================================
   BEELDBANK V2 – GEDEELDE NAVIGATIE & FOOTER
   Alle bestaande routes, dropdowns en rechtenchecks blijven behouden.
   ========================================================= */
.site-nav {
    min-height: 72px;
    padding: 11px clamp(16px, 3vw, 42px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background:
        radial-gradient(circle at 84% -110%, rgba(93, 155, 255, .52), transparent 35%),
        linear-gradient(112deg, #102b67 0%, #173f9f 52%, #2457d6 100%);
    box-shadow: 0 7px 21px rgba(13, 36, 91, .20);
}

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    margin-right: 24px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
}

.site-nav__brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
    font-size: 1.12rem;
    line-height: 1;
}

.site-nav__brand:hover,
.site-nav__brand:focus { color: #fff; }
.site-nav__brand:focus-visible { outline: 3px solid rgba(255, 255, 255, .72); outline-offset: 4px; border-radius: 6px; }

.site-nav .nav-left { margin-right: auto; }
.site-nav .nav-left li { margin-right: 5px; }
.site-nav .nav-right li { margin-left: 5px; }

.site-nav a.nav-link {
    gap: 5px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: rgba(255, 255, 255, .93);
    font-size: .91rem;
    font-weight: 700;
    letter-spacing: .005em;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link:focus {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    transform: translateY(-1px);
}

.site-nav .nav-right > li:last-child > .nav-link {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(5, 25, 77, .18);
}

.site-nav .dropdown::after { height: 12px; }

.site-nav .dropdown-content {
    top: calc(100% + 8px);
    min-width: 224px;
    padding: 7px;
    border: 1px solid #dce5f4;
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 40px rgba(13, 31, 75, .22);
}

.site-nav .dropdown-content a {
    padding: 10px 11px;
    border-radius: 7px;
    color: #34425a;
    font-size: .89rem;
    font-weight: 700;
}

.site-nav .dropdown-content a:hover,
.site-nav .dropdown-content a:focus {
    background: #edf3ff;
    color: #173f9f;
}

.site-nav .dropdown-logout {
    margin-top: 5px;
    padding: 10px 11px;
    border-radius: 7px;
    background: #fff1f2;
    color: #b42318;
    font-size: .89rem;
}

.site-nav .dropdown-logout:hover { background: #fee4e6; color: #8f1d16; }

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, .12);
    background:
        linear-gradient(95deg, rgba(8, 28, 74, .14), transparent 42%),
        #102b67;
    box-shadow: 0 -5px 16px rgba(16, 43, 103, .10);
}

.footer-inner {
    width: min(1440px, calc(100% - 40px));
    max-width: none;
    padding: 13px 0;
    color: rgba(255, 255, 255, .78);
    font-size: .82rem;
    line-height: 1.45;
}

.footer-left strong { color: #fff; font-weight: 800; }
.footer-right { color: rgba(255, 255, 255, .66); font-size: .77rem; }
.footer-logo { max-width: 240px; max-height: 30px; width: auto; height: auto; filter: none; opacity: .96; }

@media (max-width: 760px) {
    .site-nav { min-height: 0; gap: 8px; }
    .site-nav__brand { width: 100%; margin: 0 0 2px; }
    .site-nav .nav-left,
    .site-nav .nav-right { margin-right: 0; }
    .site-nav a.nav-link { padding: 8px 10px; font-size: .87rem; }
    .site-nav .dropdown-content { min-width: 205px; }
    .footer-inner { width: calc(100% - 28px); padding: 15px 0; }
}

/* =========================================================
   MEDIABEHEER – WERKRUIMTE ZONDER POP-UP
   ========================================================= */
.v2-media-management { max-width: 1440px; }
.v2-media-management > h2 { margin-bottom: 20px; }
.v2-eyebrow {
    margin: 0 0 4px;
    color: #5370a8;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.media-workspace {
    display: grid;
    grid-template-columns: minmax(315px, .88fr) minmax(400px, 1.12fr);
    min-height: 630px;
    overflow: hidden;
    border: 1px solid #dce5f2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23, 47, 96, .09);
}
.media-workspace__browser {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-right: 1px solid #dce5f2;
    background: #fbfcff;
}
.media-workspace__heading,
.media-workspace__editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.media-workspace__heading { padding: 24px 24px 16px; }
.media-workspace h3 { margin: 0; color: #172033; font-size: 1.1rem; }
.media-workspace__count {
    padding: 5px 8px;
    border-radius: 99px;
    background: #e9f0ff;
    color: #31538b;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}
.media-workspace__search {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 20px 16px;
    padding: 0 12px;
    border: 1px solid #d5dfef;
    border-radius: 9px;
    background: #fff;
    color: #476392;
}
.media-workspace__search:focus-within { border-color: #7196ee; box-shadow: 0 0 0 4px rgba(36, 87, 214, .10); }
.media-workspace__search span { font-size: 1.32rem; line-height: 1; transform: rotate(-18deg); }
.media-workspace__search input {
    width: 100%;
    height: 43px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    box-shadow: none;
}
.media-workspace__list { flex: 1; overflow: auto; padding: 0 12px 12px; }
.v2-page .media-workspace__item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    width: 100%;
    min-height: 0;
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent !important;
    color: #172033 !important;
    box-shadow: none !important;
    text-align: left;
    cursor: pointer;
}
.v2-page .media-workspace__item:hover { border-color: #d8e4f6; background: #f0f5ff !important; }
.v2-page .media-workspace__item.is-selected { border-color: #9bb8f5; background: #e8f0ff !important; box-shadow: inset 3px 0 0 #2457d6 !important; }
.media-workspace__thumbnail {
    display: grid;
    width: 72px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border-radius: 7px;
    background: #e7ecf4;
    color: #50627e;
    font-size: .72rem;
    font-weight: 800;
}
.media-workspace__thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.media-workspace__item-copy { display: grid; min-width: 0; gap: 4px; }
.media-workspace__item-copy strong,
.media-workspace__item-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-workspace__item-copy strong { color: #263a5a; font-size: .91rem; }
.media-workspace__item-copy span { color: #697891; font-size: .79rem; }
.media-workspace__empty { margin: 15px 12px; color: #687892; font-size: .9rem; }
.media-workspace__empty--filtered { padding-bottom: 15px; text-align: center; }
.media-workspace__editor { position: relative; min-width: 0; padding: 28px; background: #fff; }
.media-workspace__placeholder {
    display: grid;
    min-height: 100%;
    place-content: center;
    padding: 40px;
    color: #667793;
    text-align: center;
}
.media-workspace__placeholder-icon { margin-bottom: 12px; color: #90a7d3; font-size: 2.4rem; }
.media-workspace__placeholder h3 { margin-bottom: 7px; }
.media-workspace__placeholder p { max-width: 280px; margin: 0; line-height: 1.55; }
.media-workspace__edit-panel { max-width: 720px; margin: 0 auto; }
.media-workspace__clear { min-height: auto !important; padding: 7px 10px !important; background: #edf2fa !important; box-shadow: none !important; color: #44516a !important; font-size: .82rem; }
.media-workspace__preview {
    height: 200px;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 10px;
    background: #eff3f9;
}
.media-workspace__preview img { width: 100%; height: 100%; object-fit: contain; }
.media-workspace__form { display: grid; gap: 8px; }
.media-workspace__form label { margin-top: 4px; }
.media-workspace__form small { color: #76849c; font-size: .78rem; font-weight: 600; }
.media-workspace__note { margin: 7px 0 2px; color: #6a7890; font-size: .8rem; line-height: 1.45; }
.media-workspace__actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 5px; }

@media (max-width: 900px) {
    .media-workspace { grid-template-columns: minmax(270px, .85fr) minmax(330px, 1.15fr); }
    .media-workspace__editor { padding: 22px; }
}
@media (max-width: 700px) {
    .media-workspace { grid-template-columns: 1fr; min-height: 0; }
    .media-workspace__browser { min-height: 420px; border-right: 0; border-bottom: 1px solid #dce5f2; }
    .media-workspace__editor { min-height: 530px; padding: 20px; }
    .media-workspace__preview { height: 180px; }
}

/* =========================================================
   AUDIT TRAIL
   ========================================================= */
.v2-audit-page { max-width: 1480px; }
.v2-audit-page__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.v2-audit-page__header h1 { margin: 5px 0 7px; }
.v2-audit-page__header p { margin: 0; color: #667085; }
.v2-audit-page__count { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; background: #eaf0ff; color: #2457d6; font-size: .88rem; font-weight: 700; }
.v2-audit-filter { display: grid; grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(150px, 1fr)) auto; gap: 14px; align-items: end; margin-bottom: 20px; padding: 18px; border: 1px solid #dce5f6; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(25, 53, 103, .05); }
.v2-audit-filter label { display: block; margin-bottom: 6px; color: #34425a; font-size: .86rem; font-weight: 700; }
.v2-audit-filter input, .v2-audit-filter select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d8deea; border-radius: 7px; background: #fff; color: #172033; }
.v2-audit-filter__actions { display: flex; gap: 8px; }
.v2-audit-filter__actions button, .v2-audit-filter__actions .btn { min-height: 42px; margin: 0; white-space: nowrap; }
.v2-audit-table-wrap { overflow-x: auto; border: 1px solid #dce5f6; border-radius: 12px; background: #fff; }
.v2-audit-table { width: 100%; min-width: 960px; margin: 0; border-collapse: collapse; }
.v2-audit-table th { padding: 12px 14px; background: #edf3ff; color: #244d91; font-size: .76rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.v2-audit-table td { padding: 13px 14px; border-top: 1px solid #e7edf7; color: #34425a; font-size: .9rem; vertical-align: top; }
.v2-audit-table tr:hover td { background: #f8faff; }
.v2-audit-table td small { display: block; margin-top: 3px; color: #7b879a; font-size: .78rem; }
.v2-audit-table__empty { padding: 28px !important; color: #667085 !important; text-align: center; }
.v2-audit-action { display: inline-block; padding: 5px 8px; border-radius: 5px; background: #f0f4fb; color: #365c9f; font-size: .8rem; font-weight: 700; }
.v2-audit-pagination__label { align-self: center; color: #667085; }
@media (max-width: 980px) { .v2-audit-filter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .v2-audit-page__header { display: block; } .v2-audit-page__count { display: inline-block; margin-top: 12px; } .v2-audit-filter { grid-template-columns: 1fr; } }
.modal-media video { display:block; width:100%; max-height:72vh; background:#111; }
.modal-media video[hidden] { display:none !important; }
.gallery-thumb { position:relative; }
.gallery-thumb .video-badge { position:absolute; right:8px; bottom:8px; padding:4px 7px; border-radius:999px; background:rgba(0,0,0,.72); color:#fff; font-size:.72rem; font-weight:700; }
