/* ========== Base typografie ========== */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

html, body {
    overflow-x: hidden;
}

/* Focus styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    white-space: nowrap;
}

/* ========== Globale variabelen & font ========== */
:root {
    --base-font: Verdana, Geneva, Tahoma, sans-serif;
    /* veelgebruikte layout-variabelen voor ledenlijst */
    --sidebar-w: 320px;
    --gap: 1.25rem;
    --card-pad: 1.25rem;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(0,0,0,.12);
    --muted: #8892a6;
    --ink: #e6e9f0;
    --brand: #cbd5ff;
    --accent: #a5b4fc;
    --header-h: 72px; /* pas aan aan je echte (fixed) headerhoogte */
}

html, body {
    font-family: var(--base-font);
    font-size: 14px;
    line-height: 1.4;
}

/* UI-controls erven typografie */
button, input, select, textarea {
    font: inherit;
}

/* Bewuste erfenis voor diverse UI-onderdelen */
.menu a, .nav-toggle, .btn, .btn-login {
    font-family: inherit;
}

.footer, .footer * {
    font-family: inherit;
}

.DefaultAanhef, .DefaultInfo {
    font-family: inherit;
}

/* ========== Achtergrond & masker ========== */
.page-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1;
    pointer-events: none;
}

body.has-bg {
    margin: 0;
    padding: 0;
    background-image: var(--bg-url);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100vw;
}

/* ========== Header & navigatie ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 64px;
    background: transparent;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 70px;
    height: 70px;
    margin: 0;
    opacity: .8;
}

.header-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 30pt;
    font-weight: bold;
    color: #a18120;
}

/* Menu */
.menu {
    margin-left: auto;
    display: flex;
    align-items: center;
}

    .menu > ul {
        display: flex;
        align-items: center;
        gap: 8px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .menu li {
        position: relative;
    }

    .menu a {
        display: block;
        padding: 8px 12px;
        line-height: 1;
        color: #fff;
        text-decoration: none;
        background-color: rgba(100,50,125,.6);
        border-radius: 5px;
    }

        .menu a:hover {
            background-color: rgba(150,90,175,.8);
        }

    /* Dropdown */
    .menu ul.dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        margin-top: 0;
        background-color: rgba(100,50,125,.9);
        padding: 6px 0;
        z-index: 10;
    }

        .menu li:hover > ul.dropdown, .menu ul.dropdown:hover {
            display: block;
        }

/* Mobile nav */
.nav-toggle {
    display: none;
}

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
        position: absolute;
        right: 16px;
        top: 12px;
        z-index: 7;
        background: rgba(100,50,125,.8);
        color: #fff;
        border: 0;
        border-radius: 6px;
        padding: 8px 10px;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
    }

    .menu > ul {
        display: none;
    }

    .menu.open > ul {
        display: block;
        position: absolute;
        right: 16px;
        top: 64px;
        background: rgba(100,50,125,.95);
        padding: 8px;
        border-radius: 8px;
    }

    .menu.open ul.dropdown {
        position: static;
        display: block;
        margin-top: 6px;
        padding: 0;
        background: transparent;
    }
}

/* ========== Login ========== */
.login-wrap {
    display: grid;
    grid-template-columns: 1fr 420px 420px 1fr;
    gap: 24px;
    margin-top: 140px;
    align-items: start;
}

.login-card {
    grid-column: 2 / span 1;
    background: transparent;
    color: white;
    text-align: left;
}

.login-art {
    grid-column: 3 / span 1;
    padding-top: 8px;
    text-align: left;
}

.label-login {
    color: white;
    font-size: 16px;
    display: block;
    margin-bottom: 6px;
}

.input-login {
    font-size: 18px;
    width: 100%;
    max-width: 360px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 4px;
    background: rgba(0,0,0,.25);
    color: white;
}

