/* ================================================
   Vylia Dashboard v2 – Sidebar + Premium Light/Dark
   Inter · Indigo #6366F1
================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Sidebar */
    --sidebar-bg:     #0F0F0F;
    --sidebar-text:   #A0A0A0;
    --sidebar-active: #FFFFFF;
    --sidebar-hover:  #1A1A1A;
    --sidebar-width:  220px;

    /* Content */
    --bg:         #F7F7F5;
    --bg-card:    #FFFFFF;
    --bg-surface: #F2F2F0;
    --border:     #E5E5E3;
    --border-soft:#EDEDEB;

    /* Tekst */
    --text-primary:   #111111;
    --text-secondary: #555555;
    --text-muted:     #999999;

    /* Accent */
    --accent:       #6366F1;
    --accent-soft:  rgba(99,102,241,0.10);
    --accent-hover: #4F46E5;
    --accent-pale:  rgba(99,102,241,0.10);

    /* Status */
    --status-reviewen:    #F59E0B;
    --status-goedgekeurd: #10B981;
    --status-afgekeurd:   #6B7280;
    --status-geplaatst:   #3B82F6;
    --status-ingepland:   #0EA5E9;
    --status-error:       #EF4444;
    --status-verwerken:   #8B5CF6;

    --red:    #DC2626;
    --red-bg: rgba(220, 38, 38, 0.07);

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:   0 20px 60px rgba(0,0,0,0.15);

    /* Radius */
    --radius-card: 14px;
    --radius:      12px;
    --radius-sm:   8px;
    --radius-pill: 99px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ── Dark mode ── */
[data-theme="dark"] {
    --bg:         #141414;
    --bg-card:    #1C1C1C;
    --bg-surface: #242424;
    --border:     #2E2E2E;
    --border-soft:#262626;

    --text-primary:   #F2F2F2;
    --text-secondary: #B5B5B5;
    --text-muted:     #777777;

    --shadow-card: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:   0 20px 60px rgba(0,0,0,0.6);

    --red-bg: rgba(220, 38, 38, 0.15);
}

