:root {
    --sidebar-bg: #1f2a37;
    --brand: #0d6efd;
}

body { background: #f5f6f8; }

.brand { font-weight: 700; color: inherit; text-decoration: none; letter-spacing: .2px; }

/* Inlogpagina's */
body.guest { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.guest-card { width: 100%; max-width: 420px; background: #fff; border-radius: .75rem; padding: 2rem; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.06); }

/* App-layout */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; background: var(--sidebar-bg); color: #fff; padding: 1.25rem 1rem; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { color: #fff; font-size: 1.2rem; }
.sidebar .nav-link { color: rgba(255,255,255,.8); border-radius: .4rem; padding: .45rem .6rem; display: flex; align-items: center; gap: .5rem; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar .nav-link.active { color: #fff; background: var(--brand); }
.sidebar .nav-link.disabled { color: rgba(255,255,255,.4); }
.sidebar .nav-link .badge { font-size: .65rem; margin-left: auto; }
.sidebar .nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); margin: 1rem .6rem .25rem; }
.sidebar-footer { margin-top: auto; padding-top: 1rem; }
.content { flex: 1; padding: 1.75rem 2rem; min-width: 0; }

@media (max-width: 768px) {
    .app { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; }
    .content { padding: 1rem; }
}

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-header h1 { font-size: 1.5rem; margin: 0; }

.card { border: 0; box-shadow: 0 .125rem .5rem rgba(0,0,0,.05); }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 600; }
.stat-card .stat-label { color: #6c757d; font-size: .85rem; }

.table > :not(caption) > * > * { vertical-align: middle; }
.table-hover tbody tr[data-href] { cursor: pointer; }

/* Verplichte velden: zwart sterretje na het label */
.form-label.required::after { content: " *"; color: #212529; }

.color-dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; vertical-align: middle; }

.totp-qr { display: flex; justify-content: center; padding: 1rem; background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; }
.totp-secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; word-break: break-all; }
