/* ============================================================
   style.css · PR Kalender · Oranjevereniging Katwijk aan Zee
   ============================================================ */

/* ─── RESET & BASIS ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy:        #1A2744;
    --navy-mid:    #2D3F6E;
    --oranje:      #E8610A;
    --oranje-light:#FFF0E6;
    --gold:        #F5C842;
    --green:       #22C55E;
    --red:         #EF4444;
    --white:       #FFFFFF;
    --bg:          #F4F5F7;
    --card:        #FFFFFF;
    --border:      #E5E7EB;
    --text:        #1A2744;
    --text-mid:    #374151;
    --text-muted:  #6B7A9A;
    --text-light:  #9CA3AF;

    --radius-sm:   6px;
    --radius:      10px;
    --radius-lg:   14px;
    --radius-xl:   16px;

    --shadow-sm:   0 1px 4px rgba(26,39,68,.07);
    --shadow:      0 2px 10px rgba(26,39,68,.09);
    --shadow-lg:   0 8px 32px rgba(26,39,68,.14);

    --sidebar-w:   220px;
    --topbar-h:    60px;

    --transition:  0.15s ease;
}

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ============================================================
   LAYOUT: sidebar + main
   ============================================================ */
.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ─── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--navy);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 22px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.sidebar-brand-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}
.sidebar-brand-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
}
.sidebar-brand-title span { color: var(--oranje); }

.sidebar-nav {
    padding: 10px 10px 0;
    flex: 1;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.28);
    padding: 14px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    border-radius: var(--radius);
    color: rgba(255,255,255,.58);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: background var(--transition), color var(--transition);
    margin-bottom: 2px;
}
.nav-item:hover {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.9);
}
.nav-item.active {
    background: rgba(232,97,10,.18);
    color: var(--oranje);
    font-weight: 700;
}
.nav-item .nav-icon { font-size: 15px; flex-shrink: 0; }

.month-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 12px;
    border: none;
    background: none;
    border-radius: var(--radius);
    color: rgba(255,255,255,.5);
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    transition: background var(--transition), color var(--transition);
    margin-bottom: 1px;
}
.month-item:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.month-item.active { color: var(--white); font-weight: 600; }
.month-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Sidebar footer: user + manage */
.sidebar-footer {
    padding: 10px 12px 14px;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.sidebar-manage-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,.07);
    border: none;
    border-radius: var(--radius);
    color: rgba(255,255,255,.65);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: background var(--transition);
}
.sidebar-manage-btn:hover { background: rgba(255,255,255,.13); color: var(--white); }

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,.05);
    border-radius: var(--radius);
}
.user-badge-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-badge-role {
    font-size: 10px;
    font-weight: 600;
}
.logout-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.35);
    font-size: 16px;
    padding: 2px 4px;
    flex-shrink: 0;
    transition: color var(--transition);
}
.logout-btn:hover { color: var(--white); }

/* ─── MAIN AREA ─────────────────────────────────────────────── */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ─── TOPBAR ────────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    flex-shrink: 0;
}

.topbar-search {
    position: relative;
    flex: 1;
}
.topbar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
}
.topbar-search input {
    width: 100%;
    max-width: 340px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 12px 7px 34px;
    font-size: 13px;
    outline: none;
    background: #F9FAFB;
    transition: border-color var(--transition);
}
.topbar-search input:focus { border-color: var(--oranje); background: var(--white); }

.topbar-filters {
    display: flex;
    align-items: center;
    gap: 5px;
}
.topbar-filters-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}
.filter-all-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    transition: all var(--transition);
}
.filter-all-btn.active, .filter-all-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}
.filter-avatar-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    font-size: 10px;
    font-weight: 700;
    transition: all var(--transition);
}
.filter-avatar-btn.active { border-color: currentColor; }

.role-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.topbar-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--oranje);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--transition);
}
.topbar-add-btn:hover { background: #D4560A; }
.topbar-add-btn .plus { font-size: 18px; line-height: 1; }

/* ─── CONTENT AREA ──────────────────────────────────────────── */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
}

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.page-header { margin-bottom: 22px; }
.page-title {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
}
.page-sub { font-size: 13px; color: var(--text-light); }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ─── AVATAR ────────────────────────────────────────────────── */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--white);
    user-select: none;
    cursor: default;
}
.avatar-sm  { width: 22px; height: 22px; font-size: 8px;  }
.avatar-md  { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg  { width: 34px; height: 34px; font-size: 13px; }
.avatar-xl  { width: 40px; height: 40px; font-size: 15px; }

.avatar-stack {
    display: inline-flex;
    align-items: center;
    padding-left: 6px;
}
.avatar-stack .avatar { margin-left: -5px; }

/* ─── CARDS ─────────────────────────────────────────────────── */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
}

