/* =====================
   ALGEMEEN
   ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Manrope', -apple-system, sans-serif;
    background: #f0f4f8;
    color: #1e293b;
    
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================
   HOME HEADER
   ===================== */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Newsreader', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2b4570;
}

.header nav a {
    color: #2b4570;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid #2b4570;
    padding-bottom: 2px;
}
.admin-icoon {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.admin-icoon:hover { color: #2b4570; }
.admin-icoon .material-symbols-outlined { font-size: 26px; }
/* =====================
   HOME PAGINA
   ===================== */
.page-title {
    font-family: 'Newsreader', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2b4570;
    text-align: center;
    margin: 48px 0 32px 0;
}

.les-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 420px));
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.les-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(43,69,112,0.07);
    border: 2px solid transparent;
    transition: 0.2s;
    text-decoration: none;
    color: #1e293b;
    display: block;
    overflow: hidden;
    padding: 0;
}

.les-card:hover { transform: translateY(-4px); border-color: #2b4570; }

.les-card-disabled { opacity: 0.6; cursor: default; }
.les-card-disabled:hover { transform: none; border-color: transparent; }

.les-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.les-card h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2b4570;
    margin-bottom: 8px;
}

.les-card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.les-card-footer .material-symbols-outlined { font-size: 18px; }

.toegang-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 48px);
    margin-top: 48px;
}

/* =====================
   BADGES
   ===================== */
.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.open { background: #d1fae5; color: #065f46; }
.badge.closed { background: #fee2e2; color: #991b1b; }

/* =====================
   ADMIN LINK
   ===================== */
.admin-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

/* =====================
   GECENTREERDE PAGINA'S
   ===================== */
.pagina-gecentreerd {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* =====================
   TOEGANG & ADMIN LOGIN
   ===================== */
.toegang-card {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(43,69,112,0.08);
    border: 1px solid #f1f5f9;
}

.toegang-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: #d7e3ff;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    color: #2b4570;
}

.toegang-icon .material-symbols-outlined { font-size: 32px; }

.toegang-titel {
    font-family: 'Newsreader', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2b4570;
    text-align: center;
    margin: 0 0 8px 0;
}

.toegang-ondertitel {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    margin-bottom: 32px;
}

.toegang-veld { margin-bottom: 20px; }

.toegang-veld label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #747780;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.toegang-input-wrapper { position: relative; }

.toegang-input-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 1px solid #c4c6d0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: left;
    margin: 0;
    box-sizing: border-box;
}

.toegang-input-wrapper input:focus {
    border-color: #2b4570;
    box-shadow: 0 0 0 4px rgba(43,69,112,0.08);
}

.toegang-input-wrapper button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #747780;
    padding: 0;
    display: flex;
    align-items: center;
}