html { font-size: 14px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background:  var(--bg);
    color:       var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing:  antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a      { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
img    { max-width: 100%; display: block; }

.logo-v    { color: var(--accent); }
.logo-rest { color: var(--text-primary); }
.logo-dot  { color: var(--accent); }

/* ================================================
   LOGIN (ongewijzigd ontwerp)
================================================ */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-wrapper { width: 100%; max-width: 400px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.login-card { width: 100%; background: var(--bg-card); border-radius: var(--radius-card); box-shadow: var(--shadow-md); padding: 44px 40px 40px; }
.login-logo { text-align: center; margin-bottom: 28px; font-size: 32px; font-weight: 800; letter-spacing: -1px; user-select: none; }
.login-title { font-size: 19px; font-weight: 700; text-align: center; margin-bottom: 5px; }
.login-subtitle { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.6px; text-transform: uppercase; }
.form-group input { background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font); font-size: 14px; padding: 10px 13px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.btn-login { background: var(--accent); border: none; border-radius: var(--radius-sm); color: #fff; font-size: 14px; font-weight: 700; margin-top: 6px; padding: 12px; transition: background .15s, box-shadow .15s, transform .1s; width: 100%; }
.btn-login:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(99,102,241,0.30); }
.btn-login:active { transform: translateY(1px); }
.login-footer { font-size: 12px; color: var(--text-muted); }

/* ================================================
   TWEESTAPSVERIFICATIE (login_2fa.php, totp_setup.php)
================================================ */
.tfa-breed { max-width: 440px; }
/* Code-invoer: cijfers uit elkaar, zodat je ziet wat je typt */
.totp-invoer { font-size: 22px !important; letter-spacing: 7px; text-align: center; font-weight: 600; padding: 12px 13px !important; }
.totp-invoer::placeholder { letter-spacing: 7px; }
.tfa-stappen { font-size: 13px; color: var(--text-secondary); margin: 0 0 16px; padding-left: 20px; line-height: 1.7; }
.tfa-stappen li { margin-bottom: 4px; }
/* Witte kaart onder de QR: die moet ook in het donkere thema wit blijven om te scannen */
.tfa-qr { background: #fff; border-radius: var(--radius-sm); padding: 12px; margin: 0 auto 20px; width: fit-content; line-height: 0; box-shadow: var(--shadow-md); }
.tfa-qr svg { display: block; width: 200px; height: 200px; }
.tfa-details { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.tfa-details summary { cursor: pointer; color: var(--accent); font-weight: 600; user-select: none; }
.tfa-details p { margin: 12px 0 6px; }
.tfa-secret { display: block; background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; letter-spacing: 1px; padding: 10px 13px; word-break: break-all; user-select: all; }
.tfa-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.tfa-codes span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; letter-spacing: 1px; text-align: center; color: var(--text-primary); user-select: all; }
.tfa-hulp { font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.6; margin-top: 18px; }
.tfa-hulp a { color: var(--accent); text-decoration: none; }
.tfa-hulp a:hover { text-decoration: underline; }

/* ================================================
   ALERTS
================================================ */
.alert { border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; }
.alert-error { background: var(--red-bg); border: 1px solid rgba(220,38,38,0.2); color: var(--red); }
/* Waarschuwing: iets klopt nog niet, maar er is niets stuk. Amber i.p.v. rood,
   en align-items op flex-start omdat deze melding meerdere regels beslaat. */
.alert-waarschuwing { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: #92400e; align-items: flex-start; line-height: 1.5; }

/* ================================================
   TOP BAR (admin.php gebruikt deze nog)
================================================ */
.top-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); height: 60px; display: flex; align-items: center; padding: 0 32px; position: sticky; top: 0; z-index: 200; gap: 40px; }
.top-bar-logo { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; user-select: none; flex-shrink: 0; }
.top-bar-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.top-bar-user { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.user-avatar-sm { align-items: center; background: var(--accent); border-radius: 50%; color: #fff; display: flex; font-size: 11px; font-weight: 700; height: 30px; justify-content: center; width: 30px; }
.logout-link { font-size: 12px; color: var(--text-muted); transition: color .14s; }
.logout-link:hover { color: var(--red); }
.nav-link { border-radius: var(--radius-pill); color: var(--text-muted); font-size: 13.5px; font-weight: 500; padding: 6px 14px; transition: color .14s, background .14s; }
.nav-link:hover { color: var(--text-primary); background: var(--bg-surface); }

/* ================================================
   APP LAYOUT: SIDEBAR + MAIN
================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    left: 0;
    position: sticky;
    top: 0;
    width: var(--sidebar-width);
    z-index: 300;
}

.sidebar-logo {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.6px;
    padding: 22px 22px 18px;
    user-select: none;
}
.sidebar-logo .logo-rest { color: #fff; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; }

.side-link {
    align-items: center;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    display: flex;
    font-size: 13.5px;
    font-weight: 500;
    gap: 11px;
    padding: 9px 12px;
    transition: background .14s, color .14s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.side-link svg { flex-shrink: 0; height: 16px; width: 16px; }
.side-link:hover { background: var(--sidebar-hover); color: #fff; }
.side-link.active { background: var(--sidebar-hover); color: var(--sidebar-active); font-weight: 600; }
.side-link.active svg { color: var(--accent); }

.sidebar-footer { border-top: 1px solid #222; margin-top: auto; padding: 14px 16px 18px; }

.theme-toggle {
    align-items: center;
    background: none;
    border: 1px solid #2A2A2A;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    display: flex;
    font-size: 12.5px;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
    padding: 7px;
    transition: border-color .14s, color .14s;
    width: 100%;
}
.theme-toggle:hover { border-color: #444; color: #fff; }

.sidebar-user { align-items: center; display: flex; gap: 10px; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { color: var(--sidebar-text); font-size: 11px; }
.sidebar-logout { color: var(--sidebar-text); font-size: 16px; transition: color .14s; }
.sidebar-logout:hover { color: var(--red); }

/* Hamburger (mobiel) */
.hamburger { background: none; border: none; color: var(--text-primary); display: none; font-size: 20px; padding: 6px; }
.sidebar-overlay { background: rgba(0,0,0,0.5); display: none; inset: 0; position: fixed; z-index: 290; }

/* ── Main ── */
.main { display: flex; flex: 1; flex-direction: column; min-width: 0; }

.main-topbar {
    align-items: center;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 14px;
    height: 60px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 150;
}

.search-input {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 13px;
    max-width: 320px;
    outline: none;
    padding: 8px 16px;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.search-input::placeholder { color: var(--text-muted); }

.month-select {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    padding: 8px 14px;
}

.btn-new-post {
    background: var(--accent);
    border: none;
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-left: auto;
    padding: 9px 18px;
    transition: background .15s, box-shadow .15s;
    white-space: nowrap;
}
.btn-new-post:hover { background: var(--accent-hover); box-shadow: 0 4px 14px rgba(99,102,241,0.35); }

.page-content { padding: 26px 28px 90px; }

/* ================================================
   WELKOMSTBANNER (klant)
================================================ */
.welcome-banner {
    background: linear-gradient(120deg, var(--accent) 0%, #8B5CF6 100%);
    border-radius: var(--radius-card);
    color: #fff;
    margin-bottom: 24px;
    padding: 24px 28px;
}
.welcome-title { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.welcome-sub { font-size: 13.5px; margin-top: 4px; opacity: .92; }
.welcome-progress { background: rgba(255,255,255,0.25); border-radius: 99px; height: 7px; margin-top: 16px; overflow: hidden; }
.welcome-progress-fill { background: #fff; border-radius: 99px; height: 100%; transition: width .6s ease; }
.welcome-progress-label { font-size: 12px; margin-top: 7px; opacity: .9; }

/* ================================================
   STAT CARDS
================================================ */
.stats-row {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 14px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 16px 18px;
}

.stat-card-top { align-items: center; display: flex; gap: 8px; margin-bottom: 8px; }
.stat-icon { align-items: center; border-radius: 8px; display: flex; height: 26px; justify-content: center; width: 26px; }
.stat-icon svg { height: 14px; width: 14px; }
.stat-label { color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.stat-num { font-size: 26px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.stat-sub { color: var(--text-muted); font-size: 11.5px; margin-top: 3px; }

.stat-totaal      .stat-icon { background: rgba(59,130,246,.12);  color: #3B82F6; }
.stat-reviewen    .stat-icon { background: rgba(245,158,11,.12);  color: #F59E0B; }
.stat-goedgekeurd .stat-icon { background: rgba(99,102,241,.12);  color: var(--accent); }
.stat-geplaatst   .stat-icon { background: rgba(16,185,129,.12);  color: #10B981; }
.stat-errors      .stat-icon { background: rgba(239,68,68,.12);   color: #EF4444; }
.stat-maand       .stat-icon { background: rgba(139,92,246,.12);  color: #8B5CF6; }

.month-progress {
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
    padding: 13px 20px;
}
.month-progress-label { color: var(--text-secondary); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.month-progress-track { background: var(--bg-surface); border-radius: 99px; flex: 1; height: 8px; overflow: hidden; }
.month-progress-fill { background: linear-gradient(90deg, var(--accent), #8B5CF6); border-radius: 99px; height: 100%; transition: width .6s ease; }
.month-progress-pct { color: var(--text-primary); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ================================================
   FILTER / VIEW BAR
================================================ */
.filter-bar { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.view-tabs { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-pill); display: flex; padding: 3px; }
.view-tab { background: none; border: none; border-radius: var(--radius-pill); color: var(--text-muted); font-size: 12.5px; font-weight: 600; padding: 6px 16px; transition: background .14s, color .14s; }
.view-tab.active { background: var(--bg-card); box-shadow: var(--shadow-card); color: var(--text-primary); }

.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tab { background: none; border: 1.5px solid transparent; border-radius: var(--radius-pill); color: var(--text-muted); font-size: 12.5px; font-weight: 500; padding: 6px 13px; transition: all .14s; }
.filter-tab:hover { color: var(--text-primary); }
.filter-tab.active { background: var(--accent-pale); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.tab-count { font-size: 11px; opacity: .7; }

/* ================================================
   POSTS GRID & CARDS
================================================ */
.posts-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid transparent;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.post-card-image { aspect-ratio: 16 / 10; background: var(--bg-surface); overflow: hidden; position: relative; }
.post-card-image img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-image-placeholder { align-items: center; color: var(--text-muted); display: flex; height: 100%; justify-content: center; opacity: .55; }
.post-image-placeholder svg { height: 36px; width: 36px; }

.status-badge {
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 4px 11px;
    position: absolute;
    right: 10px;
    text-transform: uppercase;
    top: 10px;
}
.badge-yellow { background: var(--status-reviewen); }
.badge-green  { background: var(--status-geplaatst); }
.badge-indigo { background: var(--status-goedgekeurd); }
.badge-blue   { background: var(--status-verwerken); }
.badge-cyan   { background: var(--status-ingepland); }
.badge-red    { background: var(--status-error); }
.badge-gray   { background: var(--status-afgekeurd); }

.dup-flag {
    background: rgba(0,0,0,0.55);
    border-radius: var(--radius-pill);
    color: #FBBF24;
    font-size: 13px;
    left: 10px;
    padding: 3px 9px;
    position: absolute;
    top: 42px;
}

.card-select {
    accent-color: var(--accent);
    cursor: pointer;
    height: 18px;
    left: 10px;
    opacity: 0;
    position: absolute;
    top: 12px;
    transition: opacity .15s;
    width: 18px;
    z-index: 5;
}
.post-card:hover .card-select, .card-select:checked { opacity: 1; }

.card-hover-overlay {
    align-items: center;
    background: rgba(0,0,0,0.35);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity .18s;
}
.post-card:hover .card-hover-overlay { opacity: 1; }
.btn-view-details {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: var(--radius-pill);
    color: #111;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 20px;
}

.post-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 10px; }
.post-card-title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; }
.post-card-text {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--text-secondary);
    display: -webkit-box;
    font-size: 12.5px;
    line-height: 1.55;
    overflow: hidden;
}

.post-card-footer {
    align-items: center;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    display: flex;
    font-size: 11.5px;
    gap: 10px;
    margin-top: auto;
    padding: 9px 16px;
}
.platform-icon { align-items: center; display: flex; }
.platform-icon svg { height: 14px; width: 14px; }
.post-card-footer .spacer { flex: 1; }

.post-actions { align-items: center; border-top: 1px solid var(--border-soft); display: flex; gap: 8px; padding: 11px 14px; }

.btn-card-approve {
    align-items: center;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    display: flex;
    flex: 1;
    font-size: 12.5px;
    font-weight: 700;
    gap: 6px;
    justify-content: center;
    padding: 9px;
    transition: background .14s, box-shadow .14s;
}
.btn-card-approve:hover { background: var(--accent-hover); box-shadow: 0 3px 10px rgba(99,102,241,0.35); }

.btn-card-icon {
    align-items: center;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    font-size: 13px;
    height: 34px;
    justify-content: center;
    transition: border-color .14s, color .14s;
    width: 36px;
}
.btn-card-icon:hover { border-color: var(--red); color: var(--red); }

.empty-state { color: var(--text-muted); grid-column: 1 / -1; padding: 60px 0; text-align: center; }
.empty-state h3 { color: var(--text-secondary); font-size: 16px; margin-bottom: 6px; }

/* Skeleton loaders */
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.sk { background: linear-gradient(90deg, var(--bg-surface) 25%, var(--border-soft) 50%, var(--bg-surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-img { aspect-ratio: 16/10; }
.sk-line { border-radius: 4px; height: 12px; margin: 12px 16px; }
.sk-line.short { width: 55%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ================================================
   KALENDER
================================================ */
.calendar-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 20px; }
.calendar-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 16px; }
.calendar-title { font-size: 16px; font-weight: 700; }
.calendar-nav { display: flex; gap: 6px; }
.calendar-nav button { background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 14px; height: 30px; width: 32px; }
.calendar-nav button:hover { border-color: var(--accent); color: var(--accent); }

.calendar-grid { display: grid; gap: 6px; grid-template-columns: repeat(7, 1fr); }
.cal-dow { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 4px; text-align: center; text-transform: uppercase; }
.cal-day { background: var(--bg-surface); border-radius: var(--radius-sm); min-height: 86px; padding: 6px; }
.cal-day.other { opacity: .35; }
.cal-day.today { outline: 2px solid var(--accent); }
.cal-day-num { color: var(--text-muted); font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.cal-pill {
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 600;
    margin-bottom: 3px;
    overflow: hidden;
    padding: 3px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================================================
   BULK BAR & REFRESH BANNER
================================================ */
.bulk-bar {
    align-items: center;
    background: var(--text-primary);
    border-radius: var(--radius-pill);
    bottom: 24px;
    box-shadow: var(--shadow-lg);
    color: var(--bg-card);
    display: none;
    gap: 14px;
    left: 50%;
    padding: 10px 12px 10px 20px;
    position: fixed;
    transform: translateX(-50%);
    z-index: 500;
}
.bulk-bar.show { display: flex; }
.bulk-count { font-size: 13px; font-weight: 600; }
.bulk-bar button { border: none; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; padding: 8px 16px; }
.bulk-approve { background: var(--accent); color: #fff; }
.bulk-approve:hover { background: var(--accent-hover); }
.bulk-reject { background: rgba(255,255,255,0.15); color: inherit; }
.bulk-cancel { background: none; color: inherit; opacity: .7; }

.refresh-banner {
    background: var(--accent);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    color: #fff;
    display: none;
    font-size: 13px;
    font-weight: 600;
    left: 50%;
    padding: 10px 22px;
    position: fixed;
    top: 74px;
    transform: translateX(-50%);
    z-index: 400;
}
.refresh-banner.show { display: block; }

/* ================================================
   DETAIL MODAL
================================================ */
.detail-overlay { align-items: center; backdrop-filter: blur(4px); background: rgba(0,0,0,0.45); display: flex; inset: 0; justify-content: center; padding: 28px; position: fixed; z-index: 1000; }
.detail-modal { background: var(--bg-card); border-radius: var(--radius-card); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: 92vh; max-width: 1000px; overflow: hidden; width: 100%; }

.detail-header { align-items: center; border-bottom: 1px solid var(--border-soft); display: flex; gap: 12px; padding: 16px 22px; }
.detail-header h2 { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Bewerkbare posttitel: leest als een kop tot je erin klikt. */
.detail-title-input { background: none; border: 1.5px solid transparent; border-radius: var(--radius-sm); color: var(--text-primary); flex: 1; font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; min-width: 0; padding: 5px 8px; margin: -5px -8px; }
.detail-title-input:hover { border-color: var(--border-soft); }
.detail-title-input:focus { background: var(--bg-surface); border-color: var(--accent); outline: none; }
.detail-title-input::placeholder { color: var(--text-muted); font-weight: 500; }
.btn-preview-toggle { background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-pill); color: var(--text-secondary); font-size: 12px; font-weight: 600; padding: 6px 14px; }
.btn-preview-toggle.active { background: var(--accent-pale); border-color: var(--accent); color: var(--accent); }
.detail-close { background: none; border: none; color: var(--text-muted); font-size: 24px; line-height: 1; padding: 0 4px; }
.detail-close:hover { color: var(--text-primary); }

.detail-body { display: flex; flex: 1; gap: 0; overflow: hidden; }
.detail-left { display: flex; flex: 1.4; flex-direction: column; gap: 12px; overflow-y: auto; padding: 18px 22px; }
.detail-right { border-left: 1px solid var(--border-soft); display: flex; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px 22px; }

.detail-textarea { background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font); font-size: 13.5px; line-height: 1.6; min-height: 180px; outline: none; padding: 12px 14px; resize: vertical; }
.detail-textarea:focus { border-color: var(--accent); }

.hashtag-pill { background: var(--accent-pale); border-radius: var(--radius-pill); color: var(--accent); display: inline-block; font-size: 11.5px; font-weight: 600; margin: 0 4px 4px 0; padding: 3px 10px; }
.detail-hashtags { line-height: 1; }

.detail-token-bar { align-items: center; color: var(--text-muted); display: flex; font-size: 11.5px; gap: 10px; }
.token-track { background: var(--bg-surface); border-radius: 99px; flex: 1; height: 5px; overflow: hidden; }
.token-fill { background: var(--accent); border-radius: 99px; height: 100%; transition: width .3s; }

.detail-created { color: var(--text-muted); font-size: 11.5px; }

/* AI instructie blok */
.ai-block { background: var(--accent-pale); border: 1.5px solid rgba(99,102,241,0.25); border-radius: var(--radius); padding: 12px 14px; }
.ai-block-title { align-items: center; color: var(--accent); display: flex; font-size: 12px; font-weight: 700; gap: 6px; margin-bottom: 8px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ai-chip { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-pill); color: var(--text-secondary); font-size: 11.5px; font-weight: 600; padding: 5px 11px; transition: all .14s; }
.ai-chip:hover { border-color: var(--accent); color: var(--accent); }
.ai-textarea { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font); font-size: 12.5px; min-height: 54px; outline: none; padding: 9px 11px; resize: vertical; width: 100%; }
.ai-textarea:focus { border-color: var(--accent); }
.btn-ai-rewrite { align-items: center; background: var(--accent); border: none; border-radius: var(--radius-sm); color: #fff; display: flex; font-size: 12.5px; font-weight: 700; gap: 7px; justify-content: center; margin-top: 8px; padding: 9px; width: 100%; }
.btn-ai-rewrite:hover { background: var(--accent-hover); }

/* Comments / activiteit */
.detail-section-title { align-items: center; color: var(--text-secondary); display: flex; font-size: 12.5px; font-weight: 700; gap: 7px; margin-bottom: 8px; }
.comment-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.comment-textarea { background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); flex: 1; font-family: var(--font); font-size: 13px; min-height: 56px; outline: none; padding: 9px 12px; resize: none; }
.comment-textarea:focus { border-color: var(--accent); }
.btn-comment-post { align-self: flex-end; background: var(--accent); border: none; border-radius: var(--radius-sm); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 16px; }
.no-comments { color: var(--text-muted); font-size: 12.5px; }
.comment-item { align-items: baseline; border-top: 1px solid var(--border-soft); display: grid; font-size: 12.5px; gap: 6px; grid-template-columns: auto 1fr auto; padding: 8px 0; }
.comment-author { font-weight: 600; white-space: nowrap; }
.comment-text { color: var(--text-secondary); }
.comment-time { color: var(--text-muted); font-size: 11px; white-space: nowrap; }

.activity-timeline { display: flex; flex-direction: column; gap: 0; }
.activity-item { color: var(--text-secondary); display: flex; font-size: 12px; gap: 8px; padding: 5px 0; }
.activity-time { color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* Rechterkant */
.detail-image-box { background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius); height: 190px; overflow: hidden; position: relative; width: 100%; }
.detail-image-box img { cursor: zoom-in; height: 100%; object-fit: cover; transition: transform .3s; width: 100%; }
.detail-image-box img:hover { transform: scale(1.03); }
.detail-image-placeholder { align-items: center; color: var(--text-muted); display: flex; flex-direction: column; font-size: 12px; gap: 6px; height: 100%; justify-content: center; opacity: .6; }
.detail-image-placeholder svg { height: 32px; width: 32px; }

.btn-upload-img, .btn-delete-img { align-items: center; border-radius: var(--radius-sm); display: flex; font-size: 12.5px; font-weight: 500; gap: 6px; justify-content: center; padding: 8px 12px; transition: all .14s; width: 100%; }
.btn-upload-img { background: var(--bg-surface); border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn-upload-img:hover { border-color: var(--accent); color: var(--accent); }
.btn-delete-img { background: var(--red-bg); border: 1.5px solid rgba(220,38,38,0.18); color: var(--red); }
.btn-delete-img:hover { background: rgba(220,38,38,0.14); }

.detail-meta-label { align-items: center; color: var(--text-muted); display: flex; font-size: 11px; font-weight: 700; gap: 6px; letter-spacing: .5px; margin-bottom: 6px; text-transform: uppercase; }
.detail-datetime { background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font); font-size: 13px; padding: 8px 11px; width: 100%; }
.btn-plan { background: var(--bg-card); border: 1.5px solid var(--accent); border-radius: var(--radius-sm); color: var(--accent); font-size: 12.5px; font-weight: 700; margin-top: 8px; padding: 8px; width: 100%; }
.btn-plan:hover { background: var(--accent-pale); }
.best-time-tip { background: var(--bg-surface); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 11.5px; line-height: 1.5; margin-top: 8px; padding: 8px 11px; }

/* Modal acties */
.detail-actions { background: var(--bg-surface); border-top: 1px solid var(--border-soft); display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 6px; padding: 13px 22px; }
.modal-btn { align-items: center; border: 1.5px solid transparent; border-radius: var(--radius-pill); display: inline-flex; font-size: 12px; font-weight: 500; gap: 5px; height: 30px; padding: 0 13px; transition: all .14s; white-space: nowrap; }
.btn-green { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn-green:hover { background: var(--accent-hover); box-shadow: 0 0 14px rgba(99,102,241,0.30); }
.btn-outline-green { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline-green:hover { background: var(--accent-pale); }
.btn-outline { background: var(--bg-card); border-color: var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text-primary); }
.btn-red { background: var(--red-bg); border-color: rgba(220,38,38,0.2); color: var(--red); }
.btn-red:hover { background: rgba(220,38,38,0.12); }

.btn-spinner { animation: btn-spin .65s linear infinite; border: 2px solid currentColor; border-radius: 50%; border-top-color: transparent; display: inline-block; flex-shrink: 0; height: 11px; width: 11px; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.modal-btn:disabled, .post-actions button:disabled { cursor: not-allowed; opacity: .65; pointer-events: none; }

/* Preview panel */
.preview-panel { display: none; flex: 1; overflow-y: auto; padding: 24px; }
.preview-panel.show { display: block; }
.detail-body.preview-mode .detail-left, .detail-body.preview-mode .detail-right { display: none; }

.li-post { background: #fff; border: 1px solid #E0E0E0; border-radius: 10px; color: #000; margin: 0 auto; max-width: 480px; overflow: hidden; }
[data-theme="dark"] .li-post { border-color: #333; }
.li-head { align-items: center; display: flex; gap: 10px; padding: 13px 15px 10px; }
.li-avatar { background: var(--accent); border-radius: 50%; color: #fff; font-size: 17px; font-weight: 700; height: 46px; line-height: 46px; overflow: hidden; text-align: center; width: 46px; }
.li-avatar img { height: 100%; object-fit: cover; width: 100%; }
.li-name { font-size: 14px; font-weight: 700; }
.li-meta { color: #666; font-size: 12px; }
.li-text { font-size: 13.5px; line-height: 1.5; padding: 0 15px 12px; white-space: pre-wrap; }
.li-img img { width: 100%; }
.li-foot { border-top: 1px solid #EEE; color: #666; display: flex; font-size: 12.5px; font-weight: 600; justify-content: space-around; padding: 9px 0; }

.ig-post { background: #fff; border: 1px solid #DBDBDB; border-radius: 6px; color: #000; margin: 0 auto; max-width: 420px; overflow: hidden; }
.ig-head { align-items: center; display: flex; gap: 10px; padding: 11px 13px; }
.ig-avatar { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF); border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; height: 34px; line-height: 34px; overflow: hidden; text-align: center; width: 34px; }
.ig-avatar img { height: 100%; object-fit: cover; width: 100%; }
.ig-name { font-size: 13px; font-weight: 700; }
.ig-img { aspect-ratio: 1; background: #FAFAFA; }
.ig-img img { height: 100%; object-fit: cover; width: 100%; }
.ig-caption { font-size: 13px; line-height: 1.5; padding: 11px 13px; }
.ig-caption strong { margin-right: 6px; }

/* ================================================
   LIGHTBOX
================================================ */
#lightbox { align-items: center; backdrop-filter: blur(10px); background: rgba(0,0,0,0.88); cursor: zoom-out; display: none; inset: 0; justify-content: center; padding: 32px; position: fixed; z-index: 9998; }
#lightbox.open { display: flex; }
#lightbox img { border-radius: 12px; box-shadow: 0 32px 80px rgba(0,0,0,0.6); cursor: default; max-height: 88vh; max-width: 90vw; object-fit: contain; }
.lightbox-close { align-items: center; background: rgba(255,255,255,0.12); border: none; border-radius: 50%; color: #fff; display: flex; font-size: 20px; height: 40px; justify-content: center; position: absolute; right: 28px; top: 24px; width: 40px; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ================================================
   TOAST
================================================ */
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); bottom: 28px; box-shadow: var(--shadow-md); color: var(--text-primary); font-size: 13px; font-weight: 500; max-width: 340px; opacity: 0; padding: 11px 18px; pointer-events: none; position: fixed; right: 28px; transform: translateY(10px); transition: opacity .22s, transform .22s; z-index: 9999; }
.toast.toast-show { opacity: 1; transform: translateY(0); }
.toast.toast-success { border-color: rgba(99,102,241,0.45); color: var(--accent-hover); }
[data-theme="dark"] .toast.toast-success { color: #A5B4FC; }
.toast.toast-error { border-color: rgba(220,38,38,0.3); color: var(--red); max-width: 460px; }
.toast-detail { font-size: 11px; font-weight: 400; margin-top: 5px; max-height: 80px; opacity: .8; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1200px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .sidebar { box-shadow: var(--shadow-lg); position: fixed; transform: translateX(-100%); transition: transform .22s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .hamburger { display: block; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
    .page-content { padding: 18px 14px 110px; }
    .main-topbar { gap: 8px; padding: 0 14px; }
    .month-select { display: none; }
    .detail-overlay { padding: 0; }
    .detail-modal { border-radius: 0; max-height: 100vh; height: 100vh; }
    .detail-body { flex-direction: column; }
    .detail-right { border-left: none; border-top: 1px solid var(--border-soft); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .cal-day { min-height: 56px; }
}

/* ================================================
   GEDEELDE THEMA-TOGGLE (theme.js)
================================================ */
.vylia-theme-fab {
    position: fixed; bottom: 20px; right: 20px; z-index: 1000;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-card); color: var(--text-secondary);
    border: 1.5px solid var(--border); box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
    transition: color .15s, border-color .15s, transform .1s;
}
.vylia-theme-fab:hover { color: var(--accent); border-color: var(--accent); }
.vylia-theme-fab:active { transform: scale(0.93); }
@media (max-width: 600px) { .vylia-theme-fab { bottom: 16px; right: 16px; } }

/* ================================================
   GEDEELDE ZIJBALK (sidebar.php) — prefix .vsb
================================================ */
.vsb {
    width: 244px; flex-shrink: 0; background: var(--bg-card);
    border-right: 1px solid var(--border); padding: 20px 14px;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 50;
}
.vsb-logo { display: flex; align-items: center; font-size: 21px; font-weight: 800; letter-spacing: -.5px; padding: 4px 10px 20px; color: var(--text-primary); }
.vsb-logo-v { color: var(--accent); }
.vsb-logo-dot { color: var(--accent); }
.vsb-nav { display: flex; flex-direction: column; gap: 3px; }
.vsb-kop { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); padding: 16px 12px 6px; }
.vsb-link {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px;
    border-radius: var(--radius-sm); color: var(--text-secondary);
    font-size: 14px; font-weight: 500; transition: background .14s, color .14s; cursor: pointer;
}
.vsb-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.vsb-link:hover { background: var(--bg-surface); color: var(--text-primary); }
.vsb-link.actief { background: var(--accent-soft, rgba(99,102,241,.12)); color: var(--accent); font-weight: 600; }
.vsb-foot { margin-top: auto; padding-top: 14px; }
.vsb-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--border-soft); }
.vsb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.vsb-user-info { flex: 1; min-width: 0; }
.vsb-user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsb-user-role { font-size: 11px; color: var(--text-muted); }
.vsb-logout { color: var(--text-muted); display: flex; transition: color .14s; }
.vsb-logout svg { width: 18px; height: 18px; }
.vsb-logout:hover { color: var(--red, #EF4444); }

/* Layout-helper: pagina met zijbalk */
.vsb-shell { display: flex; min-height: 100vh; }
.vsb-main { flex: 1; min-width: 0; }

/* Hamburger button — hidden on desktop */
.vsb-hamburger {
    display: none; position: fixed; top: 12px; left: 12px; z-index: 400;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); width: 40px; height: 40px;
    align-items: center; justify-content: center; cursor: pointer; font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.vsb-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55);
    z-index: 299; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.vsb-overlay.show { display: block; }

@media (max-width: 860px) {
    .vsb-hamburger { display: flex; }
    .vsb {
        position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
        transform: translateX(-100%); transition: transform .22s ease;
        z-index: 300; box-shadow: 4px 0 20px rgba(0,0,0,.4);
        height: 100vh; overflow-y: auto;
    }
    .vsb.open { transform: translateX(0); }
    .vsb-main { padding-top: 56px; } /* ruimte voor hamburger */
}

@media (max-width: 600px) {
    .vsb-main .cp-page { padding: 14px 10px 90px; }
    .vsb-main .page-content { padding: 14px 10px 90px; }
}

/* ─────────────────────────────────────────────────────────────
   Knoppen — één consistent systeem voor het hele cockpit.
   .btn         primaire actie  → filled, accentkleur (paars)
   .btn-ghost   secundaire actie → outlined/ghost
   .btn-danger  destructieve actie → rood outlined
   ───────────────────────────────────────────────────────────── */
.btn {
    align-items: center;
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    justify-content: center;
    line-height: 1.2;
    padding: 9px 16px;
    text-decoration: none;
    transition: background .14s, border-color .14s, box-shadow .14s, color .14s, transform .1s;
    white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 4px 14px rgba(99,102,241,0.28); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { background: var(--accent); border-color: var(--accent); box-shadow: none; cursor: not-allowed; opacity: .5; }

.btn-ghost {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    display: inline-flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    justify-content: center;
    line-height: 1.2;
    padding: 8px 15px;
    text-decoration: none;
    transition: background .14s, border-color .14s, color .14s, transform .1s;
    white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:active { transform: translateY(1px); }
.btn-ghost:disabled, .btn-ghost.is-disabled { cursor: not-allowed; opacity: .5; }

.btn-danger {
    background: transparent;
    border: 1.5px solid rgba(220,38,38,0.35);
    border-radius: var(--radius-sm);
    color: var(--red);
    cursor: pointer;
    align-items: center;
    display: inline-flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    justify-content: center;
    line-height: 1.2;
    padding: 8px 15px;
    text-decoration: none;
    transition: background .14s, border-color .14s, color .14s, transform .1s;
    white-space: nowrap;
}
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); }
.btn-danger:active { transform: translateY(1px); }

/* Statuslabels als gekleurde badges (pipeline) */
.status-badge {
    align-items: center;
    border-radius: var(--radius-pill);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 5px;
    letter-spacing: .02em;
    line-height: 1;
    padding: 4px 10px;
    white-space: nowrap;
}
.status-badge.won  { background: rgba(22,163,74,0.12);  color: #15803D; }
.status-badge.lost { background: rgba(220,38,38,0.12);  color: var(--red); }
.status-badge.open { background: var(--accent-pale);    color: var(--accent); }