.btn-login {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 18px;
    background: #28a745;
    color: white;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

    .btn-login:hover {
        background: #218838;
    }

.forgot {
    margin-top: 24px;
    color: #FFCC99;
    font-size: 14pt;
}

    .forgot a {
        color: #FFCC99;
        text-decoration: underline;
    }

.login-error {
    margin-top: 18px;
    color: #FF9999;
    font-weight: bold;
    font-size: 18px;
}

/* ========== Content & Footer ========== */
.content-wrap {
    position: relative;
    z-index: 2;
    padding-top: 80px; /* ruimte onder header */
    padding-bottom: 100px; /* ruimte boven footer */
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background-color: #032011;
    border-top: 3px solid #092c03;
    color: #666622;
    padding: 8px 16px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 12px;
    align-items: start;
}

.footer-col {
    font-size: 11px;
    line-height: 1.4;
}

.footer-link {
    color: #666622;
    text-decoration: none;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.footer-controls {
    margin-top: 6px;
}

.custom-slider {
    width: 200px;
    height: 8px;
    background: #134501;
}

/* Mobiel: footer verbergen (optioneel) */
@media (max-width: 768px) {
    .footer, .push {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* ========== Standaard teksten (legacy) ========== */
.DefaultAanhef {
    font-weight: 700;
    color: #FFFF99;
    margin: 0 0 4px 0;
    font-size: clamp(18px, 2.2vw, 26px);
}

.DefaultInfo {
    color: #FFFFFF;
    font-size: clamp(14px, 1.8vw, 18px);
}

    .DefaultInfo a {
        color: #AAAFFF;
    }

/* Legacy containers transparant */
.mastertable, .mastertablecustom {
    background: transparent !important;
    border-collapse: collapse;
    width: 100%;
}

/* ========== Agenda / Kalender ========== */
a.btn-date {
    display: block;
    padding: 6px 8px;
    margin: 4px 0;
    border-radius: 4px;
    color: white;
    text-decoration: none;
}

    a.btn-date:hover {
        filter: brightness(1.07);
    }

/* Linkerkolom breedte */
.VergaderingMidden {
    width: 55%;
    padding-left: 5%;
    vertical-align: top;
}

/* Agenda-paneel */
.panelTransparant {
    background-color: rgba(235, 235, 255, 0.95);
    border: 2px solid rgba(255,170,221,0.7);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* Kalender */
.pc-calendar {
    width: 250px;
    background: rgba(200,200,225,0.8);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(120,160,220,.4);
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

.pc-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pc-cal-title {
    color: #123;
    font-weight: 700;
    text-transform: capitalize;
}

.pc-cal-header button {
    border: 0;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(100,50,125,.85);
    color: #fff;
}

.pc-cal-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 4px;
}

.pc-cal-dow {
    color: #123;
    text-align: center;
    font-size: 12px;
}

.pc-cal-pad {
    height: 30px;
}

.pc-cal-cell {
    height: 30px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255,255,255,.7);
    color: #123;
}

    .pc-cal-cell.has-meeting {
        background: rgba(102,51,153,.20);
        color: #123;
        border: 1px dashed rgba(102,51,153,.6);
    }

        .pc-cal-cell.has-meeting:hover {
            background: rgba(102,51,153,.30);
        }

    .pc-cal-cell.selected {
        outline: 2px solid rgba(102,51,153,.9);
        box-shadow: inset 0 0 0 2px #fff;
    }

/* Agenda layout helpers */
.TabelStandaard {
    table-layout: fixed;
    width: 100%;
}

.VergaderingMidden {
    width: auto !important;
}
/* optioneel: laat cel het kader volgen */
.VergaderingMidden {
    width: 55% !important;
    padding-left: 5% !important;
    vertical-align: top;
}

.TabCelLeegSepar {
    width: 2% !important;
}

.TabCelOpmaak {
    width: 33% !important;
    vertical-align: top;
    padding-left: 24px;
}

.panelTransparant {
    width: 100% !important;
    margin: 0 !important;
}

.pc-calendar {
    width: 272px !important;
    margin: 0 !important;
}

/* Agenda responsive */
@media (max-width: 992px) {
    .VergaderingMidden {
        width: 100%;
        padding-left: 0;
    }

    .pc-calendar {
        width: 272px !important;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    #calendar {
        display: none;
    }

    .only-mobile {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .TabCelLeegSepar, .TabCelOpmaak {
        display: none !important;
    }

    .VergaderingMidden {
        width: 100% !important;
        padding-left: 0 !important;
    }

    .panelTransparant {
        width: calc(100vw - 24px) !important;
        margin: 8px auto !important;
    }

    .only-mobile {
        display: block !important;
    }

    .agenda-actions-mobile .btn {
        width: 100%;
        display: block;
        margin-top: 8px;
    }
}

/* ========== Documenten layout ========== */
.docs-wrap {
    display: grid;
    grid-template-columns: 10% minmax(220px, 300px) 5% minmax(0,1fr) 10%;
    gap: 0;
    align-items: start;
}

.docs-panel {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    backdrop-filter: blur(2px);
}

.docs-panel--side {
    background: rgba(70,40,100,.45);
    color: #fff;
    padding: 14px;
}

.docs-panel--main {
    background: rgba(240,235,255,.90);
    color: #111;
    padding: 18px 20px;
}

.docs-title {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
    color: #24113a;
}

.docs-side-hint {
    font-size: 12px;
    color: #FFF6CC;
    margin: 2px 0 10px 0;
}

.docs-cats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-cat {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    background: rgba(120,70,160,.55);
    border: 1px solid rgba(255,255,255,.18);
}

    .docs-cat:hover {
        background: rgba(150,90,185,.70);
    }

    .docs-cat.active {
        background: rgba(200,160,255,.95);
        color: #24113a;
        font-weight: 700;
        border-color: rgba(255,255,255,.35);
    }

.docs-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px 0;
}

.docs-label {
    font-weight: 600;
    color: #222;
}

.docs-select {
    min-width: 320px;
    max-width: 560px;
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(20,20,40,.2);
}

.docs-help h2 {
    margin: 8px 0 6px 0;
    font-size: 18px;
    color: #7b36a6;
}

.docs-help p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #223;
}

.docs-open {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px dashed rgba(20,20,40,.2);
    margin-top: 16px;
    padding-top: 12px;
}

.docs-open-label {
    color: #333;
}

/* Documenten responsive */
@media (max-width: 980px) {
    .docs-wrap {
        grid-template-columns: 6% 1fr 6%;
    }

    .docs-side {
        grid-column: 2;
    }

    .docs-gap {
        display: none;
    }

    .docs-main {
        grid-column: 2;
        margin-top: 12px;
    }

    .docs-select {
        min-width: 0;
    }
}

/* Plaatsen Documenten (pagina-layout) */
.docpage-grid {
    display: grid;
    grid-template-columns: 10% 30% 5% 45% 10%;
    align-items: start;
}

.panel {
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
}

.panel-left {
    grid-column: 2;
    background: rgba(44, 26, 26, 0.5);
    color: #fff;
    padding: 18px 18px 22px 18px;
}

.panel-right {
    grid-column: 4;
    background: rgba(26, 26, 44, 0.55);
    color: #fff;
    padding: 22px 22px 26px 22px;
}

.panel h2 {
    margin: 0 0 10px 0;
    color: #FF88FF;
    letter-spacing: .3px;
}

.panel .muted {
    color: #e7e7e7;
    font-size: 0.95rem;
}

.form-label {
    font-weight: 600;
}

.btn-primary, .btn-outline-light {
    border-radius: 10px;
}

.help-hint {
    font-size: .9rem;
    color: #FFFFCC;
}

/* Documenten responsive (plaatsen) */
@media (max-width: 992px) {
    .docpage-grid {
        grid-template-columns: 5% 90% 5%;
        row-gap: 20px;
    }

    .panel-left {
        grid-column: 2;
    }

    .panel-right {
        grid-column: 2;
    }
}

/* ========== Ledenlijst / Users-index ========== */
.page {
    display: grid;
    grid-template-columns: minmax(260px, var(--sidebar-w)) 1fr;
    gap: var(--gap);
    align-items: start;
}

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    display: grid;
    gap: .75rem;
    background: linear-gradient(180deg, rgba(60,60,80,.3), rgba(40,40,60,.25));
    backdrop-filter: blur(6px);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.08);
}

.filter-title {
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--ink);
}

