/* ============================================================
   Monday Clone - algemene stijlen
   Eén bronbestand voor alle pagina's. Geen interne of inline CSS.

   Opbouw:
     1. Basis en kleurtokens
     2. Gedeelde navigatiebalk
     3. Per pagina een eigen blok, herkenbaar aan de body-klasse
   ============================================================ */

/* ---------- 1. Basis ---------- */

:root {
    --accent:          #c2410c;
    --accent-donker:   #9a3412;
    --accent-zacht:    rgba(255, 149, 0, 0.14);
    --tekst:           #1f2937;
    --tekst-zacht:     #4b5563;
    --lijn:            rgba(0, 0, 0, 0.08);
    --vlak:            #ffffff;
    --achtergrond:     #f8fafc;
    --geldig:          #10b981;
    --ongeldig:        #ef4444;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--achtergrond);
    color: var(--tekst);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Elke zin op een eigen regel (huisregel voor lopende tekst) */
.zinnen {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.verborgen {
    display: none;
}

/* ============================================================
   Liquid Glass — materiaalsysteem
   Eén lichtrichting: van boven. Elke laag krijgt dezelfde cues,
   zodat het glas overal als hetzelfde materiaal leest.

   Tier 1  chrome    navigatiebalk en vensters die boven alles zweven
   Tier 2  oppervlak kaarten, tegels en panelen
   Tier 3  plaat     draagt tekst, tabellen en formulieren; stabiel contrast
   ============================================================ */

:root {
    /* Grond waar het glas op rust. Zonder textuur eronder leest glas als niets. */
    --grond:            #eceae5;
    --grond-warm:       rgba(255, 149, 0, 0.30);
    --grond-koel:       rgba(45, 178, 170, 0.24);
    --grond-roze:       rgba(255, 45, 85, 0.12);

    /* Tier 1 — chrome */
    --glas1-vulling:    rgba(255, 255, 255, 0.58);
    --glas1-blur:       blur(24px) saturate(165%);

    /* Tier 2 — oppervlak */
    --glas2-vulling:    rgba(255, 255, 255, 0.78);
    --glas2-blur:       blur(18px) saturate(160%);

    /* Tier 3 — plaat: hoogste leesbaarheid, minste transparantie */
    --plaat:            rgba(255, 255, 255, 0.86);
    --plaat-vast:       #ffffff;

    /* Randscheiding: neutrale hairlines, nooit een accentkleur.
       Op een lichte grond leest een witte rand niet, dus zit het
       silhouet buiten in een donkere hairline en de lichtband binnen. */
    --hairline:         rgba(15, 23, 42, 0.10);
    --hairline-onder:   rgba(15, 23, 42, 0.07);
    --lichtband:        rgba(255, 255, 255, 0.75);

    /* Diepte via schaduw, niet via dikke randen */
    --diepte-1:         0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.07);
    --diepte-2:         0 2px 6px rgba(15, 23, 42, 0.07), 0 20px 48px rgba(15, 23, 42, 0.13);

    --radius-groot:     20px;
    --radius-klein:     14px;
}

/* De grond: rustige gradient met twee zachte hotspots uit het toegelaten palet */
body {
    background:
        radial-gradient(900px 520px at 6% -8%, var(--grond-warm), transparent 60%),
        radial-gradient(820px 480px at 98% 2%, var(--grond-koel), transparent 58%),
        radial-gradient(700px 420px at 50% 108%, var(--grond-roze), transparent 62%),
        var(--grond);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ---------- Anatomie van het glas ---------- */

.glas,
.glas-chrome {
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}

.glas {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border-radius: var(--radius-groot);
}

.glas-chrome {
    background: var(--glas1-vulling);
    -webkit-backdrop-filter: var(--glas1-blur);
    backdrop-filter: var(--glas1-blur);
}

/* Tekst staat nooit op rauwe blur, maar op een eigen plaat */
.glas-plaat {
    background: var(--plaat);
    border-radius: var(--radius-klein);
}

/* ---------- Stress-test 4: fallback zonder blur ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root {
        --glas1-vulling: rgba(252, 252, 251, 0.97);
        --glas2-vulling: rgba(252, 252, 251, 0.96);
        --plaat:         #ffffff;
    }
}

/* ---------- 2. Gedeelde navigatiebalk ---------- */

/* Uniforme header styling */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    min-height: 64px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.nav-logo {
    flex: 0 0 auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.nav-logo-icon {
    font-size: 22px;
    color: #c2410c;
}

.nav-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}

/* Schuifbalk verbergen; het schuiven zelf blijft werken */
.nav-buttons::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.nav-btn.active {
    background: #c2410c;
    border-color: #c2410c;
    color: white;
}

.nav-btn.active:hover {
    background: #9a3412;
    border-color: #9a3412;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-dropdown:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #c2410c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-weight: 500;
    color: #374151;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.material-symbols-outlined {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }
    
    .nav-buttons {
        gap: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .nav-btn span:last-child {
        display: none;
    }
    
    .user-name {
        display: none;
    }
}


/* ---------- 3. Pagina: index.php ---------- */

body.pagina-planning {
    color: #1f2937;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
        
        /* Header */
        body.pagina-planning .project-selector {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 18px;
            font-weight: 600;
            color: #1f2937;
        }
        
        body.pagina-planning .current-project {
            font-size: 18px;
            font-weight: 600;
            color: #1f2937;
            padding: 4px 8px;
            border-radius: 4px;
            background: #f3f4f6;
            border: 1px solid #e5e7eb;
        }
        
        
        body.pagina-planning .view-tabs {
            display: flex;
            gap: 32px;
        }
        
        body.pagina-planning .view-tab {
            padding: 8px 0;
            color: var(--tekst-zacht);
            text-decoration: none;
            font-weight: 500;
            box-shadow: inset 0 -2px 0 transparent;
            transition: all 0.3s;
        }
        
        body.pagina-planning .view-tab.active {
            color: var(--accent-donker);
            box-shadow: inset 0 -2px 0 var(--accent-donker);
        }
        
        body.pagina-planning .view-tab:hover {
            color: #374151;
        }
        
        /* Stacked layout for 'both' view - table on top, timeline below */
        body.pagina-planning .main-content.stacked {
            display: flex !important;
            flex-direction: column !important;
            gap: 20px;
        }
        
        body.pagina-planning .main-content.stacked #table-view, body.pagina-planning .main-content.stacked #timeline-view {
            flex: none;
            width: 100%;
        }
        
        /* Material Symbols styling */
        body.pagina-planning .material-symbols-outlined {
            font-variation-settings:
                'FILL' 1,
                'wght' 400,
                'GRAD' 0,
                'opsz' 24;
            font-family: 'Material Symbols Outlined';
            font-style: normal;
            font-weight: 400;
            line-height: 1;
            letter-spacing: normal;
            text-transform: none;
            display: inline-block;
            white-space: nowrap;
            word-wrap: normal;
            direction: ltr;
            -webkit-font-feature-settings: 'liga';
            -webkit-font-smoothing: antialiased;
        }
        
        /* Timeline add button styling moved to unified section */
        
        /* Ensure Material Symbols load properly */
        @font-face {
            font-family: 'Material Symbols Outlined';
            font-style: normal;
            font-weight: 400;
            src: url('https://fonts.gstatic.com/s/materialsymbolsoutlined/v143/kJF1-BvX7BnkUpIoq48i0MQP3KCDPiZNNj-aA.woff2') format('woff2');
            font-display: block;
        }
        
        /* Force Material Symbols to load properly */
        body.pagina-planning .material-symbols-outlined {
            font-display: block !important;
            font-family: 'Material Symbols Outlined' !important;
        }
        
        /* Hide any fallback text that might appear */
        body.pagina-planning .material-symbols-outlined:before {
            display: none !important;
        }
        
        /* Timeline add button hover/active styling moved to unified section */
        
        /* New Task Button Styling */
        body.pagina-planning #new-task-btn .material-symbols-outlined {
            font-size: 20px;
            margin-right: 0;
        }
        
        body.pagina-planning #new-task-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
        }
        
        /* Unified Material Symbols Styling - All icons transparent with same gray tint */
        body.pagina-planning .material-symbols-outlined {
            color: var(--tekst-zacht) !important;
            background: transparent !important;
            border: none !important;
            padding: 0 !important;
            margin: 0 !important;
            transition: all 0.2s ease;
        }
        
        body.pagina-planning .material-symbols-outlined:hover {
            color: #374151 !important;
            transform: scale(1.1);
        }
        
        /* Task Actions */
        body.pagina-planning .task-action {
            background: transparent !important;
            border: none !important;
            padding: 2px 4px;
            cursor: pointer;
        }
        
        body.pagina-planning .task-action .material-symbols-outlined {
            font-size: 20px;
        }
        
        /* New Task Button */
        body.pagina-planning .new-task-btn-inline {
            background: transparent !important;
            border: none !important;
            cursor: pointer;
            padding: 4px;
            margin-left: 12px;
        }
        
        body.pagina-planning .new-task-btn-inline .material-symbols-outlined {
            font-size: 24px;
        }
        
        /* Timeline Add Button */
        body.pagina-planning .timeline-add-btn {
            background: transparent !important;
            border: none !important;
            cursor: pointer;
            padding: 4px;
        }
        
        body.pagina-planning .timeline-add-btn .material-symbols-outlined {
            font-size: 18px;
        }
        
        /* Dependency Edit Button */
        body.pagina-planning .dependency-edit-btn {
            background: transparent !important;
            border: none !important;
            cursor: pointer;
            padding: 4px;
        }
        
        body.pagina-planning .dependency-edit-btn .material-symbols-outlined {
            font-size: 18px;
        }
        
        /* Timeline column alignment */
        body.pagina-planning .task-table td[data-timeline-cell="true"] {
            vertical-align: middle;
        }
        
        body.pagina-planning .task-table td[data-timeline-cell="true"] .timeline-add-btn {
            margin-left: auto;
        }
        
        /* Ensure consistent alignment for timeline cells */
        body.pagina-planning .task-table td:has(.timeline-add-btn) {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 40px;
        }
        
        body.pagina-planning .task-table td:has(.timeline-add-btn) > div {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        /* Fallback for browsers that don't support :has() */
        body.pagina-planning .task-table td {
            vertical-align: middle;
            min-height: 40px;
        }
        
        /* Ensure all timeline cells have consistent height */
        body.pagina-planning .task-table tbody tr td:nth-child(5), body.pagina-planning .task-table tbody tr td:nth-child(6), body.pagina-planning .task-table tbody tr td:nth-child(7), body.pagina-planning .task-table tbody tr td:nth-child(8), body.pagina-planning .task-table tbody tr td:nth-child(9) {
            min-height: 40px;
            vertical-align: middle;
        }
        
        body.pagina-planning .view-tabs-container {
            background: white;
            border-bottom: 1px solid #e5e7eb;
            padding: 0 24px;
        }
        
        /* Toolbar */
        body.pagina-planning .toolbar {
            background: white;
            border-bottom: 1px solid #e5e7eb;
            padding: 16px 24px;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        body.pagina-planning .btn-primary {
            background: var(--accent-donker);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        body.pagina-planning .btn-primary:hover {
            background: #4338ca;
        }
        
        body.pagina-planning .btn-secondary {
            background: #f3f4f6;
            color: #374151;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        body.pagina-planning .btn-secondary:hover {
            background: #e5e7eb;
        }
        
        /* Student Info Header */
        body.pagina-planning .student-info-header {
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
            padding: 16px 24px;
            margin-bottom: 0;
        }
        
        body.pagina-planning .student-info {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 16px;
            font-weight: 600;
            color: #1f2937;
        }
        
        body.pagina-planning .student-info .material-symbols-outlined {
            font-size: 20px;
            color: var(--tekst-zacht);
        }
        
        body.pagina-planning .student-project-info {
            color: var(--tekst-zacht);
            font-weight: 400;
        }

        /* Main Content */
        body.pagina-planning .main-content {
            display: flex;
            /* Onder elkaar: leerlingbalk bovenaan, daaronder de tabel of tijdlijn.
               Zonder deze regel plaatst flex ze naast elkaar en schuift de tabel
               naar rechts uit beeld. */
            flex-direction: column;
            height: calc(100vh - 140px);
            width: 100%;
            max-width: 100%;
        }
        
        /* Task List */
        body.pagina-planning .task-list {
            flex: 1;
            background: white;
            overflow-y: auto;
            width: 100%;
            max-width: 100%;
        }
        
        body.pagina-planning .task-section {
            border-bottom: 1px solid #e5e7eb;
        }
        
        body.pagina-planning .section-header {
            padding: 16px 24px;
            background: #f9fafb;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }
        
        body.pagina-planning .section-title {
            font-weight: 600;
            color: #374151;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0 20px;
        }
        
        body.pagina-planning .add-task-btn {
            background: var(--accent-donker);
            color: white;
            border: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            margin-left: 8px;
        }
        
        body.pagina-planning .add-task-btn:hover {
            background: #4338ca;
            transform: scale(1.1);
        }
        
        body.pagina-planning .section-count {
            background: #e5e7eb;
            color: var(--tekst-zacht);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 12px;
        }
        
        body.pagina-planning .section-actions {
            display: flex;
            gap: 8px;
        }
        
        body.pagina-planning .view-btn {
            background: #f3f4f6;
            color: var(--tekst-zacht);
            border: 1px solid #d1d5db;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        body.pagina-planning .view-btn:hover {
            background: #e5e7eb;
            color: #374151;
        }
        
        body.pagina-planning .view-btn.active {
            background: var(--accent-donker);
            color: white;
            border-color: var(--accent-donker);
        }
        
        body.pagina-planning .task-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border: 1px solid #d1d5db;
            table-layout: fixed;
            min-width: 100%;
        }
        
        body.pagina-planning .task-table th, body.pagina-planning .task-table td {
            padding: 12px 20px;
            text-align: left;
            border-bottom: 1px solid #d1d5db;
            border-right: 1px solid #d1d5db;
            font-size: 13px;
            line-height: 1.4;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        body.pagina-planning .task-table th:nth-child(1), body.pagina-planning .task-table td:nth-child(1) {
            white-space: normal;
            overflow: visible;
            text-overflow: unset;
            width: 300px;
            min-width: 300px;
            padding: 12px 16px;
        }
        
        body.pagina-planning .task-table th:nth-child(2), body.pagina-planning .task-table td:nth-child(2) {
            white-space: normal;
            overflow: visible;
            text-overflow: unset;
            width: 400px;
            min-width: 400px;
        }
        
        body.pagina-planning .task-table th:nth-child(3), body.pagina-planning .task-table td:nth-child(3) {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 4px;
            text-align: center;
        }
        
        body.pagina-planning .task-table td:nth-child(3) {
            padding: 0;
        }
        
        body.pagina-planning .task-table th:nth-child(4), body.pagina-planning .task-table td:nth-child(4), body.pagina-planning .task-table th:nth-child(5), body.pagina-planning .task-table td:nth-child(5), body.pagina-planning .task-table th:nth-child(6), body.pagina-planning .task-table td:nth-child(6), body.pagina-planning .task-table th:nth-child(7), body.pagina-planning .task-table td:nth-child(7), body.pagina-planning .task-table th:nth-child(8), body.pagina-planning .task-table td:nth-child(8) {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        body.pagina-planning .task-table th:last-child, body.pagina-planning .task-table td:last-child {
            border-right: none;
        }
        
        /* Timeline columns are now handled dynamically via JavaScript */
        /* No need to hide specific columns anymore */
        
        body.pagina-planning .task-table th {
            background: #f9fafb;
            font-weight: 600;
            color: var(--tekst-zacht);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            padding: 16px 20px;
            text-align: center;
        }
        
        body.pagina-planning .task-row {
            transition: background-color 0.2s;
            border-bottom: 1px solid #e5e7eb;
        }
        
        body.pagina-planning .task-row:hover {
            background: #f9fafb;
        }
        
        body.pagina-planning .task-row td {
            border-right: 1px solid #e5e7eb;
        }
        
        body.pagina-planning .task-row td:last-child {
            border-right: none;
        }
        
        body.pagina-planning .task-checkbox {
            width: 16px;
            height: 16px;
            border: 2px solid #d1d5db;
            border-radius: 3px;
            cursor: pointer;
        }
        
        body.pagina-planning .task-checkbox.checked {
            background: var(--accent-donker);
            border-color: var(--accent-donker);
        }
        
        body.pagina-planning .task-title {
            font-weight: 500;
            color: #1f2937;
            font-size: 13px;
            white-space: normal;
            overflow: visible;
            text-overflow: unset;
        }
        
        body.pagina-planning .task-actions {
            display: flex;
            gap: 4px;
            justify-content: center;
        }
        
        body.pagina-planning .task-drag-handle {
            cursor: grab;
            font-size: 16px;
            color: var(--tekst-zacht);
            padding: 4px;
            user-select: none;
        }
        
        body.pagina-planning .task-drag-handle:hover {
            color: #374151;
            background-color: #f3f4f6;
            border-radius: 4px;
        }
        
        body.pagina-planning .task-drag-handle:active {
            cursor: grabbing;
        }
        
        body.pagina-planning .task-action {
            width: 20px;
            height: 20px;
            background: #f3f4f6;
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.3s;
            margin: 0 auto;
            font-size: 11px;
        }
        
        body.pagina-planning .task-action:hover {
            background: #e5e7eb;
        }
        
        body.pagina-planning .task-action[onclick*="deleteTask"]:hover {
            background: #fee2e2;
            color: #dc2626 !important;
        }
        
        body.pagina-planning .edit-mode {
            background: #fef3c7 !important;
            background: var(--accent-zacht) !important;
        }
        
        body.pagina-planning .edit-mode td {
            background: #fef3c7 !important;
            padding: 8px 16px !important;
        }
        
        body.pagina-planning .edit-input {
            width: 100%;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            padding: 8px 12px;
            font-size: 13px;
            background: white;
            color: #374151;
        }
        
        body.pagina-planning .edit-select {
            width: 100%;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            padding: 8px 12px;
            font-size: 13px;
            background: white;
            color: #374151;
        }
        
        body.pagina-planning .edit-date {
            width: 100%;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            padding: 8px 12px;
            font-size: 13px;
            background: white;
            color: #374151;
        }
        
        body.pagina-planning .edit-actions {
            display: flex;
            gap: 4px;
            margin-top: 4px;
        }
        
        body.pagina-planning .edit-btn {
            padding: 2px 6px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            background: white;
            cursor: pointer;
            font-size: 10px;
        }
        
        body.pagina-planning .edit-btn.save {
            background: #10b981;
            color: white;
            border-color: #10b981;
        }
        
        body.pagina-planning .edit-btn.cancel {
            background: #ef4444;
            color: white;
            border-color: #ef4444;
        }
        
        /* Context menu for tasks */
        body.pagina-planning .task-context-menu {
            position: absolute;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            z-index: 1000;
            min-width: 150px;
            display: none;
        }
        
        body.pagina-planning .context-menu-item {
            padding: 8px 16px;
            cursor: pointer;
            border-bottom: 1px solid #f3f4f6;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        body.pagina-planning .context-menu-item:last-child {
            border-bottom: none;
        }
        
        body.pagina-planning .context-menu-item:hover {
            background: #f9fafb;
        }
        
        body.pagina-planning .context-menu-item.delete {
            color: #ef4444;
        }
        
        body.pagina-planning .context-menu-item.delete:hover {
            background: #fee2e2;
        }
        
        body.pagina-planning .status-badge {
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            width: 100%;
            justify-content: center;
            text-align: center;
            min-height: 32px;
            box-sizing: border-box;
        }
        
        body.pagina-planning .status-todo {
            background: #f3f4f6;
            color: var(--tekst-zacht);
            border: 2px solid #d1d5db;
        }
        
        body.pagina-planning .status-in-progress {
            background: #fef3c7;
            color: #d97706;
            background: var(--accent-zacht);
        }
        
        body.pagina-planning .status-done {
            background: #d1fae5;
            color: #059669;
            border: 2px solid #10b981;
        }
        
        body.pagina-planning .status-blocked {
            background: #fee2e2;
            color: #dc2626;
            border: 2px solid #ef4444;
        }
        
        body.pagina-planning .status-badge.status-vacation {
            background: repeating-linear-gradient(
                45deg,
                #ffffff,
                #ffffff 8px,
                #fee2e2 8px,
                #fee2e2 16px
            );
            color: #000000 !important;
            border: 2px solid #ef4444 !important;
        }
        
        body.pagina-planning .priority-high {
            color: #dc2626;
        }
        
        body.pagina-planning .priority-medium {
            color: #d97706;
        }
        
        body.pagina-planning .priority-low {
            color: #059669;
        }
        
        /* Timeline Panel */
        body.pagina-planning .timeline-panel {
            flex: 1;
            background: white;
            overflow-y: auto;
        }
        
        body.pagina-planning .timeline-panel.hidden {
            display: none !important;
        }
        
        body.pagina-planning .task-list.hidden {
            display: none !important;
        }
        
        body.pagina-planning #table-view.hidden {
            display: none !important;
        }
        
        body.pagina-planning .timeline-header {
            padding: 16px 24px;
            border-bottom: 1px solid #e5e7eb;
            background: #f9fafb;
        }
        
        body.pagina-planning .timeline-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        body.pagina-planning .timeline-view {
            font-weight: 600;
            color: #374151;
        }
        
        body.pagina-planning .timeline-zoom {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        body.pagina-planning .zoom-btn {
            width: 24px;
            height: 24px;
            background: #f3f4f6;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        body.pagina-planning .timeline-content {
            padding: 16px 24px;
            overflow-x: auto;
        }
        
        /* Nieuwe tijdlijn styling */
        body.pagina-planning .timeline-header-grid {
            display: grid;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            border-radius: 8px 8px 0 0;
            margin-bottom: 0;
        }
        
        body.pagina-planning .timeline-year-row {
            display: contents;
        }
        
        body.pagina-planning .timeline-month-row {
            display: contents;
        }
        
        body.pagina-planning .timeline-year-cell {
            background: var(--accent-donker);
            color: white;
            padding: 12px 16px;
            font-weight: 600;
            text-align: center;
            border-right: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        body.pagina-planning .timeline-month-cell {
            background: #f1f5f9;
            color: #475569;
            padding: 8px 12px;
            font-weight: 500;
            text-align: center;
            border-right: 1px solid #e5e7eb;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        body.pagina-planning .timeline-detail-row {
            display: contents;
        }
        
        body.pagina-planning .timeline-detail-cell {
            background: #f8fafc;
            color: var(--tekst-zacht);
            padding: 4px 8px;
            font-weight: 400;
            text-align: center;
            border-right: 1px solid #e5e7eb;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            min-width: 0;
        }
        
        body.pagina-planning .week-label, body.pagina-planning .month-label {
            background: #e2e8f0;
            color: #475569;
            padding: 2px 4px;
            border-radius: 3px;
            font-size: 9px;
            font-weight: 500;
            white-space: nowrap;
            flex: 1;
            text-align: center;
            min-width: 0;
        }
        
        body.pagina-planning .week-label {
            background: var(--accent-zacht);
            color: #1e40af;
        }
        
        body.pagina-planning .month-label {
            background: #f0fdf4;
            color: #166534;
        }
        
        /* Custom date range controls */
        body.pagina-planning .date-range-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
        }
        
        body.pagina-planning .date-label {
            font-size: 12px;
            font-weight: 500;
            color: #374151;
            white-space: nowrap;
        }
        
        body.pagina-planning .date-range-controls .form-input {
            width: 140px;
            font-size: 12px;
            padding: 4px 8px;
        }
        
        body.pagina-planning .date-range-controls .btn-secondary {
            font-size: 11px;
            padding: 4px 8px;
            white-space: nowrap;
        }
        
        body.pagina-planning .timeline-grid {
            display: grid;
            border: 1px solid #e5e7eb;
            border-top: none;
            border-radius: 0 0 8px 8px;
            background: white;
        }
        
        body.pagina-planning .timeline-task-row {
            display: contents;
        }
        
        body.pagina-planning .timeline-task-name {
            background: #f8fafc;
            padding: 12px 16px;
            border-right: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            width: 300px;
            min-width: 300px;
            align-items: center;
        }
        
        body.pagina-planning .task-name-content {
            display: flex !important;
            align-items: center;
            gap: 8px;
            width: 100%;
        }
        
        
        body.pagina-planning .task-title {
            font-weight: 500;
            color: #1f2937;
            white-space: normal;
            overflow: visible;
            text-overflow: unset;
        }
        
        /* Tijdlijn maand cellen in de grid */
        body.pagina-planning .timeline-grid .timeline-month-cell {
            background: white;
            border-right: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
            position: relative;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 4px;
            width: 100%;
            box-sizing: border-box;
        }
        
        body.pagina-planning .timeline-bar {
            height: 24px;
            border-radius: 4px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, var(--accent), var(--accent-donker));
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 500;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
            z-index: 2;
            min-width: 20px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        body.pagina-planning .main-task-bar {
            background: linear-gradient(135deg, var(--accent-donker), var(--accent));
            box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
        }
        
        body.pagina-planning .subtask-bar {
            background: linear-gradient(135deg, #10b981, #059669);
            box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
            height: 18px;
            margin: 3px 0;
        }
        
        body.pagina-planning .timeline-bar:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        
        /* Status kleuren voor tijdlijn balken */
        body.pagina-planning .timeline-bar.status-todo {
            background: linear-gradient(135deg, #6b7280, #9ca3af);
        }
        
        body.pagina-planning .timeline-bar.status-in-progress {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
        
        body.pagina-planning .timeline-bar.status-done {
            background: linear-gradient(135deg, #10b981, #059669);
        }
        
        body.pagina-planning .timeline-bar.status-blocked {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }
        
        body.pagina-planning .timeline-bar.status-vacation {
            background: repeating-linear-gradient(
                45deg,
                #ffffff,
                #ffffff 8px,
                #fee2e2 8px,
                #fee2e2 16px
            );
            border: 1px solid #ef4444;
            color: #000000 !important;
        }
        
        /* Gantt Chart */
        body.pagina-planning .gantt-container {
            flex: 1;
            background: white;
            overflow: auto;
        }
        
        body.pagina-planning .gantt-container.hidden {
            display: none !important;
        }
        
        body.pagina-planning .gantt-header {
            padding: 16px 24px;
            border-bottom: 1px solid #e5e7eb;
            background: #f9fafb;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        body.pagina-planning .gantt-timeline {
            padding: 24px;
            min-width: 800px;
        }
        
        body.pagina-planning .gantt-grid {
            display: grid;
            grid-template-columns: 300px repeat(7, 1fr);
            gap: 1px;
            background: #e5e7eb;
            min-width: 900px;
        }
        
        body.pagina-planning .gantt-header-cell {
            background: #f9fafb;
            padding: 12px;
            font-weight: 600;
            text-align: center;
            border-bottom: 2px solid #e5e7eb;
        }
        
        body.pagina-planning .gantt-task-row {
            display: contents;
        }
        
        body.pagina-planning .gantt-task-name {
            background: white;
            padding: 12px;
            font-weight: 500;
            border-bottom: 1px solid #f3f4f6;
            width: 300px;
            min-width: 300px;
        }
        
        body.pagina-planning .gantt-task-name .task-name-content {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
        }
        
        
        body.pagina-planning .gantt-task-bar {
            background: var(--accent-donker);
            height: 24px;
            border-radius: 4px;
            margin: 4px 0;
            position: relative;
            cursor: pointer;
        }
        
        body.pagina-planning .gantt-task-bar.in-progress {
            background: #f59e0b;
        }
        
        body.pagina-planning .gantt-task-bar.done {
            background: #10b981;
        }
        
        body.pagina-planning .gantt-task-bar.blocked {
            background: #ef4444;
        }
        
        /* Modals */
        body.pagina-planning .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        
        body.pagina-planning .modal.hidden {
            display: none;
        }
        
        body.pagina-planning .modal-content {
            background: white;
            padding: 24px;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        body.pagina-planning .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        body.pagina-planning .modal-title {
            font-size: 20px;
            font-weight: 600;
        }
        
        body.pagina-planning .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--tekst-zacht);
        }
        
        body.pagina-planning .form-group {
            margin-bottom: 16px;
        }
        
        body.pagina-planning .form-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #374151;
        }
        
        body.pagina-planning .form-input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 14px;
        }
        
        body.pagina-planning .form-input:focus {
            outline: none;
            border-color: var(--accent-donker);
        }
        
        body.pagina-planning .form-textarea {
            min-height: 80px;
            resize: vertical;
        }
        
        body.pagina-planning .form-select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 14px;
        }
        
        body.pagina-planning .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 24px;
        }
        
        body.pagina-planning .btn-cancel {
            background: #f3f4f6;
            color: #374151;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
        }
        
        body.pagina-planning .btn-save {
            background: var(--accent-donker);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
        }
        
        /* Subtasks */
        body.pagina-planning .subtasks {
            margin-left: 0;
            margin-top: 0;
            position: relative;
        }
        
        body.pagina-planning .subtask-row {
            background: #ffffff;
            position: relative;
            border: 1px solid #e5e7eb;
            border-radius: 0 8px 8px 0;
            margin: 2px 0;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
        }
        
        body.pagina-planning .subtask-row td {
            padding: 12px 20px;
            font-size: 11px;
            position: relative;
            border-bottom: 1px solid #d1d5db;
            border-right: 1px solid #d1d5db;
            background: #ffffff;
        }
        
        body.pagina-planning .subtask-row td:first-child {
            background: var(--task-bg-light, #f1f5f9);
            padding: 12px 20px;
            position: relative;
        }
        
        body.pagina-planning .subtask-row td:last-child {
            border-right: none;
        }
        
        
        body.pagina-planning .subtask-title {
            color: #475569;
            font-weight: 500;
            font-size: 11px;
            font-style: italic;
            white-space: normal;
            overflow: visible;
            text-overflow: unset;
        }
        
        body.pagina-planning .subtask-row:hover {
            background: #e2e8f0;
            transition: all 0.2s ease;
        }
        
        body.pagina-planning .subtask-row:hover td {
            background: #e2e8f0;
        }
        
        body.pagina-planning .subtask-row:hover td:first-child {
            background: var(--task-bg-light, #f1f5f9);
        }
        
        /* Task color classes */
        body.pagina-planning .task-color-0 { --task-color: var(--accent); --task-bg: var(--accent-zacht); --task-border: var(--accent); --task-bg-light: var(--accent-zacht); }
        body.pagina-planning .task-color-1 { --task-color: #10b981; --task-bg: #d1fae5; --task-border: #10b981; --task-bg-light: #f0fdf4; }
        body.pagina-planning .task-color-2 { --task-color: #f59e0b; --task-bg: #fef3c7; --task-border: #f59e0b; --task-bg-light: #fffbeb; }
        body.pagina-planning .task-color-3 { --task-color: #ef4444; --task-bg: #fee2e2; --task-border: #ef4444; --task-bg-light: #fef2f2; }
        body.pagina-planning .task-color-4 { --task-color: var(--accent); --task-bg: #ede9fe; --task-border: var(--accent); --task-bg-light: #faf5ff; }
        body.pagina-planning .task-color-5 { --task-color: #06b6d4; --task-bg: #cffafe; --task-border: #06b6d4; --task-bg-light: #f0fdfa; }
        body.pagina-planning .task-color-6 { --task-color: #84cc16; --task-bg: #ecfccb; --task-border: #84cc16; --task-bg-light: #f7fee7; }
        body.pagina-planning .task-color-7 { --task-color: #f97316; --task-bg: #fed7aa; --task-border: #f97316; --task-bg-light: #fff7ed; }
        body.pagina-planning .task-color-8 { --task-color: #ec4899; --task-bg: #fce7f3; --task-border: #ec4899; --task-bg-light: #fdf2f8; }
        body.pagina-planning .task-color-9 { --task-color: var(--accent); --task-bg: #e0e7ff; --task-border: var(--accent); --task-bg-light: #f8fafc; }

        /* Parent task styling */
        body.pagina-planning .parent-task-row {
            position: relative;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            margin: 4px 0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        body.pagina-planning .parent-task-row td {
            background: #ffffff;
            font-weight: 600;
            border: none;
            font-size: 13px;
        }
        
        body.pagina-planning .parent-task-row td:first-child {
            background: var(--task-bg, #ffffff);
        }
        
        body.pagina-planning .parent-task-row td:last-child {
            border-radius: 0 6px 6px 0;
        }
        
        body.pagina-planning .parent-task-row:hover {
            background: #f8fafc;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            transition: all 0.2s ease;
        }
        
        body.pagina-planning .parent-task-row:hover td {
            background: #f8fafc;
        }
        
        body.pagina-planning .parent-task-row:hover td:first-child {
            background: var(--task-bg, #ffffff);
        }
        
        /* Drag and Drop styling */
        body.pagina-planning .parent-task-row[draggable="true"] {
            cursor: move;
        }
        
        body.pagina-planning .parent-task-row.drag-over {
            box-shadow: inset 0 3px 0 var(--accent-donker);
        }

        body.pagina-planning .parent-task-row.drag-over td {
            background: var(--accent-zacht);
        }
        
        body.pagina-planning .parent-task-row:active {
            opacity: 0.8;
        }
        
        body.pagina-planning .parent-task-row::after {
            content: '';
            position: absolute;
            left: 32px;
            bottom: -2px;
            width: 3px;
            height: 20px;
            background: var(--task-color, var(--accent));
            border-radius: 2px;
        }
        
        body.pagina-planning .parent-task-row.expanded::after {
            height: 40px;
        }
        
        body.pagina-planning .add-task-row {
            background: #f8fafc;
            border-top: 1px solid #d1d5db;
        }
        
        body.pagina-planning .add-task-row td {
            padding: 16px 24px;
            border-bottom: 1px solid #d1d5db;
        }
        
        /* Responsive */
        @media (max-width: 768px) {

            body.pagina-planning .main-content {
                flex-direction: column;
            }
            
            body.pagina-planning .timeline-panel {
                width: 100%;
                height: 400px;
            }
            
            body.pagina-planning .gantt-container {
                min-width: 100%;
                overflow-x: auto;
            }
            
            body.pagina-planning .view-tabs {
                gap: 16px;
            }
            
            body.pagina-planning .toolbar {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            body.pagina-planning .section-actions {
                flex-wrap: wrap;
                gap: 4px;
            }
            
            body.pagina-planning .view-btn {
                font-size: 11px;
                padding: 4px 8px;
            }
        
}


/* ---------- 3. Pagina: login.php ---------- */

/* Titelblok van de loginkaart (eigen .logo, niet die van de balk) */
body.pagina-login .logo {
            text-align: center;
            margin-bottom: 30px;
        }
body.pagina-login .logo h1 {
            color: #1f2937;
            font-size: 32px;
            font-weight: 700;
        }
body.pagina-login .logo p {
            color: var(--tekst-zacht);
            margin-top: 8px;
        }

body.pagina-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
        
        body.pagina-login .login-container {
            background: white;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 400px;
        }
        
        body.pagina-login .form-group {
            margin-bottom: 20px;
        }
        
        body.pagina-login .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #374151;
            font-weight: 500;
        }
        
        body.pagina-login .form-group input, body.pagina-login .form-group select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        body.pagina-login .form-group input:focus, body.pagina-login .form-group select:focus {
            outline: none;
            border-color: var(--accent-donker);
        }
        
        body.pagina-login .btn {
            width: 100%;
            padding: 12px;
            background: var(--accent-donker);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        body.pagina-login .btn:hover {
            background: #4338ca;
        }
        
        body.pagina-login .btn:disabled {
            background: #9ca3af;
            cursor: not-allowed;
        }
        
        body.pagina-login .switch-form {
            text-align: center;
            margin-top: 20px;
            color: var(--tekst-zacht);
        }
        
        body.pagina-login .switch-form a {
            color: var(--accent-donker);
            text-decoration: none;
            font-weight: 500;
        }
        
        body.pagina-login .switch-form a:hover {
            text-decoration: underline;
        }
        
        body.pagina-login .error {
            background: #fef2f2;
            color: #dc2626;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid #fecaca;
        }
        
        body.pagina-login .success {
            background: #f0fdf4;
            color: #16a34a;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid #bbf7d0;
        }
        
        body.pagina-login .hidden {
            display: none;
        }
    

        body.pagina-login .peer-eval-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        body.pagina-login .peer-eval-btn {
            background: #10b981;
            font-size: 18px;
            padding: 16px;
        }
        
        body.pagina-login .peer-eval-btn:hover {
            background: #059669;
        }
        
        body.pagina-login .secondary-btn {
            background: #6b7280;
            font-size: 16px;
            padding: 12px;
        }
        
        body.pagina-login .secondary-btn:hover {
            background: #4b5563;
        }
        
        body.pagina-login .btn {
            display: flex;
            align-items: center;
            justify-content: center;
        }


/* ---------- 3. Pagina: projects.php ---------- */

body.pagina-projecten {
    color: #1f2937;
    min-height: 100vh;
}
        
        /* Header */
        body.pagina-projecten .view-tabs {
            display: flex;
            gap: 8px;
        }
        
        body.pagina-projecten .view-tab {
            padding: 8px 16px;
            background: transparent;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            color: var(--tekst-zacht);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        body.pagina-projecten .view-tab:hover {
            background: #f3f4f6;
            color: #1f2937;
        }
        
        body.pagina-projecten .view-tab.active {
            background: var(--accent-donker);
            color: white;
        }
        
        body.pagina-projecten .material-symbols-outlined {
            font-size: 20px;
            vertical-align: middle;
        }
        
        /* Main Content */
        body.pagina-projecten .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 24px;
        }
        
        body.pagina-projecten .page-header {
            margin-bottom: 40px;
        }
        
        body.pagina-projecten .page-title {
            font-size: 32px;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 8px;
        }
        
        body.pagina-projecten .page-subtitle {
            font-size: 16px;
            color: var(--tekst-zacht);
        }
        
        /* Projects Grid */
        body.pagina-projecten .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
            margin-bottom: 40px;
        }
        
        body.pagina-projecten .project-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 24px;
            transition: all 0.2s;
            cursor: pointer;
        }
        
        body.pagina-projecten .project-card:hover {
            border-color: var(--accent-donker);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        
        body.pagina-projecten .project-card.new-project {
            border: 2px dashed #d1d5db;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 200px;
            color: var(--tekst-zacht);
        }
        
        body.pagina-projecten .project-card.new-project:hover {
            border-color: var(--accent-donker);
            color: var(--accent-donker);
        }
        
        body.pagina-projecten .new-project-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }
        
        body.pagina-projecten .new-project-text {
            font-size: 18px;
            font-weight: 500;
        }
        
        body.pagina-projecten .project-header {
            margin-bottom: 16px;
        }
        
        body.pagina-projecten .project-name {
            font-size: 20px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 8px;
        }
        
        body.pagina-projecten .project-description {
            color: var(--tekst-zacht);
            font-size: 14px;
            line-height: 1.5;
        }
        
        body.pagina-projecten .project-stats {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
        }
        
        body.pagina-projecten .stat {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        body.pagina-projecten .stat-number {
            font-size: 24px;
            font-weight: 700;
            color: #1f2937;
        }
        
        body.pagina-projecten .stat-label {
            font-size: 12px;
            color: var(--tekst-zacht);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        body.pagina-projecten .project-actions {
            display: flex;
            gap: 8px;
        }
        
        body.pagina-projecten .btn {
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        body.pagina-projecten .btn-primary {
            background: var(--accent-donker);
            color: white;
        }
        
        body.pagina-projecten .btn-primary:hover {
            background: #4338ca;
        }
        
        body.pagina-projecten .btn-secondary {
            background: #f3f4f6;
            color: #374151;
        }
        
        body.pagina-projecten .btn-secondary:hover {
            background: #e5e7eb;
        }
        
        body.pagina-projecten .btn-danger {
            background: #ef4444;
            color: white;
        }
        
        body.pagina-projecten .btn-danger:hover {
            background: #dc2626;
        }
        
        /* Modal */
        body.pagina-projecten .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        
        body.pagina-projecten .modal.hidden {
            display: none;
        }
        
        body.pagina-projecten .modal-content {
            background: white;
            border-radius: 12px;
            padding: 24px;
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        body.pagina-projecten .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
        }
        
        body.pagina-projecten .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #1f2937;
        }
        
        body.pagina-projecten .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--tekst-zacht);
            padding: 4px;
        }
        
        body.pagina-projecten .modal-close:hover {
            color: #374151;
        }
        
        body.pagina-projecten .form-group {
            margin-bottom: 20px;
        }
        
        body.pagina-projecten .form-label {
            display: block;
            margin-bottom: 8px;
            color: #374151;
            font-weight: 500;
        }
        
        body.pagina-projecten .form-input, body.pagina-projecten .form-textarea {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        body.pagina-projecten .form-input:focus, body.pagina-projecten .form-textarea:focus {
            outline: none;
            border-color: var(--accent-donker);
        }
        
        body.pagina-projecten .form-textarea {
            resize: vertical;
            min-height: 100px;
        }
        
        body.pagina-projecten .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
        
        body.pagina-projecten .btn-cancel {
            background: #f3f4f6;
            color: #374151;
        }
        
        body.pagina-projecten .btn-save {
            background: var(--accent-donker);
            color: white;
        }
        
        /* Empty State */
        body.pagina-projecten .empty-state {
            text-align: center;
            padding: 80px 24px;
            color: var(--tekst-zacht);
        }
        
        body.pagina-projecten .empty-state-icon {
            font-size: 64px;
            margin-bottom: 24px;
        }
        
        body.pagina-projecten .empty-state-title {
            font-size: 24px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 8px;
        }
        
        body.pagina-projecten .empty-state-text {
            font-size: 16px;
            margin-bottom: 32px;
        }
        
        /* Responsive */
        @media (max-width: 768px) {

            body.pagina-projecten .main-content {
                padding: 24px 16px;
            }
            
            body.pagina-projecten .projects-grid {
                grid-template-columns: 1fr;
            }
            
            body.pagina-projecten .page-title {
                font-size: 24px;
            }
        
}


/* ---------- 3. Pagina: peer_evaluation.php ---------- */

body.pagina-peerevaluatie {
    color: #1f2937;
}
        
        body.pagina-peerevaluatie .header {
            background: white;
            padding: 20px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        body.pagina-peerevaluatie .header h1 {
            color: #1f2937;
            font-size: 24px;
            font-weight: 700;
        }
        
        body.pagina-peerevaluatie .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }
        
        body.pagina-peerevaluatie .btn-primary {
            background: var(--accent-donker);
            color: white;
        }
        
        body.pagina-peerevaluatie .btn-primary:hover {
            background: #4338ca;
        }
        
        body.pagina-peerevaluatie .btn-secondary {
            background: #6b7280;
            color: white;
        }
        
        body.pagina-peerevaluatie .btn-secondary:hover {
            background: #4b5563;
        }
        
        body.pagina-peerevaluatie .btn-success {
            background: #10b981;
            color: white;
        }
        
        body.pagina-peerevaluatie .btn-success:hover {
            background: #059669;
        }
        
        body.pagina-peerevaluatie .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }
        
        body.pagina-peerevaluatie .card {
            background: white;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        body.pagina-peerevaluatie .card h2 {
            color: #1f2937;
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 16px;
        }
        
        body.pagina-peerevaluatie .evaluation-list {
            display: grid;
            gap: 16px;
        }
        
        body.pagina-peerevaluatie .evaluation-item {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        body.pagina-peerevaluatie .evaluation-info h3 {
            color: #1f2937;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        body.pagina-peerevaluatie .evaluation-info p {
            color: var(--tekst-zacht);
            font-size: 14px;
            margin-bottom: 4px;
        }
        
        body.pagina-peerevaluatie .status-badge {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            margin-right: 12px;
        }
        
        body.pagina-peerevaluatie .status-pending {
            background: #fef3c7;
            color: #92400e;
        }
        
        body.pagina-peerevaluatie .status-completed {
            background: #dcfce7;
            color: #166534;
        }
        
        body.pagina-peerevaluatie .status-not-available {
            background: #fee2e2;
            color: #991b1b;
        }
        
        body.pagina-peerevaluatie .evaluation-form {
            display: none;
        }
        
        body.pagina-peerevaluatie .evaluation-form.active {
            display: block;
        }
        
        body.pagina-peerevaluatie .form-group {
            margin-bottom: 20px;
        }
        
        body.pagina-peerevaluatie .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #374151;
            font-weight: 500;
        }
        
        body.pagina-peerevaluatie .form-group input, body.pagina-peerevaluatie .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        body.pagina-peerevaluatie .form-group input:focus, body.pagina-peerevaluatie .form-group textarea:focus {
            outline: none;
            border-color: var(--accent-donker);
        }
        
        body.pagina-peerevaluatie .item-evaluation {
            background: #f3f4f6;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 16px;
        }
        
        body.pagina-peerevaluatie .item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        body.pagina-peerevaluatie .item-name {
            font-weight: 600;
            color: #1f2937;
        }
        
        body.pagina-peerevaluatie .item-type {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }
        
        body.pagina-peerevaluatie .type-normal {
            background: var(--accent-zacht);
            color: #1e40af;
        }
        
        body.pagina-peerevaluatie .type-negative {
            background: #fee2e2;
            color: #991b1b;
        }
        
        body.pagina-peerevaluatie .points-input {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        body.pagina-peerevaluatie .points-input input {
            width: 80px;
            text-align: center;
        }
        
        body.pagina-peerevaluatie .points-input span {
            color: var(--tekst-zacht);
            font-size: 14px;
        }
        
        body.pagina-peerevaluatie .percentage-display {
            font-weight: 600;
            color: #1f2937;
        }
        
        body.pagina-peerevaluatie .total-score {
            background: var(--accent-zacht);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
            border-radius: 8px;
            padding: 16px;
            margin-top: 20px;
            text-align: center;
        }
        
        body.pagina-peerevaluatie .total-score h3 {
            color: #0c4a6e;
            font-size: 18px;
            margin-bottom: 8px;
        }
        
        body.pagina-peerevaluatie .total-score .score {
            font-size: 24px;
            font-weight: 700;
            color: #0c4a6e;
        }
        
        body.pagina-peerevaluatie .hidden {
            display: none;
        }
        
        body.pagina-peerevaluatie .no-evaluations {
            text-align: center;
            color: var(--tekst-zacht);
            padding: 40px;
        }
        
        body.pagina-peerevaluatie .student-selector {
            margin-bottom: 20px;
        }
        
        body.pagina-peerevaluatie .student-selector select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 16px;
        }


/* ---------- Kleine actieknoppen bij het bewerken van een taak ---------- */

body.pagina-planning .taak-knop {
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

body.pagina-planning .taak-knop .material-symbols-outlined {
    font-size: 18px;
}

/* Groen en rood blijven voorbehouden aan geldig/ongeldig */
body.pagina-planning .taak-knop-opslaan {
    background: var(--geldig);
}

body.pagina-planning .taak-knop-annuleren {
    background: var(--ongeldig);
}

/* Ster bij een favoriete sjabloon */
body.pagina-admin .favoriet-ster {
    font-size: 16px;
    color: var(--accent);
    vertical-align: middle;
}


/* ============================================================
   Hulpklassen die de vroegere inline styles vervangen.
   Naam = u-<eerste eigenschap>-<volgnummer>, per pagina gescoped.
   ============================================================ */

/* Uit de vroegere inline styles van index.php */

body.pagina-planning .u-background-1 { background: #ef4444; color: white; border: none; padding: 8px 12px; border-radius: 4px; min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
body.pagina-planning .u-color-1 { color: red; }
body.pagina-planning .u-color-2 { color: #9ca3af; font-style: italic; text-align: center; padding: 8px; }
body.pagina-planning .u-cursor-1 { cursor: pointer; font-size: 12px; color: var(--task-color, var(--accent)); font-weight: bold; }
body.pagina-planning .u-cursor-2 { cursor: grab; font-size: 16px; color: var(--tekst-zacht); padding: 4px; }
body.pagina-planning .u-display-1 { display: none; }
body.pagina-planning .u-display-2 { display: flex; }
body.pagina-planning .u-display-3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
body.pagina-planning .u-display-4 { display: flex; align-items: center; gap: 8px; }
body.pagina-planning .u-display-5 { display: flex; align-items: center; justify-content: space-between; width: 100%; }
body.pagina-planning .u-display-6 { display: flex; gap: 4px; align-items: center; }
body.pagina-planning .u-display-7 { display: flex; gap: 4px; pointer-events: auto; }
body.pagina-planning .u-flex-1 { flex: 1; }
body.pagina-planning .u-font-size-1 { font-size: 12px; color: #94a3b8; }
body.pagina-planning .u-margin-top-1 { margin-top: 8px; }
body.pagina-planning .u-overflow-x-1 { overflow-x: auto; width: 100%; }
body.pagina-planning .u-padding-1 { padding: 4px; border: 1px solid var(--accent); border-radius: 4px; background: white; }
body.pagina-planning .u-pointer-events-1 { pointer-events: auto; }
body.pagina-planning .u-text-align-1 { text-align: center; color: var(--tekst-zacht); padding: 40px; }
body.pagina-planning .u-width-1 { width: 100%; max-width: 100%; }
body.pagina-planning .u-width-10 { width: auto; }
body.pagina-planning .u-width-11 { width: 100%; padding: 8px; border: 2px solid var(--accent); border-radius: 4px; background: white; }
body.pagina-planning .u-width-12 { width: 100%; padding: 8px; background: var(--accent-zacht); border-radius: 4px; background: #fef3c7; }
body.pagina-planning .u-width-2 { width: 100%; table-layout: auto; min-width: 1000px; }
body.pagina-planning .u-width-3 { width: 300px; }
body.pagina-planning .u-width-4 { width: 100px; }
body.pagina-planning .u-width-5 { width: 80px; }
body.pagina-planning .u-width-6 { width: 120px; }
body.pagina-planning .u-width-7 { width: 200px; }
body.pagina-planning .u-width-8 { width: 60px; }
body.pagina-planning .u-width-9 { width: 50px; }

/* Uit de vroegere inline styles van login.php */

body.pagina-login .u-margin-right-1 { margin-right: 8px; }

/* Uit de vroegere inline styles van peer_evaluation.php */

body.pagina-peerevaluatie .u-display-1 { display: flex; gap: 12px; margin-top: 20px; }

/* Uit de vroegere inline styles van projects.php */

body.pagina-projecten .u-background-1 { background: white; padding: 20px; border-radius: 8px; border: 1px solid #e5e7eb; }
body.pagina-projecten .u-background-2 { background: white; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; }
body.pagina-projecten .u-background-3 { background: #f9fafb; }
body.pagina-projecten .u-background-4 { background: transparent; border: none; cursor: pointer; padding: 4px; color: var(--tekst-zacht); }
body.pagina-projecten .u-border-1 { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; cursor: pointer; transition: all 0.2s; }
body.pagina-projecten .u-border-top-1 { border-top: 1px solid #e5e7eb; }
body.pagina-projecten .u-display-1 { display: none; }
body.pagina-projecten .u-display-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
body.pagina-projecten .u-display-3 { display: grid; gap: 16px; }
body.pagina-projecten .u-display-4 { display: flex; flex-direction: column; gap: 4px; }
body.pagina-projecten .u-display-5 { display: flex; gap: 8px; }
body.pagina-projecten .u-display-6 { display: flex; gap: 16px; font-size: 14px; }
body.pagina-projecten .u-display-7 { display: flex; align-items: center; gap: 4px; color: var(--tekst-zacht); }
body.pagina-projecten .u-font-size-1 { font-size: 14px; color: var(--tekst-zacht); margin-bottom: 8px; }
body.pagina-projecten .u-font-size-2 { font-size: 32px; font-weight: 600; color: #1f2937; }
body.pagina-projecten .u-font-size-3 { font-size: 18px; font-weight: 600; }
body.pagina-projecten .u-font-size-4 { font-size: 14px; color: var(--tekst-zacht); }
body.pagina-projecten .u-font-size-5 { font-size: 16px; margin-bottom: 8px; color: #1f2937; }
body.pagina-projecten .u-font-size-6 { font-size: 14px; color: var(--tekst-zacht); margin-bottom: 12px; }
body.pagina-projecten .u-font-size-7 { font-size: 16px; }
body.pagina-projecten .u-font-weight-1 { font-weight: 500; color: #1f2937; }
body.pagina-projecten .u-max-width-1 { max-width: 900px; }
body.pagina-projecten .u-overflow-x-1 { overflow-x: auto; }
body.pagina-projecten .u-padding-1 { padding: 16px 24px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
body.pagina-projecten .u-padding-2 { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; width: 300px; }
body.pagina-projecten .u-padding-3 { padding: 12px 24px; text-align: left; font-size: 12px; font-weight: 600; color: var(--tekst-zacht); text-transform: uppercase; }
body.pagina-projecten .u-padding-4 { padding: 16px 24px; }
body.pagina-projecten .u-text-align-1 { text-align: center; padding: 48px; }
body.pagina-projecten .u-text-align-2 { text-align: center; color: var(--tekst-zacht); }
body.pagina-projecten .u-text-align-3 { text-align: center; padding: 48px; color: var(--tekst-zacht); }
body.pagina-projecten .u-text-align-4 { text-align: center; color: var(--tekst-zacht); padding: 48px; }
body.pagina-projecten .u-width-1 { width: 100%; border-collapse: collapse; }

/* ---------- Rol-label in de projectenlijst ---------- */

body.pagina-projecten .rol-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

body.pagina-projecten .rol-label-beheerder {
    background: var(--accent-zacht);
    color: var(--accent-donker);
}

body.pagina-projecten .rol-label-gebruiker {
    background: #e5e7eb;
    color: #374151;
}

/* ---------- Taaktitel en subtaken in de planning ---------- */

body.pagina-planning .taak-titel-bewerkbaar {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
}

body.pagina-planning .taak-titel-bewerkbaar.is-subtaak {
    margin-left: 20px;
}

body.pagina-planning .subtaak-compact {
    font-size: 11px;
    padding: 2px 8px;
}

/* ---------- Hover-toestanden die vroeger in JavaScript stonden ---------- */

body.pagina-projecten .project-kaart {
    transition: background 0.2s, box-shadow 0.2s;
}

body.pagina-projecten .project-kaart:hover {
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

body.pagina-planning .taak-titel-bewerkbaar {
    transition: background-color 0.2s;
}

body.pagina-planning .taak-titel-bewerkbaar:hover {
    background-color: #f3f4f6;
}

/* ---------- Melding wanneer de configuratie ontbreekt ---------- */

.opstartfout {
    max-width: 640px;
    margin: 80px auto;
    padding: 32px;
    background: var(--vlak);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.opstartfout h1 {
    font-size: 24px;
    color: var(--tekst);
    margin-bottom: 16px;
}

.opstartfout p {
    color: var(--tekst-zacht);
    margin-bottom: 8px;
}

/* Technische waarden blijven in SF Pro, nooit in een codelettertype */
.opstartfout .pad {
    color: var(--accent-donker);
    font-weight: 600;
}


/* ============================================================
   Liquid Glass — tier 2 op elke kaart, tegel en paneel
   Zelfde anatomie overal: hairline, lichtband boven, diepte onder.
   ============================================================ */

.user-dropdown {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
.dropdown-menu {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-planning .edit-date {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-planning .edit-btn {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
/* Context menu for tasks */ body.pagina-planning .task-context-menu {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-planning .timeline-grid {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-planning .modal-content {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-planning .subtask-row {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
/* Parent task styling */ body.pagina-planning .parent-task-row {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-login .login-container {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-projecten .project-card {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-projecten .modal-content {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-peerevaluatie .card {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-planning .u-padding-1 {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-planning .u-width-11 {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
/* Uit de vroegere inline styles van projects.php */ body.pagina-projecten .u-background-1 {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}
body.pagina-projecten .u-background-2 {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}

/* ============================================================
   Liquid Glass — tier 1: chrome dat boven de inhoud zweeft
   ============================================================ */

.header {
    background: var(--glas1-vulling);
    -webkit-backdrop-filter: var(--glas1-blur);
    backdrop-filter: var(--glas1-blur);
    border: none;
    border-bottom: 1px solid var(--hairline-onder);
    box-shadow: 0 1px 0 var(--lichtband) inset, 0 6px 24px rgba(15, 23, 42, 0.06);
}

/* Knoppen in de balk: eigen plaatje glas, zodat het label stabiel leest */
.nav-btn {
    background: var(--plaat);
    border: 1px solid var(--hairline);
    box-shadow: inset 0 1px 0 var(--lichtband);
    border-radius: 999px;
}

.nav-btn:hover {
    background: var(--plaat-vast);
    border-color: var(--hairline);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}

/* De actieve knop is een structurele wijziging, niet enkel een kleurtje */
.nav-btn.active,
.nav-btn.active:hover {
    background: var(--accent);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.user-dropdown {
    background: var(--plaat);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 var(--lichtband);
}

.user-dropdown:hover {
    background: var(--plaat-vast);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}

.dropdown-menu {
    background: var(--glas1-vulling);
    -webkit-backdrop-filter: var(--glas1-blur);
    backdrop-filter: var(--glas1-blur);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-klein);
    box-shadow: var(--diepte-2), inset 0 1px 0 var(--lichtband);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.75);
}

.dropdown-divider {
    background: var(--hairline-onder);
}

/* ============================================================
   Stress-test 3 — dichtheid
   Tabellen, formulieren en lijsten krijgen de meest leesbare tier.
   Daar telt contrast zwaarder dan doorkijk.
   ============================================================ */

.table-container,
.users-table,
.projects-list,
.task-table,
table {
    background: var(--plaat-vast);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Bijschriften op glas iets donkerder, zodat ze ook boven een hotspot leesbaar blijven */
.tile-desc,
.form-hint,
.stat-label {
    color: var(--tekst-zacht);
}

/* ============================================================
   Liquid Glass — velden, knoppen en toestanden
   Stress-test 2: elke toestand is een structurele wijziging,
   niet enkel een kleurverschil.
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea,
.form-control,
.form-input,
.form-select {
    background: var(--plaat-vast);
    border: 1px solid var(--hairline-onder);
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    font-family: inherit;
    color: var(--tekst);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(194, 65, 12, 0.45);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.18), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

input:disabled,
select:disabled,
textarea:disabled,
.form-control:disabled {
    background: rgba(255, 255, 255, 0.5);
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

/* Validatie: groen en rood blijven daarvoor voorbehouden */
input.is-geldig,
select.is-geldig {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

input.is-ongeldig,
select.is-ongeldig {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

/* Knoppen: dezelfde lichtrichting als het glas */
.btn,
button.btn {
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 4px 12px rgba(15, 23, 42, 0.14);
}

.btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.18);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn:focus-visible,
.tile:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Vensters zweven boven alles: tier 1, met een eigen plaat voor de inhoud */
.modal-overlay,
.modal {
    background: rgba(15, 23, 42, 0.32);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-card,
.modal-content {
    background: var(--glas1-vulling);
    -webkit-backdrop-filter: var(--glas1-blur);
    backdrop-filter: var(--glas1-blur);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-groot);
    box-shadow: var(--diepte-2), inset 0 1px 0 var(--lichtband);
}

/* Tekst in een venster staat op een plaat, niet op rauwe blur */
.modal-body {
    background: var(--plaat);
    border-radius: var(--radius-klein);
    padding: 16px;
}

/* ---------- Gevulde knoppen krijgen dezelfde lichtval als het glas ---------- */

.btn-primary,
.btn-success,
.btn-warning,
.btn-danger,
.btn-secondary,
.login-container .btn {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.06));
}

/* De loginkaart is een glasplaat op de grond */
.login-container {
    border-radius: var(--radius-groot);
    box-shadow: var(--diepte-2), inset 0 1px 0 var(--lichtband);
}

/* ============================================================
   Planning — inhoud in een paneel in plaats van een vlakke lap
   ============================================================ */

body.pagina-planning .view-tabs-container {
    background: transparent;
    border-bottom: none;
    padding: 16px 24px 0;
}

body.pagina-planning .view-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--glas1-vulling);
    -webkit-backdrop-filter: var(--glas1-blur);
    backdrop-filter: var(--glas1-blur);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 var(--lichtband);
}

body.pagina-planning .view-tab {
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: none;
}

/* Geselecteerde tab is een chip, geen onderstreping */
body.pagina-planning .view-tab.active {
    background: var(--plaat-vast);
    color: var(--accent-donker);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
}

body.pagina-planning .main-content {
    padding: 16px 24px 24px;
    height: auto;
    min-height: calc(100vh - 190px);
    gap: 16px;
}

body.pagina-planning .task-list,
body.pagina-planning .gantt-container,
body.pagina-planning #timeline-view {
    background: var(--glas2-vulling);
    -webkit-backdrop-filter: var(--glas2-blur);
    backdrop-filter: var(--glas2-blur);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-groot);
    box-shadow: var(--diepte-1), inset 0 1px 0 var(--lichtband);
    overflow: hidden;
}

/* De tabel zelf blijft op een vaste plaat: dichtheid gaat voor doorkijk */
body.pagina-planning .task-table {
    background: var(--plaat-vast);
}

body.pagina-planning .task-section {
    border-bottom: none;
}

body.pagina-planning .student-info-header {
    background: var(--glas1-vulling);
    -webkit-backdrop-filter: var(--glas1-blur);
    backdrop-filter: var(--glas1-blur);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-klein);
    box-shadow: inset 0 1px 0 var(--lichtband);
    margin: 16px 24px 0;
}

/* ============================================================
   Stress-test 2 — toestanden
   Deze regels staan achteraan en zijn specifieker dan de
   pagina-eigen regels, zodat elke toestand overal hetzelfde leest.
   ============================================================ */

body[class*="pagina-"] input:focus,
body[class*="pagina-"] select:focus,
body[class*="pagina-"] textarea:focus,
body[class*="pagina-"] .form-control:focus,
body[class*="pagina-"] .form-input:focus,
body[class*="pagina-"] .form-select:focus {
    outline: none;
    border-color: rgba(194, 65, 12, 0.55);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.20), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

body[class*="pagina-"] input:disabled,
body[class*="pagina-"] select:disabled,
body[class*="pagina-"] textarea:disabled,
body[class*="pagina-"] .form-control:disabled {
    background: rgba(255, 255, 255, 0.5);
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

body[class*="pagina-"] .btn:disabled,
body[class*="pagina-"] .btn[disabled] {
    opacity: 0.45;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

body[class*="pagina-"] .btn:focus-visible,
body[class*="pagina-"] .tile:focus-visible,
body[class*="pagina-"] a:focus-visible,
body[class*="pagina-"] input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Bezig: herkenbaar aan beweging, niet enkel aan tekst */
body[class*="pagina-"] .loading {
    color: var(--tekst-zacht);
}

body[class*="pagina-"] .loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    vertical-align: -1px;
    border: 2px solid rgba(15, 23, 42, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: bezig 0.8s linear infinite;
}

@keyframes bezig {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Peerevaluatie — voortgang aan de kant van de leerling
   ============================================================ */

body.pagina-peerevaluatie .voortgang {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

body.pagina-peerevaluatie .voortgang-balk {
    flex: 0 0 200px;
    width: 200px;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

body.pagina-peerevaluatie .voortgang-balk span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
    transition: width 0.3s ease;
}

body.pagina-peerevaluatie .voortgang-tekst {
    font-size: 13px;
    color: var(--tekst-zacht);
    white-space: nowrap;
}

body.pagina-peerevaluatie .nog-te-doen {
    font-size: 13px;
    color: var(--tekst-zacht);
    margin-bottom: 8px;
}

/* Bezig is een eigen toestand, naast voltooid en nog te doen */
body.pagina-peerevaluatie .status-busy {
    background: var(--accent-zacht);
    color: var(--accent-donker);
}

body.pagina-peerevaluatie option:disabled {
    color: #9ca3af;
}

/* ---------- Balk: compacter zodra de ruimte krap wordt ---------- */

@media (max-width: 1240px) {
    .nav-btn {
        padding: 7px 10px;
        font-size: 13px;
        gap: 6px;
    }

    .nav-btn .material-symbols-outlined {
        font-size: 17px;
    }

    .nav-logo {
        font-size: 17px;
    }

    /* Naam naast de avatar valt weg zodra de knoppen krap komen te zitten */
    .user-name {
        display: none;
    }

    .user-dropdown {
        padding: 7px 11px;
    }
}

@media (max-width: 1040px) {
    .nav-btn {
        padding: 6px 8px;
        font-size: 12px;
        gap: 4px;
    }

    .nav-btn .material-symbols-outlined {
        font-size: 16px;
    }

    .nav-buttons {
        gap: 4px;
    }

    .nav-logo {
        font-size: 16px;
    }

    .nav-logo-icon {
        font-size: 18px;
    }

    /* Naam naast de avatar valt weg; de avatar blijft */
    .user-name {
        display: none;
    }

    .user-dropdown {
        padding: 6px 10px;
    }

    .header {
        padding: 10px 16px;
    }
}

/* Moet er toch geschoven worden, dan toont een zachte rand dat er meer is */
.nav-buttons {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}

/* Aanduiding bij velden die je mag overslaan */
body.pagina-login .optioneel {
    margin-left: 5px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #9ca3af;
}

/* ============================================================
   Planning zonder project
   ============================================================ */

body.pagina-planning .huidig-project {
    margin-left: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tekst-zacht);
}

body.pagina-planning .task-table td.geen-project {
    padding: 56px 24px;
    text-align: center;
    color: var(--tekst-zacht);
}

body.pagina-planning .geen-project .material-symbols-outlined {
    font-size: 40px;
    color: #c4c9d1;
    display: block;
    margin-bottom: 12px;
}

/* Elke zin op een eigen regel */
body.pagina-planning .geen-project p {
    margin-bottom: 6px;
}

body.pagina-planning .geen-project-knop {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--accent);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.06));
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.18s ease;
}

body.pagina-planning .geen-project-knop:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

/* ============================================================
   Slepen van taken en subtaken
   ============================================================ */

body.pagina-planning tr[draggable="true"] {
    cursor: grab;
}

body.pagina-planning tr.wordt-gesleept {
    opacity: 0.45;
    cursor: grabbing;
}

/* Waar de rij terechtkomt: een lijn boven de doelrij, geen kleurvlak */
body.pagina-planning tr.drag-over td {
    box-shadow: inset 0 3px 0 var(--accent);
}

/* Een subtaak toont zijn doel iets ingesprongen, net als de rij zelf */
body.pagina-planning tr.subtask-row.drag-over td:first-child {
    box-shadow: inset 0 3px 0 var(--accent), inset 20px 0 0 -17px transparent;
}

/* ============================================================
   Project insluiten op een eigen pagina
   ============================================================ */

/* Dit venster staat zowel in de planning als bij Mijn projecten, en ziet
   er op beide plaatsen hetzelfde uit. */

body.pagina-projecten .modal-breed,
body.pagina-planning .modal-breed {
    max-width: 640px;
}

body.pagina-projecten .insluiten-uitleg,
body.pagina-planning .insluiten-uitleg {
    margin-bottom: 20px;
    color: var(--tekst-zacht);
    font-size: 14px;
}

body.pagina-projecten .insluiten-stap,
body.pagina-planning .insluiten-stap {
    margin-bottom: 18px;
}

body.pagina-projecten .insluiten-stapkop,
body.pagina-planning .insluiten-stapkop {
    margin: 0 0 2px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--tekst);
}

body.pagina-projecten .insluiten-stap .form-hint,
body.pagina-planning .insluiten-stap .form-hint {
    margin: 0 0 8px;
}

/* Het veld neemt de plaats, de knoppen ernaast blijven op hun maat */
body.pagina-projecten .insluiten-regel,
body.pagina-planning .insluiten-regel {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

body.pagina-projecten .insluiten-regel .form-input,
body.pagina-planning .insluiten-regel .form-input {
    flex: 1;
    min-width: 0;
}

body.pagina-projecten .insluiten-tip,
body.pagina-planning .insluiten-tip {
    margin: 4px 0 20px;
    padding: 12px 14px;
    border-radius: var(--radius-klein);
    background: rgba(15, 23, 42, 0.04);
    color: var(--tekst-zacht);
    font-size: 13px;
}

/* De code blijft in SF Pro; leesbaarheid komt van de rustige achtergrond */
body.pagina-projecten .insluiten-code,
body.pagina-planning .insluiten-code {
    width: 100%;
    resize: vertical;
    line-height: 1.5;
    color: var(--tekst);
    background: rgba(15, 23, 42, 0.03);
    word-break: break-all;
}

/* Dezelfde zachte knop als op het dashboard, zodat hij overal gelijk aanvoelt */
body.pagina-projecten .knop-zacht,
body.pagina-planning .knop-zacht {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: var(--plaat-vast);
    color: var(--tekst-zacht);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.pagina-projecten .knop-zacht:hover,
body.pagina-planning .knop-zacht:hover {
    color: var(--accent-donker);
    border-color: rgba(194, 65, 12, 0.35);
    background: var(--accent-zacht);
}

body.pagina-projecten .knop-zacht .material-icons,
body.pagina-planning .knop-zacht .material-icons {
    font-size: 16px;
}

/* Verbergt een veld zonder het uit het formulier te halen.
   Gebruikt bij de klaskeuze: keuzelijst of vrij tekstveld, nooit allebei. */
body.pagina-login .u-verborgen {
    display: none;
}

/* ============================================================
   Aanmelden met een klascode, en het oogje bij een wachtwoord
   ============================================================ */

body.pagina-login .wachtwoord-veld {
    position: relative;
}

body.pagina-login .wachtwoord-veld input {
    padding-right: 42px;
}

body.pagina-login .wachtwoord-oog {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--tekst-zacht);
    cursor: pointer;
}

body.pagina-login .wachtwoord-oog:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--tekst);
}

body.pagina-login .wachtwoord-oog .material-icons {
    font-size: 18px;
}

body.pagina-login .veldfout:empty {
    display: none;
}

body.pagina-login .veldfout {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--ongeldig);
}

body.pagina-login .code-uitleg {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--tekst-zacht);
}

body.pagina-login #code-invoer {
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.pagina-login .code-klas {
    margin: 22px 0 16px;
    padding: 10px 14px;
    border-radius: var(--radius-klein);
    background: var(--accent-zacht);
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--tekst);
}

body.pagina-login #code-klaar-btn {
    margin-top: 4px;
}
