/* ─────────────────────────────────────────────────────────────────────────
   SiteNotice — basisstijl
   ───────────────────────────────────────────────────────────────────────── */

:root {
    --heading-font: "Raleway", sans-serif;
    --main-font: "Roboto", sans-serif;

    --main-blue: #013079;
    --light-blue: #5496b8;
    --dark-blue: #233a8b;

    --light-grey: #f7f7f7;
    --off-white: #ffffffbf;

    --bg-dark1: #001830;
    --bg-dark2: #1a253d;
    --bg-dark3: #1d3058;

    --brand-gradient: linear-gradient(135deg, var(--light-blue), var(--main-blue));

    --line: #e7e9ef;
    --ink: #14181f;
    --muted: #64707d;
    --surface: #ffffff;

    --up-green: #16a34a;
    --up-green-bg: #eafaf0;
    --down-red: #dc2626;
    --down-red-bg: #fdecec;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 24px 60px rgba(0, 12, 40, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background: var(--light-grey);
    color: var(--ink);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

a {
    color: var(--main-blue);
}

::selection {
    background: rgba(84, 150, 184, 0.28);
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
/* ── Impersonatie-banner (admin "login als klant") ───────────────────── */
.impersonate-banner {
    background: #92400e;
    color: #fff;
    text-align: center;
    font-size: 13.5px;
    padding: 9px 16px;
    position: sticky;
    top: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.impersonate-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.app-navbar {
    background: var(--bg-dark2);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-navbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    flex-wrap: wrap;
    width: 100%;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.01em;
    padding: 10px 0;
}

.app-logo:hover {
    color: #fff;
}

.app-logo .mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(1, 48, 121, 0.4);
}

.nav-plan-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--light-blue);
    background: rgba(84, 150, 184, 0.16);
    border: 1px solid rgba(84, 150, 184, 0.3);
    padding: 4px 11px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

.nav-plan-badge:hover {
    background: rgba(84, 150, 184, 0.28);
    color: #fff;
}

@media (max-width: 420px) {
    .nav-plan-badge {
        display: none;
    }
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 10px;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(84, 150, 184, 0.35);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.app-nav a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.app-nav a.active {
    color: #fff;
    background: rgba(84, 150, 184, 0.28);
}

.app-nav .btn-logout {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13.5px;
}

@media (max-width: 991.98px) {
    .app-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0 16px;
        gap: 2px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 6px;
    }

    .app-nav a {
        width: 100%;
    }
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.app-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 70px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.detail-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-title {
    font-size: 1.6rem;
    margin: 0 0 4px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.page-subtitle {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0;
}

.plan-usage-note {
    color: #8a93a1;
    font-size: 13px;
}

/* ── Dashboard: zoeken/filteren + bulkacties ─────────────────────────── */
.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dashboard-toolbar-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

#bulkModeToggle.is-active {
    background: var(--main-blue);
    color: #fff !important;
    border-color: var(--main-blue);
}

.bulk-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #eaf0fb;
    border: 1px solid #c9d9f2;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--main-blue);
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.card-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.7rem;
    box-shadow: var(--shadow-sm);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--main-blue);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(1, 48, 121, 0.18);
}

.btn-brand:hover {
    background: var(--dark-blue);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 48, 121, 0.26);
}

.btn-outline-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    color: var(--main-blue) !important;
    border: 1px solid #d7ddea;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}

.btn-outline-brand:hover {
    background: #eef3fb;
    border-color: var(--light-blue);
}

.btn-danger-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--down-red) !important;
    border: 1px solid #f3c6c6;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-danger-ghost:hover {
    background: var(--down-red-bg);
}

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-control {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(84, 150, 184, 0.18);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

@media (max-width: 620px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.field-hint {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 6px;
}

/* ── Auth (split screen) ──────────────────────────────────────────────── */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

@media (max-width: 900px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }
}

.auth-brand {
    background:
        radial-gradient(circle at 20% 10%, rgba(84, 150, 184, 0.35), transparent 55%),
        linear-gradient(160deg, var(--bg-dark3), var(--bg-dark1));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .auth-brand {
        padding: 40px 28px;
    }
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 46px;
}

.auth-brand-logo .mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(1, 48, 121, 0.5);
}

.auth-brand h1 {
    color: #fff;
    font-size: 1.9rem;
    line-height: 1.25;
    max-width: 20ch;
    margin-bottom: 18px;
}

.auth-brand p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    max-width: 38ch;
    line-height: 1.6;
    margin-bottom: 32px;
}

.auth-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.auth-brand-list .ic {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(84, 150, 184, 0.22);
    color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .auth-brand-list,
    .auth-brand p {
        display: none;
    }

    .auth-brand h1 {
        font-size: 1.5rem;
    }
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--surface);
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-card h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.auth-sub {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 26px;
}