.small {
    color: var(--muted);
    font-size: .9rem;
}

.form-select, .form-input {
    width: 100%;
    padding: .6rem .8rem;
    background: rgba(20,20,30,.4);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--ink);
    border-radius: 10px;
    outline: none;
}

    .form-select:focus, .form-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(165,180,252,.15);
    }

.badge {
    display: inline-block;
    font-size: .8rem;
    color: #223;
    background: var(--brand);
    padding: .25rem .5rem;
    border-radius: 999px;
    margin-bottom: .5rem;
}

/* Content */
.content {
    display: grid;
    gap: var(--gap);
}

/* Info card */
.info {
    padding: var(--card-pad);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, rgba(30,30,45,.7), rgba(25,25,40,.6));
    border: 1px solid rgba(255,255,255,.08);
}

    .info h2 {
        margin: 0 0 .5rem 0;
        font-size: 1.2rem;
        color: var(--ink);
    }

    .info .tips {
        color: var(--muted);
        line-height: 1.5;
    }

/* Member card */
.card {
    padding: var(--card-pad);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, rgba(30,30,45,.7), rgba(25,25,40,.6));
    border: 1px solid rgba(255,255,255,.08);
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.card-head {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
    margin-bottom: .75rem;
}

.card-name {
    font-size: clamp(1.25rem, 1.1rem + .6vw, 1.75rem);
    font-weight: 700;
    color: #dbe3ff;
}

.card-grid {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 1rem 1.25rem;
}

@media (max-width: 720px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.photo {
    width: 100%;
    max-width: 250px;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.12);
}

.photo-caption {
    text-align: right;
    color: var(--muted);
    margin-top: .35rem;
    font-size: .95rem;
}

.rich {
    color: var(--ink);
    line-height: 1.7;
    font-size: 1.05rem;
}

.spacer {
    height: .5rem;
}

.card.active {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========== Utility toggles (algemeen bruikbaar) ========== */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 900px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}
