html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html { font-size: 15px; }
}

body {
    margin-bottom: 60px;
    background-color: #f1f4f8;
    color: #2d3748;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── NAVBAR ── */
.navbar {
    background-color: #1e293b !important;
    border-bottom: 3px solid #3b82f6;
}

.navbar-brand {
    font-size: 1.15rem;
    letter-spacing: 0.4px;
    color: #f8fafc !important;
}

.nav-link {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem !important;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.08);
    color: #f8fafc !important;
}

/* ── PAGINA TITELS ── */
h2 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* ── FILTER CHECKBOXES ── */
#filterForm label {
    font-size: 0.85rem;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

#filterForm label:has(input:checked) {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

#filterForm input[type=checkbox] {
    display: none;
}

/* ── GROEP KNOPPEN ── */
#groepenKnoppen .btn {
    border-radius: 20px;
    font-size: 0.82rem;
    padding: 5px 16px;
    transition: all 0.2s;
    border-color: #94a3b8;
    color: #475569;
}

#groepenKnoppen .btn:hover {
    background-color: #f1f5f9;
}

#groepenKnoppen .btn.btn-secondary {
    background-color: #1e293b;
    border-color: #1e293b;
    color: white;
}

/* ── ZOEKBALK ── */
#naamZoek {
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding-left: 1rem;
    background-color: #fff;
    font-size: 0.88rem;
}

#naamZoek:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ── TABEL ── */
.table thead th {
    background-color: #1e293b;
    color: #e2e8f0;
    font-weight: 600;
    border: none;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.table tbody tr:hover {
    background-color: #eff6ff;
    cursor: pointer;
}

.table tbody tr.table-active {
    background-color: #dbeafe;
}

.table {
    font-size: 0.88rem;
    background-color: #fff;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* ── SELECTIE TELLER ── */
#selectieTeller .badge {
    background-color: #1e293b !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    border-radius: 20px;
}

#selectieTeller .btn-outline-secondary {
    border-radius: 20px;
    font-size: 0.8rem;
    color: #64748b;
    border-color: #cbd5e1;
}

/* ── EMAIL KAART ── */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background-color: #fff;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-size: 1rem;
    background-color: #1e293b !important;
}

.card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ── FORMULIER ── */
.form-control, .form-control-sm {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    background-color: #fff;
}

.form-label {
    color: #475569;
}

/* ── VERSTUUR KNOP ── */
#verstuurBtn {
    background-color: #3b82f6;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

#verstuurBtn:hover:not(:disabled) {
    background-color: #2563eb;
}

#verstuurBtn:disabled {
    background-color: #94a3b8;
}

/* ── FOCUS RING ── */
.btn:focus, .form-control:focus {
    outline: none;
}

/* ── FOOTER ── */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #f1f4f8 !important;
    border-top: 1px solid #e2e8f0 !important;
}

.footer .text-muted {
    color: #94a3b8 !important;
    font-size: 0.78rem;
}