.auth-alert {
    background: var(--down-red-bg);
    color: var(--down-red);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-footer {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 22px;
}

/* ── Status badges ────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-up {
    color: var(--up-green);
    background: var(--up-green-bg);
}

.status-down {
    color: var(--down-red);
    background: var(--down-red-bg);
}

.status-unknown {
    color: var(--muted);
    background: #f0f1f4;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
}

.status-down .status-dot {
    animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ── Misc ─────────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--muted);
}

.empty-state .empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eaf0fb;
    color: var(--main-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}

.badge-plan {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--main-blue);
    background: #eaf0fb;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 2px;
}

.section-note {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 14px;
}

/* ── Accentkleur-kiezer (instellingen) ───────────────────────────────── */
.color-swatch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: transform 0.12s, border-color 0.12s;
}

.color-swatch:hover {
    transform: scale(1.08);
}

.color-swatch.is-active {
    border-color: var(--ink);
}

.color-swatch.is-active::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 12px;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.color-swatch-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ── Compact row actions (page list, etc.) ───────────────────────────── */
.row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.row-actions form {
    display: inline-flex;
}

.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 30px;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-mini-outline {
    background: var(--surface);
    color: var(--main-blue);
    border: 1px solid #d7ddea;
}

.btn-mini-outline:hover {
    background: #eef3fb;
    border-color: var(--light-blue);
    color: var(--main-blue);
}

.btn-mini-danger {
    background: var(--surface);
    color: var(--down-red);
    border: 1px solid #f3c6c6;
    padding: 0;
}

.btn-mini-danger:hover {
    background: var(--down-red-bg);
}

/* ── Back link (detail sub-pages) ────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 18px;
}

.back-link:hover {
    color: var(--main-blue);
}

/* ── Kennisbank ───────────────────────────────────────────────────────── */
.kb-help-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--main-blue);
    background: #eaf0fb;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.kb-help-link:hover {
    background: #dde8fa;
    color: var(--main-blue);
}

.kb-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 760px) {
    .kb-layout {
        grid-template-columns: 1fr;
    }
}

.kb-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    position: sticky;
    top: 76px;
}

@media (max-width: 760px) {
    .kb-sidebar {
        position: static;
    }
}

.kb-sidebar-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 16px 0 6px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.kb-sidebar-category i {
    color: var(--main-blue);
    font-size: 12px;
}

.kb-sidebar-category:first-child {
    margin-top: 0;
}

.kb-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-grey);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 16px;
}

.kb-search-box i {
    color: var(--muted);
    font-size: 13px;
}

.kb-search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 13.5px;
    color: var(--ink);
    width: 100%;
    font-family: var(--main-font);
}

.kb-welcome-banner {
    background: linear-gradient(135deg, var(--main-blue), var(--dark-blue));
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    color: #fff;
    margin-bottom: 22px;
}

.kb-welcome-banner h2 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.kb-welcome-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}

.kb-welcome-banner a {
    color: #fff;
    text-decoration: underline;
}

.kb-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 760px) {
    .kb-category-grid {
        grid-template-columns: 1fr;
    }
}

.kb-category-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.kb-category-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.kb-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eaf0fb;
    color: var(--main-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.kb-category-card-head h3 {
    font-size: 15.5px;
    margin: 0;
}

.kb-category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kb-category-card li {
    margin-bottom: 12px;
}

.kb-category-card li:last-child {
    margin-bottom: 0;
}

.kb-category-card a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.kb-category-card a:hover {
    color: var(--main-blue);
}

.kb-category-card p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

.kb-sidebar-link {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
}

.kb-sidebar-link:hover {
    background: var(--light-grey);
    color: var(--ink);
}

.kb-sidebar-link.active {
    background: #eaf0fb;
    color: var(--main-blue);
    font-weight: 600;
}

.kb-content {
    min-height: 300px;
}

.kb-article-body h3 {
    font-size: 15px;
    margin: 22px 0 8px;
}

.kb-article-body h3:first-child {
    margin-top: 0;
}

.kb-article-body p {
    font-size: 14.5px;
    color: var(--ink);
    line-height: 1.65;
    margin-bottom: 12px;
}

.kb-article-body ul {
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 12px;
    padding-left: 20px;
}

.kb-article-body li {
    margin-bottom: 4px;
}

.kb-article-body code {
    background: var(--light-grey);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 13px;
}

/* Illustratieve knop-voorbeelden in kennisbank-artikelen: zelfde stijl/kleur
   als de echte knop, maar kleiner, zodat ze niet te dominant ogen tussen
   de lopende tekst. */
.kb-inline-btn {
    font-size: 12px !important;
    padding: 5px 12px !important;
    line-height: 1.4 !important;
}


/* ── Publieke statuspagina URL + upsell-hints ────────────────────────── */
.status-url-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-grey);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 14px;
}