.toegang-btn {
    width: 100%;
    background: #2b4570;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.toegang-btn:hover { transform: scale(1.02); box-shadow: 0 8px 20px rgba(43,69,112,0.2); }

.toegang-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

.toegang-terug {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #747780;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

.les-kaart-foto {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 14px 14px 0 0;
    margin: 0;
}

.les-kaart-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.les-card:hover .les-kaart-foto img { transform: scale(1.05); }
.les-kaart-foto.geen-foto { background: #dfe3e7; }

.les-kaart-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.les-kaart-badge.open { background: #6cf8bb; color: #00714d; }
.les-kaart-badge.gesloten { background: #ffdad6; color: #93000a; }

.les-kaart-body {
    padding: 16px 24px 20px 24px;
}

.les-kaart-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.les-kaart-footer .material-symbols-outlined { font-size: 16px; }

.les-kaart-meta { display: flex; gap: 4px; align-items: baseline; }
.meta-label { font-weight: 600; color: #475569; }
.toegang-terug:hover { color: #2b4570; }
.toegang-terug .material-symbols-outlined { font-size: 18px; }

/* =====================
   VRAAG PAGINA
   ===================== */
.vraag-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    z-index: 50;
}

.vraag-header-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vraag-logo {
    font-family: 'Newsreader', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2b4570;
}

.vraag-nav { display: flex; gap: 24px; }

.vraag-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.vraag-nav a.actief {
    color: #2b4570;
    border-bottom: 2px solid #006c49;
}

.vraag-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 80px;
}

.vraag-main-top {
    flex-shrink: 0;
    padding: 12px 0 8px 0;
}

.vraag-lijst {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.vraag-body {
    overflow: hidden;
}

.vraag-titel {
    font-family: 'Newsreader', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2b4570;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 12px 0 8px 0;
}

.vraag-menu {
    position: fixed;
    top: 48px;
    right: -240px;
    width: 240px;
    height: calc(100vh - 48px);
    background: white;
    z-index: 45;
    transition: right 0.25s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    padding: 16px 0;
}

.vraag-menu.open {
    right: 0;
}

.vraag-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #2b4570;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s;
}

.vraag-menu-item:hover { background: #f1f5f9; }
.vraag-menu-item .material-symbols-outlined { font-size: 20px; }

.vraag-card {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    word-break: break-word;
    border-left: 3px solid transparent;
    position: relative;
    background: white;
}

.vraag-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.vraag-card.mine {
    border-left-color: #3b82f6;
    border-color: #3b82f6;
    background: white;
}
.vraag-card .my-tag {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 9px;
    font-weight: 800;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vraag-card.mine .my-tag {
    display: block;
}
a.vraag-logo {
    text-decoration: none;
}

a.vraag-logo:hover {
    opacity: 0.8;
}
.vraag-terug-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.vraag-terug-link:hover { color: #2b4570; }
.vraag-terug-link .material-symbols-outlined { font-size: 18px; }
.vraag-tijdstip {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 8px;
}

.vraag-tekst {
    font-size: 17px;
    color: #2b4570;
    line-height: 1.5;
}

.vraag-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #f0f4f8;
    border-top: none;
    backdrop-filter: none;
    padding: 0;
    z-index: 50;
   padding-bottom: env(safe-area-inset-bottom);
}

.vraag-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px 12px 16px;
}

.vraag-invoer-wrapper {
    width: 100%;
}

.vraag-invoer-pill {
    display: flex;
    align-items: center;
    background: white;
    backdrop-filter: none;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 32px 64px -12px rgba(26,28,30,0.15);
    padding: 4px 4px 4px 20px;
    width: 100%;
}

.vraag-invoer-icoon {
    color: rgba(120, 90, 25, 0.5);
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 12px;
}

.vraag-invoer-pill input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    font-style: italic;
    font-family: 'Newsreader', serif;
    color: #1e293b;
    padding: 8px 0;
}

.vraag-invoer-pill input::placeholder {
    color: rgba(100,116,139,0.6);
}

.vraag-verstuur-rond {
    background: #112e58;
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(17,46,88,0.3);
}

.geen-vragen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #94a3b8;
    font-size: 15px;
    font-style: italic;
}

.vraag-verstuur-rond:hover { background: #1e3357; transform: scale(1.05); }
.vraag-verstuur-rond:active { transform: scale(0.92); }
.vraag-verstuur-rond .material-symbols-outlined { font-size: 22px; }

.feedback-msg {
    color: #10b981;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    height: 0;
    margin: 0;
    transition: opacity 0.3s;
}

.feedback-msg.show {
    height: 20px;
    margin-bottom: 4px;
}

.gesloten-banner {
    background: #fee2e2;
    color: #b91c1c;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    font-weight: bold;
}

.anoniem-melding {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.count-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Manrope', sans-serif;
}
.user-delete-btn {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    padding: 4px;
    display: none;
    align-items: center;
}

.user-delete-btn .material-symbols-outlined { font-size: 18px; }

.vraag-card.verwijderd {
    opacity: 0.5;
    border-left-color: #cbd5e1;
}

.verwijderd-tekst {
    font-size: 14px;
    color: #94a3b8;
    font-style: italic;
}

/* =====================
   ADMIN LAYOUT
   ===================== */
.admin-body { background: #f6fafe; min-height: 100vh; }

.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 50;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.admin-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #112e58;
    padding: 6px;
    align-items: center;
    border-radius: 8px;
    transition: background 0.15s;
}
.admin-hamburger:hover { background: #f1f5f9; }
.admin-hamburger .material-symbols-outlined { font-size: 26px; }

.admin-logo {
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #112e58;
    text-decoration: none;
}

.admin-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 256px;
    height: calc(100vh - 64px);
    background: #fafafa;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    z-index: 40;
}

.admin-sidebar-top {
    padding: 0 24px 24px 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.admin-sidebar-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.admin-sidebar-sub { font-size: 15px; color: #112e58; font-weight: 500; }

.admin-nav { flex: 1; padding: 8px 0; }

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.15s;
}

.admin-nav-item:hover { background: #f1f5f9; color: #112e58; }

.admin-nav-item.actief {
    background: #eff6ff;
    color: #112e58;
    border-right: 3px solid #112e58;
    font-weight: 600;
}

.admin-nav-item .material-symbols-outlined { font-size: 20px; }

.admin-sidebar-bottom {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
}

.admin-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.15s;
}

.admin-logout:hover { background: #fee2e2; }
.admin-logout .material-symbols-outlined { font-size: 18px; }

.admin-main {
    margin-left: 256px;
    margin-top: 64px;
    padding: 48px 40px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.admin-page-titel {
    font-family: 'Newsreader', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #112e58;
    margin-bottom: 8px;
}

.admin-page-sub { color: #64748b; font-size: 15px; }

.admin-nieuwe-les-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #112e58;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.admin-nieuwe-les-btn:hover { background: #1e3357; }
.admin-nieuwe-les-btn .material-symbols-outlined { font-size: 20px; }

/* =====================
   ADMIN LES KAARTEN
   ===================== */
.admin-lessen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.admin-kaart {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(17,46,88,0.05);
    border: 1px solid #f6fafe;
    text-decoration: none;
    color: #1e293b;
    display: block;
    transition: 0.2s;
}

.admin-kaart:hover { box-shadow: 0 20px 40px rgba(17,46,88,0.08); transform: translateY(-4px); }

.admin-kaart-foto {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.admin-kaart-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.admin-kaart:hover .admin-kaart-foto img { transform: scale(1.05); }
.admin-kaart-foto.geen-foto { background: #dfe3e7; }

.admin-kaart-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.admin-kaart-badge.open { background: #6cf8bb; color: #00714d; }
.admin-kaart-badge.gesloten { background: #ffdad6; color: #93000a; }

.admin-kaart-body { padding: 20px 24px; }

.admin-kaart-body h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #112e58;
    margin-bottom: 16px;
}

.admin-kaart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.admin-kaart-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.admin-kaart-count .material-symbols-outlined { font-size: 16px; }

.admin-kaart-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #112e58;
    transition: gap 0.2s;
}
/* =====================
   ADMIN LES DETAIL (NIEUW)
   ===================== */
.admin-les-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-les-header {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 28px 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin: 20px 0 24px 0;
    gap: 10px;
}

.admin-les-titel {
    font-family: 'Newsreader', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.admin-les-code {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.admin-les-code strong {
    background: #f1f5f9;
    color: #2b4570;
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 800;
}

.admin-les-acties {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-vragen-lijst {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: visible;
    padding: 0;
}

.admin-kaart:hover .admin-kaart-link { gap: 8px; }
.admin-kaart-link .material-symbols-outlined { font-size: 16px; }

/* =====================
   HAMBURGER MENU (MOBIEL)
   ===================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #112e58;
    padding: 4px;
}

.hamburger { display: flex; align-items: center; }

@media (max-width: 768px) {

    .admin-hamburger { display: flex; }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 39;
    }

    .sidebar-overlay.open { display: block; }

    .admin-main {
        margin-left: 0;
        padding: 24px 16px;
    }

    .admin-lessen-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* =====================
   DASHBOARD LES DETAIL
   ===================== */
.back-link { color: #2b4570; text-decoration: none; font-weight: bold; font-size: 14px; display: inline-block; margin-bottom: 20px; }

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.dashboard-actions { display: flex; gap: 10px; margin-bottom: 25px; }

.btn-toggle-compact {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-toggle {
    padding: 12px 28px;
    border-radius: 10px;
    border: 2px solid;
    background: white;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-toggle.sluiten {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-toggle.sluiten:hover {
    background: #ef4444;
    color: white;
}

.btn-toggle.openen {
    border-color: #10b981;
    color: #10b981;
}
.btn-toggle.openen:hover {
    background: #10b981;
    color: white;
}
.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #2b4570;
    border: 2px solid #2b4570;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}

.btn-delete-all {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: #94a3b8;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}

.btn-delete-all:hover { color: #ef4444; background: #fee2e2; }
.btn-delete-all .material-symbols-outlined { font-size: 18px; }

.q-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    word-break: break-word;
}

.q-card:last-child {
    border-bottom: none;
}

.q-card-admin { display: flex; justify-content: space-between; align-items: flex-start; }

.delete-btn {
    background: #f6fafe;
    color: #cbd5e1;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: 0.15s;
}

.delete-btn:hover { background: #fee2e2; color: #ef4444; }

/* =====================
   MODALS
   ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.modal-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.modal-titel {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #112e58;
    margin-bottom: 24px;
}

.modal-tekst { color: #475569; font-size: 15px; margin-bottom: 24px; line-height: 1.6; }

.modal-veld { margin-bottom: 16px; }

.modal-veld label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #747780;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.modal-veld input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #c4c6d0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.modal-veld input:focus { border-color: #2b4570; box-shadow: 0 0 0 3px rgba(43,69,112,0.08); }

.modal-fout {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.modal-acties {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-btn-annuleer {
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}

.modal-btn-annuleer:hover { background: #f6fafe; }

.modal-btn-opslaan {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: #112e58;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}

.modal-btn-opslaan:hover { background: #1e3357; }

.modal-btn-verwijder {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: #ef4444;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}

.modal-btn-verwijder:hover { background: #dc2626; }

/* =====================
   ADMIN KAART ACTIES
   ===================== */
.admin-kaart-wrapper { position: relative; }

.admin-kaart-acties {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: #f6fafe;
    border-top: 1px solid #f1f5f9;
}

.admin-kaart-edit-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    color: #2b4570;
    border: 1px solid #e2e8f0;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    flex: 1;
    justify-content: center;
}

.admin-kaart-edit-btn:hover { background: #eff6ff; border-color: #2b4570; }
.admin-kaart-edit-btn .material-symbols-outlined { font-size: 16px; }

.admin-kaart-del-btn {
    display: flex;
    align-items: center;
    background: white;
    color: #ef4444;
    border: 1px solid #e2e8f0;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.15s;
}

.admin-kaart-del-btn:hover { background: #fee2e2; border-color: #ef4444; }
.admin-kaart-del-btn .material-symbols-outlined { font-size: 16px; }

.admin-kaart-order-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: white; border: 1px solid #e2e8f0; border-radius: 8px;
    cursor: pointer; color: #64748b; transition: 0.15s;
}
.admin-kaart-order-btn:hover { background: #f1f5f9; border-color: #94a3b8; color: #1e293b; }
.admin-kaart-order-btn .material-symbols-outlined { font-size: 16px; }

@media (min-width: 769px) {
    .admin-sidebar {
        transform: translateX(0) !important;
    }
}

/* =====================
   KAART EXTRA ACTIES (INSCHRIJVEN / VRAAG VOORAF)
   ===================== */
.les-card-wrapper {
    display: flex;
    flex-direction: column;
}
.les-card-extra {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-top: none;
    border-radius: 0 0 16px 16px;
    margin-top: -4px;
}
.les-card-wrapper:hover .les-card-extra {
    border-color: #2b4570;
    border-top: none;
}
.les-extra-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2b4570;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    transition: 0.15s;
}
.les-extra-btn:hover {
    background: #eff6ff;
    border-color: #2b4570;
    transform: none;
}
.les-extra-btn .material-symbols-outlined { font-size: 17px; }

/* =====================
   FORMULIEREN (INSCHRIJVEN / VRAGEN VOORAF)
   ===================== */
.toegang-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #c4c6d0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    color: #1e293b;
}
.toegang-textarea:focus {
    border-color: #2b4570;
    box-shadow: 0 0 0 4px rgba(43,69,112,0.08);
}
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.radio-optie {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: 0.15s;
}
.radio-optie:hover { border-color: #2b4570; background: #f0f4f8; }
.radio-optie input[type="radio"] { margin-top: 3px; flex-shrink: 0; accent-color: #2b4570; }
.radio-tekst { font-size: 14px; color: #1e293b; line-height: 1.5; }

/* =====================
   ADMIN TABS
   ===================== */
.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.tab-knop {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.tab-knop:hover { color: #112e58; }
.tab-knop.actief { color: #112e58; border-bottom-color: #112e58; }
.tab-count {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.tab-knop.actief .tab-count { background: #dbeafe; color: #1e40af; }

/* =====================
   ADMIN LIJST (INSCHRIJVINGEN / VRAGEN VOORAF)
   ===================== */
.admin-lijst { display: flex; flex-direction: column; gap: 8px; }
.admin-rij {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.admin-rij-kop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-rij-email { font-weight: 600; color: #112e58; font-size: 15px; }
.admin-rij-naam { font-weight: 600; color: #112e58; font-size: 15px; }
.admin-rij-tijd { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.admin-rij-vraag { font-size: 15px; color: #1e293b; line-height: 1.5; margin-bottom: 4px; }
.admin-rij-details { font-size: 13px; color: #64748b; line-height: 1.5; }
.badge-bbq-ja { background: #d1fae5; color: #065f46; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-bbq-nee { background: #f1f5f9; color: #64748b; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.admin-leeg {
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
    font-style: italic;
    padding: 48px 0;
}
.admin-laden { text-align: center; color: #94a3b8; padding: 48px 0; font-size: 15px; }

/* =====================
   PUBLICATIE & TYPE BADGES
   ===================== */
.pub-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pub-badge.gepubliceerd { background: #d1fae5; color: #065f46; }
.pub-badge.concept { background: #fef3c7; color: #92400e; }

.type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e0e7ff;
    color: #3730a3;
}

.admin-kaart-status {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-les-knoppen {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

a.btn-action { text-decoration: none; color: inherit; }

/* =====================
   INSCHRIJFPAGINA (PUBLIEK)
   ===================== */
/* Eigen body-class: de vraag-body blokkeert scrollen (overflow: hidden) */
.inschrijf-body {
    overflow-y: auto;
}

.inschrijf-main {
    max-width: 640px;
    margin: 0 auto;
    /* extra ruimte bovenaan zodat de fixed .vraag-header niet over de titel valt */
    padding: 104px 20px 80px;
}

.inschrijf-titel {
    font-family: 'Newsreader', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #112e58;
    margin-bottom: 24px;
}

.inschrijf-info {
    background: #f0f6ff;
    border: 1px solid #d3e3f8;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inschrijf-info-regel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #1e293b;
    font-size: 15px;
}

.inschrijf-info-regel .material-symbols-outlined {
    color: #2b4570;
    font-size: 22px;
    flex-shrink: 0;
}

.dagen-keuze {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hogere specificiteit dan .modal-veld label (die display:block + uppercase zet) */
.modal-veld label.dag-optie {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #c4c6d0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    color: #1e293b;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.modal-veld label.dag-optie:has(input:checked) {
    border-color: #2b4570;
    background: #f0f6ff;
}

.modal-veld label.dag-optie:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.dag-optie input {
    width: 18px;
    height: 18px;
    accent-color: #2b4570;
    flex-shrink: 0;
}

.inschrijf-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(17, 46, 88, 0.06);
}

.inschrijf-form .toegang-btn { margin-top: 8px; }

.inschrijf-form input:not([type="checkbox"]) {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #c4c6d0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.inschrijf-form input:not([type="checkbox"]):focus { border-color: #2b4570; box-shadow: 0 0 0 3px rgba(43,69,112,0.08); }

.veld-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

.inschrijf-succes {
    text-align: center;
    padding: 16px 8px;
}

.inschrijf-succes .material-symbols-outlined {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 12px;
}

.inschrijf-succes h2 {
    font-family: 'Newsreader', serif;
    color: #112e58;
    margin-bottom: 8px;
}

.inschrijf-succes p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* =====================
   MODAL SELECT
   ===================== */
.modal-veld select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #c4c6d0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.modal-veld select:focus { border-color: #2b4570; box-shadow: 0 0 0 3px rgba(43,69,112,0.08); }

/* =====================
   INSCHRIJVINGEN TABEL (ADMIN)
   ===================== */
.insch-tabel-titel {
    font-family: 'Newsreader', serif;
    color: #112e58;
    font-size: 1.2rem;
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insch-tabel-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow-x: auto;
}

.insch-tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.insch-tabel th {
    text-align: left;
    padding: 14px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #747780;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.insch-tabel td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.insch-tabel tr:last-child td { border-bottom: none; }

.insch-leeg {
    text-align: center;
    color: #94a3b8;
    padding: 32px !important;
}

/* =====================
   PREVIEW BANNER (admin voorbeeldweergave)
   ===================== */
.preview-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.preview-banner .material-symbols-outlined {
    font-size: 20px;
    flex-shrink: 0;
}

/* Toegangspagina centreert horizontaal; met banner verticaal stapelen */
.toegang-wrapper:has(.preview-banner) {
    flex-direction: column;
}

/* Vraagpagina: banner bovenaan de vaste main, niet laten krimpen */
.vraag-main .preview-banner {
    flex-shrink: 0;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* =====================
   MAIL TEMPLATES ADMIN
   ===================== */
.mail-templates-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mail-template-kaart {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.mail-template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mail-template-naam {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.mail-template-onderwerp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.mail-template-onderwerp .material-symbols-outlined {
    font-size: 16px;
    color: #94a3b8;
}

.mail-template-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 12px 0;
    font-family: monospace;
}

.mail-vars-lijst {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.mail-var {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-family: monospace;
}