/* ─── STAT CARDS ────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}
.stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--oranje);
}
.stat-icon  { font-size: 22px; margin-bottom: 6px; }
.stat-value {
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 4px; }
.stat-sub   { font-size: 11px; font-weight: 600; margin-top: 2px; }

/* ─── PROGRESS BAR ──────────────────────────────────────────── */
.progress-track {
    background: #F3F4F6;
    border-radius: 10px;
    height: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 5px;
    border-radius: 10px;
    background: var(--oranje);
    transition: width .4s ease;
}
.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}
.progress-labels span { font-size: 10px; color: var(--text-light); }
.progress-labels .pct { font-weight: 700; }

/* ─── EVENT CARD (kalender) ─────────────────────────────────── */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.event-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--oranje);
    cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition);
}
.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.event-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}
.event-card-name {
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}
.event-card-date { font-size: 11px; color: var(--text-light); font-weight: 500; margin-top: 2px; }
.event-card-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── MONTH GROUP (kalender) ────────────────────────────────── */
.month-group { margin-bottom: 32px; }
.month-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.month-group-badge {
    color: var(--white);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.month-group-line { flex: 1; height: 1px; background: var(--border); }
.month-group-count { font-size: 11px; color: var(--text-light); }

/* ─── TASK ROW ──────────────────────────────────────────────── */
.task-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    margin-bottom: 6px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    transition: background var(--transition), border-color var(--transition);
}
.task-row.done {
    background: #F0FDF4;
    border-color: #BBF7D0;
}
.task-check {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid var(--oranje);
    background: transparent;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.task-check.done {
    background: var(--green);
    border-color: var(--green);
}
.task-check-icon { color: var(--white); font-size: 10px; line-height: 1; display: none; }
.task-check.done .task-check-icon { display: block; }
.task-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.45;
}
.task-text.done {
    color: var(--text-light);
    text-decoration: line-through;
}
.task-actions { display: flex; gap: 2px; flex-shrink: 0; margin-left: 4px; }
.task-action-btn {
    background: none;
    border: none;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 4px;
    color: var(--text-light);
    transition: color var(--transition);
}
.task-action-btn:hover { color: var(--text); }
.task-action-btn.delete:hover { color: #FCA5A5; }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    transition: opacity var(--transition), background var(--transition);
    cursor: pointer;
}
.btn:hover { opacity: .88; }
.btn-primary  { background: var(--oranje); color: var(--white); }
.btn-dark     { background: var(--navy);   color: var(--white); }
.btn-ghost    { background: #F3F4F6;       color: var(--text-mid); }
.btn-danger   { background: #FEE2E2;       color: #B91C1C; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 10px; font-size: 11px; border-radius: var(--radius-sm); }

/* ─── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    letter-spacing: .04em;
}
.form-control {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--oranje); }
textarea.form-control { resize: vertical; min-height: 72px; }
select.form-control { appearance: auto; }
input[type="color"].form-control { padding: 3px; height: 38px; cursor: pointer; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-full   { grid-column: 1 / -1; }

.form-actions { display: flex; gap: 8px; margin-top: 18px; }

/* ─── PEOPLE SELECT (checkboxes as pills) ───────────────────── */
.people-select { display: flex; flex-wrap: wrap; gap: 6px; }
.people-pill {
    padding: 3px 10px;
    border-radius: 20px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.people-pill.active { color: var(--white); }

/* ─── ALERT / NOTICE ────────────────────────────────────────── */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-bottom: 14px;
}
.alert-warn  { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.alert-info  { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.alert-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.alert-ok    { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }

/* ─── DASHBOARD TWO-COL ─────────────────────────────────────── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.dash-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.dash-row:hover { box-shadow: var(--shadow); }
.dash-row.active { border-color: var(--oranje); }
.dash-row-label { flex: 1; font-size: 13px; font-weight: 500; color: var(--navy); }
.dash-row-sub   { font-size: 11px; color: var(--text-light); }
.dash-row-bar   { width: 60px; }

/* ─── MY TASKS VIEW ─────────────────────────────────────────── */
.my-task-row {
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid var(--oranje);
}
.my-task-event { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}
.people-grid-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.people-grid-card:hover { box-shadow: var(--shadow); border-color: #D1D5DB; }
.people-grid-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.people-grid-open { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.section-group-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 10px;
}

/* ─── SLIDE-IN PANEL ────────────────────────────────────────── */
.panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15,23,42,.5);
    display: flex;
    justify-content: flex-end;
}
.panel {
    background: var(--white);
    width: 100%;
    max-width: 520px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
    overflow: hidden;
}
.panel-header {
    padding: 24px 24px 20px;
    flex-shrink: 0;
    position: relative;
}
.panel-header-period {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-bottom: 4px;
}
.panel-header-title {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 4px;
}
.panel-header-date { font-size: 13px; color: rgba(255,255,255,.72); }
.panel-header-actions {
    position: absolute;
    top: 20px; right: 20px;
    display: flex;
    gap: 6px;
}
.panel-icon-btn {
    background: rgba(255,255,255,.2);
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    padding: 6px 10px;
    font-size: 14px;
    transition: background var(--transition);
}
.panel-icon-btn:hover { background: rgba(255,255,255,.32); }
.panel-progress { margin-top: 16px; }
.panel-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255,255,255,.7);
    margin-bottom: 5px;
}
.panel-progress-track {
    background: rgba(255,255,255,.25);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}
.panel-progress-fill {
    height: 6px;
    background: var(--white);
    border-radius: 10px;
    transition: width .4s ease;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}
.panel-body-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.panel-tasks-title { font-size: 13px; font-weight: 700; color: var(--navy); }

/* ─── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.6);
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
    backdrop-filter: blur(3px);
}
.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 28px;
}
.modal-sm { max-width: 480px; }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-title {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}
.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-light);
    line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* ─── PEOPLE LIST (in modal) ────────────────────────────────── */
.person-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
}
.person-row-info { flex: 1; }
.person-row-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.person-row-slug { font-size: 11px; color: var(--text-light); }