.status-url-box i {
    color: var(--muted);
}

.upsell-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fdf3e3;
    color: #92620a;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

.plan-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-feature-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--ink);
}

.plan-feature-list li .fa-check {
    color: var(--up-green);
    font-size: 12px;
}

.plan-feature-list li .fa-xmark {
    color: #c7cbd3;
    font-size: 12px;
}

/* ── Instellingen: 2-koloms layout ────────────────────────────────────── */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

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

.settings-col {
    display: flex;
    flex-direction: column;
}

/* ── Pakket-kiezer (instellingen) ─────────────────────────────────────── */
.plan-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1050px) {
    .plan-picker {
        grid-template-columns: repeat(2, 1fr);
        max-width: 620px;
    }
}

@media (max-width: 560px) {
    .plan-picker {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
}

.plan-picker-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-picker-card.is-current {
    border: 2px solid var(--main-blue);
    background: #fafbff;
}

.plan-picker-badge {
    position: absolute;
    top: -11px;
    left: 18px;
    background: var(--main-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
}

.plan-picker-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}

.plan-picker-price {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    margin-top: 2px;
}

.plan-picker-warning {
    font-size: 11.5px;
    color: #92620a;
    background: #fdf3e3;
    border-radius: 8px;
    padding: 7px 10px;
    margin-top: 10px;
}

/* ── Admin ────────────────────────────────────────────────────────────── */
.admin-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f2f5;
}

.admin-plan-row:last-child {
    border-bottom: none;
}

.admin-plan-count {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}

.admin-signup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f2f5;
    text-decoration: none;
    color: inherit;
}

.admin-signup-row:last-child {
    border-bottom: none;
}

.admin-signup-row:hover {
    color: var(--main-blue);
}

/* ── Detail page sub-navigation (Overzicht / Pagina's) ───────────────── */
.detail-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.detail-tab {
    display: inline-block;
    padding: 10px 4px;
    margin-right: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.detail-tab:hover {
    color: var(--ink);
}

.detail-tab.active {
    color: var(--main-blue);
    border-bottom-color: var(--main-blue);
}

/* ── Dark mode ────────────────────────────────────────────────────────── */
/* Bewust NEUTRAAL grijs/zwart, niet navy-getint -- anders vloeit alles
   (navbar, kaarten, achtergrond) in elkaar over tot 1 blauwe waas. De
   navbar blijft zijn eigen navy (net als in licht thema), de rest van de
   pagina wordt neutraal donker, met een helderder blauw voor knoppen/links
   zodat die voldoende contrast houden tegen de donkere achtergrond. */
[data-theme="dark"] {
    --line: #34363c;
    --ink: #eceef1;
    --muted: #9599a3;
    --surface: #1c1d21;
    --light-grey: #131417;
    --up-green-bg: #10261b;
    --down-red-bg: #2c1616;
    --main-blue: #5b8def;
    --dark-blue: #4472cf;
    --light-blue: #7bb4dc;
}

[data-theme="dark"] body {
    background: var(--light-grey);
}

[data-theme="dark"] .btn-brand {
    color: #0b0d10 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
}

[data-theme="dark"] .table-clean th {
    color: var(--muted);
}

[data-theme="dark"] .table-clean td,
[data-theme="dark"] .table-clean tr {
    border-color: var(--line);
}

[data-theme="dark"] .badge-plan,
[data-theme="dark"] .kb-help-link {
    background: #25272d;
    color: var(--ink);
}

[data-theme="dark"] .site-card:hover,
[data-theme="dark"] .card-box {
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

[data-theme="dark"] .empty-icon {
    background: #25272d;
}

[data-theme="dark"] .status-unknown {
    background: #25272d;
}

/* ── Thema-schakelaar (Instellingen) ──────────────────────────────────── */
.theme-toggle-row {
    display: flex;
    gap: 10px;
}

.theme-toggle-option {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
}

.theme-toggle-option.active {
    border-color: var(--main-blue);
    color: var(--main-blue);
    background: #eaf0fb;
}

[data-theme="dark"] .theme-toggle-option.active {
    background: #25272d;
}

.theme-toggle-option input {
    display: none;
}

/* ── Filter-tabs (herbruikbaar, o.a. admin-systeemlogboek) ───────────── */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: var(--light-grey);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-tab:hover {
    color: var(--ink);
    border-color: var(--muted);
}

.filter-tab.active {
    background: #eaf0fb;
    color: var(--main-blue);
    border-color: var(--main-blue);
}

[data-theme="dark"] .filter-tab.active {
    background: #25272d;
}
