:root {
    --primary: #2C6A6B;
    --primary-light: #E6FFFA;
    --primary-dark: #1F4A4B;
    --accent: #D8745E;
    --accent-light: rgba(216, 116, 94, 0.15);
    --success: #43A047;
    --danger: #E53935;
    --bg: #F7FAFC;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --text: #2D3748;
    --text-muted: #718096;
    --completed: #9E9E9E;
    --shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: white;
    padding: 0 24px;
    height: 56px;
    box-shadow: var(--shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
    align-self: stretch;
    height: 100%;
    min-width: 0;
}

.header-logo.brand-logo--header {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    height: 100%;
    min-width: 0;
}

.header-logo svg.header-logo-icon {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.header-logo svg path.logo-body {
    fill: #ffffff;
}

.header-logo svg path.logo-square {
    fill: rgba(255, 255, 255, 0.3);
}

.brand-logo-text {
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.nav-links { display: flex; gap: 8px; }

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.nav-links a:hover { background: rgba(255,255,255,0.15); color: white; }
.nav-links a.active { background: rgba(255,255,255,0.15); color: white; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-dropdown-trigger:hover { background: rgba(255,255,255,0.22); }

.nav-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 50;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
}
.nav-dropdown-menu a:hover { background: var(--primary-light); }
.dropdown-sep { height: 1px; background: var(--border); }

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    background: #fff;
}
.alert-danger {
    border-color: rgba(229, 57, 53, 0.35);
    background: rgba(229, 57, 53, 0.08);
    color: #8e1b18;
}

.main-content { padding: 24px; max-width: 1400px; margin: 0 auto; }

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

.page-header h1 {
    font-size: 28px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-weight: 700;
    color: var(--text);
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.person-select { display: flex; align-items: center; gap: 8px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 12px;
    align-items: stretch;
}

.dashboard-grid.single {
    grid-template-columns: 1fr;
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 12px 14px;
    font-weight: 700;
    color: white;
    border-radius: 12px 12px 0 0;
}

.panel-header.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cal-nav { display: flex; align-items: center; gap: 8px; }

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 10px;
    font-weight: 600;
    transition: background 0.15s ease;
}
.cal-nav-btn:hover { background: rgba(255, 255, 255, 0.2); }
.cal-nav-today { font-size: 13px; padding: 4px 12px; }

.header-todo {
    background: var(--primary);
}

.dashboard-todo-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
}

.dashboard-empty {
    padding: 14px;
    color: var(--muted);
}

.dashboard-week {
    padding: 10px;
    overflow: auto;
}

.week-grid {
    display: grid;
    grid-template-columns: 180px repeat(7, minmax(140px, 1fr));
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.week-cell {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px;
    min-height: 84px;
    background: white;
    white-space: pre-line;
}

.week-cell.header {
    background: var(--primary-light);
    font-weight: 700;
}

.week-cell.header.today {
    background: rgba(44, 106, 107, 0.18);
    color: var(--primary-dark);
}

.week-cell.today {
    background: rgba(44, 106, 107, 0.08);
}

.week-cell.name {
    background: #fafafa;
    font-weight: 700;
}

.week-cell:last-child { border-right: none; }

.cal-chip {
    display: block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 3px;
    background: #eef2f7;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
}

.cal-chip.agenda-badge-rood { background: #FED7D7; color: #9B2C2C; }
.cal-chip.agenda-badge-oranje { background: #FEEBC8; color: #9C4221; }
.cal-chip.agenda-badge-geel { background: #FEFCBF; color: #744210; }
.cal-chip.agenda-badge-groen { background: #C6F6D5; color: #22543D; }
.cal-chip.agenda-badge-blauw { background: #EBF8FF; color: #2B6CB0; }
.cal-chip.agenda-badge-teal { background: #E6FFFA; color: #234E52; }
.cal-chip.agenda-badge-paars { background: #EBF4FF; color: #4C51BF; }
.cal-chip.agenda-badge-bruin { background: #EDF2F7; color: #4A5568; }

.todo-tile {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    background: white;
}

.todo-tile.completed {
    opacity: 0.75;
    cursor: default;
    background: #f5f5f5;
}

.todo-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.todo-title { font-weight: 700; }
.todo-desc { color: var(--muted); font-size: 13px; margin-top: 2px; }

@media (max-width: 980px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}
.person-select select {
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    min-width: 160px;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.view-switcher { display: flex; gap: 4px; }

.view-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.view-btn.active { background: var(--primary); color: white; }
.view-btn:hover:not(.active) { background: var(--primary-light); }

.date-nav { display: flex; align-items: center; gap: 8px; }

.period-label {
    font-size: 18px;
    font-weight: 600;
    min-width: 200px;
    text-align: center;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    background: #E0E0E0;
    color: var(--text);
}

.btn:hover { filter: brightness(0.95); }
.btn-primary { background: var(--primary); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-secondary { background: #607D8B; color: white; }
.btn-small { padding: 4px 10px; font-size: 13px; }
.btn-icon { font-size: 24px; padding: 4px 12px; line-height: 1; }

.calendar-container {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 400px;
}

/* Day view */
.day-view { padding: 16px; }

.day-view .task-list { min-height: 300px; }

/* Week view */
.week-view { display: grid; grid-template-columns: repeat(7, 1fr); }

.week-day {
    border-right: 1px solid var(--border);
    min-height: 400px;
}

.week-day:last-child { border-right: none; }

.week-day-header {
    background: var(--primary-light);
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

.week-day-header .date { font-size: 13px; color: var(--text-muted); font-weight: 400; }

.week-day-body { padding: 8px; min-height: 350px; }

.week-day.today .week-day-header { background: var(--primary); color: white; }
.week-day.today .week-day-header .date { color: rgba(255,255,255,0.85); }

/* Month view */
.month-view { padding: 8px; }

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
}

.month-header {
    background: var(--primary-light);
    padding: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.month-cell {
    background: white;
    min-height: 100px;
    padding: 4px;
    cursor: pointer;
}

.month-cell:hover { background: #F5F5F5; }
.month-cell.other-month { background: #FAFAFA; color: #BDBDBD; }
.month-cell.today { background: var(--primary-light); }

.month-cell .day-num {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.month-cell .mini-item {
    font-size: 11px;
    background: var(--primary-light);
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.month-cell .mini-item.agenda-badge-rood { background: #FED7D7; color: #9B2C2C; }
.month-cell .mini-item.agenda-badge-oranje { background: #FEEBC8; color: #9C4221; }
.month-cell .mini-item.agenda-badge-geel { background: #FEFCBF; color: #744210; }
.month-cell .mini-item.agenda-badge-groen { background: #C6F6D5; color: #22543D; }
.month-cell .mini-item.agenda-badge-blauw { background: #EBF8FF; color: #2B6CB0; }
.month-cell .mini-item.agenda-badge-teal { background: #E6FFFA; color: #234E52; }
.month-cell .mini-item.agenda-badge-paars { background: #EBF4FF; color: #4C51BF; }
.month-cell .mini-item.agenda-badge-bruin { background: #EDF2F7; color: #4A5568; }

/* Task cards */
.task-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 6px;
    background: var(--primary-light);
    border: 2px solid #90CAF9;
    border-radius: 8px;
    cursor: grab;
    transition: box-shadow 0.15s;
}

.task-card:hover { box-shadow: var(--shadow); }
.task-card.dragging { opacity: 0.5; }
.task-card.completed { background: #E0E0E0; border-color: #BDBDBD; opacity: 0.7; }
.task-card.completed .task-title { text-decoration: line-through; color: var(--completed); }

.task-card .task-icon { width: 36px; height: 36px; flex-shrink: 0; }
.task-card .task-info { flex: 1; min-width: 0; }
.icon-picker-trigger .fa-icon,
.task-card .task-icon .fa-icon {
    font-size: 28px;
    color: var(--primary);
}

.task-card .task-icon {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-picker-item .fa-icon {
    font-size: 28px;
    color: var(--primary);
}

.icon-picker-hint {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
}

.task-card .task-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.task-card .task-title { font-weight: 600; font-size: 15px; }
.task-card .task-desc { font-size: 13px; color: var(--text-secondary); }
.task-card .task-desc { font-size: 13px; color: var(--text-muted); }

.task-card .task-actions { display: flex; gap: 4px; }
.task-card .btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: white;
}

.task-card.disabled-actions .task-actions { opacity: 0.5; }
.task-card.disabled-actions { cursor: default; }

.agenda-card {
    padding: 8px 10px;
    margin-bottom: 4px;
    background: #E8EAF6;
    border: 1px solid #9FA8DA;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agenda-card.agenda-badge-rood { background: #FED7D7; color: #9B2C2C; border-color: #FEB2B2; }
.agenda-card.agenda-badge-oranje { background: #FEEBC8; color: #9C4221; border-color: #FBD38D; }
.agenda-card.agenda-badge-geel { background: #FEFCBF; color: #744210; border-color: #FAF089; }
.agenda-card.agenda-badge-groen { background: #C6F6D5; color: #22543D; border-color: #9AE6B4; }
.agenda-card.agenda-badge-blauw { background: #EBF8FF; color: #2B6CB0; border-color: #BEE3F8; }
.agenda-card.agenda-badge-teal { background: #E6FFFA; color: #234E52; border-color: #B2F5EA; }
.agenda-card.agenda-badge-paars { background: #EBF4FF; color: #4C51BF; border-color: #C3DAFE; }
.agenda-card.agenda-badge-bruin { background: #EDF2F7; color: #4A5568; border-color: #CBD5E0; }

.agenda-card .btn-small {
    padding: 2px 6px;
    font-size: 11px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: white;
}

.drop-zone { min-height: 40px; }
.drop-zone.drag-over { background: rgba(44, 106, 107, 0.1); outline: 2px dashed var(--primary); }

.add-zone {
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    cursor: pointer;
    border: 2px dashed var(--border);
    border-radius: 8px;
    margin-top: 8px;
}

.add-zone:hover { border-color: var(--primary); color: var(--primary); }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.hidden { display: none; }
.hidden { display: none !important; }

.toast-container {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: min(920px, calc(100% - 24px));
    z-index: 200;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.08);
    font-weight: 600;
}

.toast-success {
    background: #e9f8ef;
    border-color: rgba(67,160,71,0.35);
    color: #1b5e20;
}

.toast-error {
    background: #fdecec;
    border-color: rgba(229,57,53,0.35);
    color: #b71c1c;
}

.toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
}
.toast-close:hover { opacity: 1; }

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}
.tab-btn {
    padding: 10px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: -2px;
    border-radius: 0;
    transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}
.tab-panel {
    display: none;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.tab-panel.active { display: block; }

/* Admin users */
.user-add-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.inline-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.user-list { list-style: none; }
.user-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
}
.user-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.user-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.modal {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal h2 { margin-bottom: 16px; font-size: 22px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
}

.form-group textarea { resize: vertical; min-height: 60px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.weekday-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.weekday-checks label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.manager-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.manager-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}
.manager-checks label:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
}

.weekday-checks label:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

/* Feed color swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.15s;
    outline: none;
    position: relative;
}

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

.color-swatch.selected {
    border-color: #111;
    box-shadow: 0 0 0 2px white inset;
}

.swatch-none {
    background: #f0f0f0;
    color: #888;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    border-color: #ccc;
}

/* Icon picker */
.icon-picker-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    background: white;
}

.icon-picker-trigger:hover { border-color: var(--primary); }
.icon-picker-trigger img { width: 32px; height: 32px; }

.icon-picker-panel {
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-top: 8px;
    padding: 12px;
    background: #FAFAFA;
}

.icon-picker-search {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 15px;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
}

.icon-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.icon-picker-item:hover { background: var(--primary-light); }
.icon-picker-item.selected { border-color: var(--primary); background: var(--primary-light); }
.icon-picker-item img { width: 32px; height: 32px; }
.icon-picker-item span { font-size: 10px; margin-top: 4px; color: var(--text-muted); }

/* Settings */
.settings-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.settings-section h2 { margin-bottom: 8px; }
.hint { color: var(--text-muted); margin-bottom: 16px; }

.person-add-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.person-add-form input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
}

.person-list { list-style: none; }

.person-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
}

.user-row .user-cols {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 0;
}
.user-col-name { min-width: 220px; }
.user-col-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
}

.toggle-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 10px 0 4px;
}
.toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 240px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #cfd8dc;
    transition: .2s;
    border-radius: 999px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .2s;
    border-radius: 50%;
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(20px); }

.person-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover { text-decoration: underline; }

.person-detail .form-group {
    margin-bottom: 16px;
}

.person-detail label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.person-detail input[type="text"],
.person-detail input[type="password"],
.person-detail input[type="url"] {
    width: 100%;
    max-width: 480px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.password-fields { margin-top: 8px; }

.form-actions { margin-top: 20px; }

.feed-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feed-add-form input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
}

.feed-list { list-style: none; }

.feed-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
}

.feed-info { flex: 1; min-width: 0; }

.feed-url {
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
    margin-top: 4px;
}

.feed-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.feed-error {
    display: block;
    color: var(--danger, #c0392b);
    margin-top: 4px;
}

.feed-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Afvalwijzer */
.afval-type-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.afval-type-item .toggle {
    border: none;
    padding: 0;
    min-width: 0;
}

.afval-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.afval-row select {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.afval-icon-picker {
    position: relative;
}

.afval-icon-picker .icon-picker-trigger {
    padding: 6px 10px;
    gap: 6px;
}

.afval-icon-picker .icon-picker-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 200;
    min-width: 320px;
    margin-top: 0;
}

.afval-type-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Google Calendar UI */
.gcal-color-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.gcal-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
}

.gcal-color-swatch.swatch-none {
    background: var(--surface-2, #f0f0f0);
    color: var(--text-muted, #888);
    border-radius: 14px;
    width: auto;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gcal-color-swatch.selected {
    border-color: var(--text, #222);
    transform: scale(1.15);
}

.gcal-available-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.gcal-available-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.gcal-cal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gcal-cal-name {
    flex: 1;
    font-size: 0.9rem;
}

.gcal-filter-row {
    margin-top: 6px;
}

.redirect-uri-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2, #f4f4f4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    word-break: break-all;
}

.auth-page {
    background: var(--bg);
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 24px;
}

.auth-layout {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.brand-logo--auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.auth-logo-icon {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.auth-logo-text {
    display: block;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
}

.auth-card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 32px 28px 28px;
}

.auth-title {
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin: -12px 0 20px;
    font-size: 15px;
    line-height: 1.5;
}