/* ─── TOAST ─────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--navy);
    color: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 24px rgba(0,0,0,.22);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    animation: slideUp .2s ease;
}
.toast-ok    { background: var(--navy); }
.toast-error { background: var(--red); }
.toast-warn  { background: #F59E0B; }
.toast-icon-ok { color: var(--green); }
.toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: 16px;
    margin-left: 4px;
}

/* ─── LOGIN PAGE ────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    backdrop-filter: blur(8px);
}
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: var(--oranje);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(232,97,10,.4);
}
.login-logo-org {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}
.login-logo-title {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}
.login-logo-title span { color: var(--oranje); }
.login-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 22px;
}
.login-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    letter-spacing: .06em;
    margin-bottom: 5px;
}
.login-input {
    width: 100%;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: 14px;
    color: var(--white);
    outline: none;
    transition: border-color var(--transition);
    box-sizing: border-box;
}
.login-input::placeholder { color: rgba(255,255,255,.3); }
.login-input:focus { border-color: var(--oranje); }
.login-input.error { border-color: var(--red); }
.login-input-wrap { position: relative; }
.login-pw-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,.4);
    font-size: 15px;
}
.login-error {
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.4);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 12px;
    color: #FCA5A5;
    margin-bottom: 14px;
}
.login-btn {
    width: 100%;
    background: var(--oranje);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
    transition: background var(--transition);
}
.login-btn:hover { background: #D4560A; }

.login-demo { margin-top: 24px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }
.login-demo-label {
    font-size: 10px;
    color: rgba(255,255,255,.3);
    text-align: center;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.login-demo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}
.login-demo-row:hover { background: rgba(255,255,255,.06); }
.login-demo-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.login-demo-creds { font-size: 11px; color: rgba(255,255,255,.33); }
.login-demo-role {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}

/* ─── FILTER CLEAR BANNER ───────────────────────────────────── */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.filter-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #1E40AF;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state-icon { font-size: 36px; margin-bottom: 10px; }
.empty-state-text { font-size: 14px; }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── UTILITY ───────────────────────────────────────────────── */
.hidden  { display: none !important; }
.mt-4    { margin-top: 4px; }
.mt-8    { margin-top: 8px; }
.mt-12   { margin-top: 12px; }
.mt-16   { margin-top: 16px; }
.mt-20   { margin-top: 20px; }
.mb-8    { margin-bottom: 8px; }
.mb-12   { margin-bottom: 12px; }
.mb-16   { margin-bottom: 16px; }
.mb-20   { margin-bottom: 20px; }
.flex    { display: flex; }
.items-center { align-items: center; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.flex-1  { flex: 1; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.fw-600  { font-weight: 600; }
.fw-700  { font-weight: 700; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }
    .sidebar  { display: none; }
    .content  { padding: 16px; }
    .topbar   { padding: 0 16px; gap: 8px; }
    .dash-grid        { grid-template-columns: 1fr; }
    .form-grid-2      { grid-template-columns: 1fr; }
    .stats-grid       { grid-template-columns: repeat(2, 1fr); }
    .event-grid       { grid-template-columns: 1fr; }
    .topbar-filters   { display: none; }
}
