/* 1. Reset & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 1a. Design tokens (kleuren, schaduwen, afrondingen) */
:root {
    /* Basis */
    --color-bg-body: #f2f4f7;
    --color-text-main: #2f3e46;
    --color-surface: #ffffff;

    /* Grays */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f7fafc;
    --color-gray-200: #edf2f7;
    --color-gray-300: #e2e8f0;
    --color-gray-400: #cbd5e0;
    --color-gray-500: #a0aec0;
    --color-gray-600: #718096;
    --color-gray-700: #4a5568;
    --color-gray-800: #2d3748;
    --color-gray-900: #1a202c;

    /* Primaire blauw-tinten */
    --color-primary: #3182ce;
    --color-primary-dark: #2b6cb0;
    --color-primary-soft: #ebf8ff;
    --color-primary-soft-border: #bee3f8;

    /* Groen */
    --color-green: #27ae60;
    --color-green-light: #2ecc71;
    --color-green-soft: #f0fff4;
    --color-green-soft-border: #c6f6d5;
    --color-green-text: #276749;
    --color-green-strong: #38a169;

    /* Rood */
    --color-red: #e53e3e;
    --color-red-dark: #c53030;
    --color-red-soft: #fff5f5;
    --color-red-soft-border: #feb2b2;
    --color-red-alert: #e74c3c;
    --color-red-alert-dark: #c0392b;

    /* Oranje / Geel */
    --color-amber-soft: #fffaf0;
    --color-amber-soft-border: #feebc8;
    --color-amber-chip: #fef3c7;
    --color-amber-chip-border: #f6e05e;
    --color-amber-text: #b7791f;
    --color-amber-strong: #ecc94b;

    /* Overig */
    --color-border-subtle: #edf2f7;
    --color-border-soft: #e2e8f0;
    --color-border-muted: #d1d5db;
    --color-text-muted: #718096;
    --color-text-soft: #a0aec0;

    /* Schaduwen */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border-radius */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-2xl: 12px;
    --radius-3xl: 15px;
    --radius-4xl: 16px;
    --radius-pill: 20px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* 2. Navigatiebalk (Met Filiaal-kiezer & Gebruikersinfo) */
.navbar {
    width: 100%;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: block;
}

.navbar-inner {
    max-width: 1400px; /* Iets breder voor extra info */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 75px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-context {
    border-left: 1px solid var(--color-border-subtle);
    padding-left: 15px;
    margin-left: 10px;
}

.nav-select {
    padding: 6px 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-muted);
    background-color: var(--color-gray-50);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-700);
    outline: none;
    cursor: pointer;
}

.nav-location-badge {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #bee3f8;
}

.user-display {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-right: 15px;
    border-right: 1px solid var(--color-border-soft);
    padding-right: 15px;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-gray-800);
    line-height: 1.2;
}

.user-role {
    font-size: 0.65rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.navbar-right a {
    text-decoration: none;
    color: var(--color-gray-600);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-right a:hover {
    color: var(--color-gray-800);
}

/* De rode Uitlogknop */
.logout-btn {
    background-color: var(--color-red-alert);
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-lg);
}

.logout-btn:hover {
    background-color: var(--color-red-alert-dark);
}

/* De rode Uitlogknop */
.navbar-right a[href*="logout"] {
    background-color: var(--color-red-alert);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-lg);
}

.navbar-right a[href*="logout"]:hover {
    background-color: var(--color-red-alert-dark);
}

/* 3. Pagina Container (Voor dashboard inhoud) */
.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 4. Login Specifiek (Alleen voor de login pagina) */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 450px; /* Mooie compacte breedte voor login */
    margin: 10vh auto;
    padding: 20px;
}

.login-container {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-4xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-container h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-container p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

/* 5. Formulier elementen */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdde1;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--color-text-main);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--color-text-main);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Foutmelding styling */
.error-msg {
    color: var(--color-red-alert);
    background: var(--color-red-soft);
    padding: 10px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--color-red-soft-border);
}

/* ROOSTER */
/* Weekoverzicht Styling */
.page-container.wide { max-width: 1400px; }

.table-responsive { overflow-x: auto; margin-top: 20px; }

.week-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    font-size: 0.85rem;
}

.week-table th, .week-table td {
    border: 1px solid var(--color-border-soft);
    padding: 10px;
    text-align: center;
    min-width: 120px;
}

.col-name { text-align: left !important; background: var(--color-gray-100); position: sticky; left: 0; }

.row-lead { background-color: #f0f7ff; }

.lead-badge {
    background: #a11e11;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.shift-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shift-box .time { font-weight: bold; color: #2d3748; }
.shift-box .task { font-size: 0.75rem; color: #718096; text-transform: uppercase; }

.rooster-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
    padding: 15px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.week-selector select {
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
    font-family: inherit;
}

.btn-sec {
    text-decoration: none;
    background: var(--color-gray-100);
    color: var(--color-gray-800);
    padding: 8px 15px;
    border: 1px solid var(--color-gray-400);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-left: 5px;
    min-width: 80px;
    text-align: center;
    font-weight: bold;
}

.btn-sec:hover {
    background: var(--color-gray-200);
}
.btn-disabled {
    color: var(--color-gray-400);
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: not-allowed;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: #fafafa;
}
.week-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.week-dropdown {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-muted);
    font-family: inherit;
    font-weight: 600;
    color: var(--color-gray-800);
    background-color: var(--color-surface);
    cursor: pointer;
}

.week-status-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-now {
    color: #27ae60; /* Groen voor 'nu' */
}

.status-link {
    color: var(--color-primary);
    text-decoration: none;
}

.status-link:hover {
    text-decoration: underline;
}

.week-meta-info {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 5px;
}

.week-meta-info strong {
    color: var(--color-gray-800);
}
/* --- Beheer Rooster Specifieke CSS --- */

/* De hoofdbalk voor beheer */
.admin-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

/* De groene publicatieknop */
.btn-publish {
    background-color: var(--color-green);
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
}

.btn-publish:hover {
    background-color: var(--color-green-light);
    transform: translateY(-1px);
}

.btn-publish:active {
    transform: translateY(0);
}

/* Status badge voor als het al gepubliceerd is */
/* Zorg dat de knop een vaste breedte houdt of dat de tekst netjes centreert */
.status-badge.published {
    min-width: 160px; /* Geef de knop een vaste breedte zodat hij niet verspringt */
    background-color: var(--color-green-strong) !important; /* Groen */
    color: #ffffff !important;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Verberg de hover-tekst standaard als je met pseudo-elementen werkt, 
   of zorg dat de tekst simpelweg verandert zonder extra witruimte */
.status-badge.published:hover {
    background-color: var(--color-red) !important; /* Rood bij hover */
    color: #ffffff !important;
}

/* De '+' knop in de lege cellen */
.btn-add-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-soft);
    text-decoration: none;
    font-size: 1.8rem;
    width: 100%;
    height: 100%;
    min-height: 50px;
    transition: all 0.2s ease;
}

.btn-add-inline:hover {
    color: var(--color-primary);
    background-color: var(--color-primary-soft);
    border-radius: var(--radius-sm);
}

/* Specifieke styling voor de beheer tabel cellen */
.admin-table td.admin-cell {
    padding: 0; /* Zorgt dat de add-knop de hele cel vult */
    height: 60px;
    vertical-align: middle;
}
.row-stats { background: #f8fafc; border-top: 2px solid #e2e8f0; }
.row-stats input { width: 60px; padding: 4px; border: 1px solid #cbd5e0; border-radius: 4px; text-align: center; }
.cost-euro { font-size: 0.7rem; color: #718096; }
.high-cost { color: #e53e3e; background: #fff5f5; } /* Rood als het te duur is (>20%) */
.low-cost { color: #38a169; background: #f0fff4; }  /* Groen als het goed is */
/* L-Badge Styling */
.lead-badge {
    background: #a11e11;
    color: white;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.65rem;
    margin-left: 5px;
    vertical-align: middle;
}

.row-lead { background-color: #f0f7ff; }

/* Dienst-link en bewerk-look */
.shift-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.shift-box {
    position: relative;
    padding: 8px 4px;
    transition: background 0.2s;
    border-radius: 4px;
}

.shift-box:hover {
    background-color: #edf2f7;
}

/* Zet tijden naast elkaar op één regel */
.time-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.edit-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.7rem;
    color: #3182ce;
    opacity: 0;
    transition: opacity 0.2s;
}

.shift-box:hover .edit-icon {
    opacity: 1;
}
/* --- Centrale Modal Styling --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Iets donkerder voor meer focus */
    overflow-y: auto; 
    backdrop-filter: blur(3px); /* Maakt de achtergrond wazig, erg modern */
}

.modal-content {
    background-color: var(--color-surface);
    margin: 50px auto; 
    padding: 30px;
    border-radius: var(--radius-4xl);
    width: 90%;
    max-width: 500px; /* Mooie breedte voor formulieren */
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-gray-500);
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: var(--color-gray-800);
}

/* De Dropdown (Select) styling */
.modal-content select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border-muted);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--color-gray-700);
    cursor: pointer;
    appearance: none; /* Verwijdert de standaard browser pijl */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-content select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.modal-content input[type="time"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border-muted);
    border-radius: var(--radius-lg);
    font-family: 'Poppins', sans-serif;
}

/* Verwijderknop in de modal */
.delete-btn-style {
    background: transparent !important;
    color: var(--color-red) !important;
    border: 1px solid var(--color-red-soft-border) !important;
    transition: all 0.2s;
}

.delete-btn-style:hover {
    background-color: var(--color-red-soft) !important;
    border-color: var(--color-red) !important;
}
/* Modal Animatie */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
    /* Extra witruimte onderaan voor de knoppen */
    padding-bottom: 40px; 
}

/* De knoppen onderin de modal netjes uitlijnen */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.clickable-shift {
    cursor: pointer;
}
.shift-box {
    position: relative; /* Zorgt dat het kruisje binnen de box blijft */
}

.quick-delete {
    position: absolute;
    top: -2px;
    left: 2px;
    color: #e53e3e;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
}

.shift-box:hover .quick-delete {
    opacity: 1;
}

.quick-delete:hover {
    color: #c53030;
    transform: scale(1.2);
}
.btn-unpublish {
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-block;
}

.btn-unpublish:hover {
    background-color: var(--color-red-soft) !important; /* Lichtrood */
    color: var(--color-red) !important;                  /* Rood tekst */
    border-color: var(--color-red-soft-border) !important; /* Rode rand */
}

.btn-unpublish:hover::after {
    content: " ➔ Offline halen";
    font-size: 0.8rem;
    font-weight: normal;
}
/* --- Verbeterde Info Banners --- */
.info-banner {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: var(--radius-2xl);
    margin-bottom: 20px;
    position: relative;
    border: 1px solid transparent;
    box-shadow: var(--shadow-md);
}

.info-banner.success {
    background-color: var(--color-green-soft);
    border-color: var(--color-green-soft-border);
    color: var(--color-green-text);
}

.info-banner.warning {
    background-color: var(--color-amber-soft);
    border-color: var(--color-amber-soft-border);
    color: #744210;
}

.banner-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.banner-text {
    display: flex;
    flex-direction: column;
}

.banner-text strong {
    font-size: 1rem;
    margin-bottom: 2px;
}

.banner-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

.banner-close:hover {
    opacity: 1;
}

/* Animatie voor het binnenkomen */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: slideDown 0.4s ease-out;
}
/* --- Admin Dropdown Styling --- */
.admin-dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    padding: 10px 15px;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.dropdown-content {
    display: none; /* Verberg het menu standaard */
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1100;
    top: 100%;
    right: 0;
    overflow: hidden;
    border: 1px solid #edf2f7;
}

/* Links binnen de dropdown */
.dropdown-content a {
    color: #4a5568 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    text-align: left;
}

/* Hover over de links */
.dropdown-content a:hover {
    background-color: #f7fafc;
    color: #3182ce !important;
}

/* Toon het menu bij hover */
.admin-dropdown:hover .dropdown-content {
    display: block;
}

/* Pijltje een beetje animeren */
.admin-dropdown:hover .dropbtn {
    color: #3182ce !important;
}
/* Compacte tijdweergave in de tabel */
.col-day-time {
    padding: 8px 2px !important;
    min-width: 70px !important;
}
.time-avail {
    display: block;
    color: #27ae60;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Grid voor beschikbaarheid in de modal */
.avail-input-grid {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 8px;
    align-items: center;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
}
.avail-head { font-weight: bold; font-size: 0.8rem; color: #718096; }
.avail-label { font-size: 0.9rem; font-weight: 600; }
.avail-input-grid input[type="time"] {
    padding: 5px;
    font-size: 0.85rem;
}
/* Styling voor onbeschikbare cellen */
.cell-verlof {
    background-color: #fff5f5 !important;
}
.cell-unavailable {
    background-color: #f7fafc !important;
}

.cell-status-hint {
    display: block;
    font-size: 0.65rem;
    color: #e53e3e;
    font-weight: 700;
    margin-bottom: 2px;
}

.btn-conflict {
    color: #feb2b2 !important; /* Lichtrood plusje */
}

.btn-conflict:hover {
    background-color: #fff5f5 !important;
    color: #e53e3e !important;
}

.add-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
/* De nieuwe goud/donkerblauwe M-badge */
.manager-badge {
    background: #efc022; /* Of #d4af37 voor goud-look */
}
/* Verlof Pagina Styling */
.leave-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .leave-container { grid-template-columns: 1fr; }
}

.leave-form-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.leave-history-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.goedgekeurd {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.afgewezen {
    background: #fee2e2;
    color: #991b1b;
}

.leave-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.leave-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #edf2f7;
    color: #718096;
    font-size: 0.85rem;
}

.leave-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}
.rooster-cel.verlof {
    background-color: #fff5f5 !important;
    border: 1px dashed #feb2b2;
    cursor: not-allowed;
}
/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Kaart Styling (gebruikt voor Dashboard & Verlof) */
.leave-card {
    background: var(--color-surface);
    padding: 25px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leave-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.leave-card h3 {
    font-size: 1.1rem;
    color: var(--color-gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Lijst weergave op Dashboard */
.dash-list {
    margin-top: 10px;
}

.dash-list-item {
    padding: 12px;
    border-bottom: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-list-item:last-child {
    border-bottom: none;
}

/* Badge voor tijden op Dashboard */
.time-badge {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Kostenoverzicht (Groene sectie) */
.costs-box {
    background: var(--color-green-soft);
    padding: 15px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-green-soft-border);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
    color: #2f855a;
}

.cost-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #9ae6b4;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
    color: #22543d;
}

/* Verlof Meldingen (Rode sectie) */
.pending-alert {
    padding: 12px;
    background: var(--color-red-soft);
    border: 1px solid var(--color-red-soft-border);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Algemene Banners (Success/Warning) */
.info-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.info-banner.success {
    background: var(--color-green-soft);
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.info-banner.warning {
    background: var(--color-red-soft);
    color: var(--color-red-dark);
    border: 1px solid var(--color-red-soft-border);
}

/* Animatie voor binnenkomende meldingen */
.animate-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Dashboard Wrapper */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dash-status-pill {
    background: var(--color-gray-200);
    padding: 6px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--color-gray-700);
    font-weight: 600;
}

/* 4x4 Grid */
.dash-grid-4x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) { .dash-grid-4x4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dash-grid-4x4 { grid-template-columns: 1fr; } }

/* Tile Styling */
.dash-tile {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    min-height: 340px;
    border-top: 4px solid #ddd;
    transition: transform 0.2s ease;
}

.dash-tile:hover { transform: translateY(-3px); }

.tile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.tile-head h3 { font-size: 1.05rem; color: #2d3748; margin: 0; }
.tile-icon { font-size: 1.3rem; }

.tile-body { flex-grow: 1; }

.tile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.tile-row.mini { padding: 6px 0; font-size: 0.85rem; }

.time-pill {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
}

.empty-state {
    color: var(--color-text-soft);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 30px;
}

/* Footer & Buttons */
.tile-footer {
    border-top: 2px solid var(--color-border-subtle);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
}

.tile-footer-btn { padding-top: 15px; }

.btn-primary-small {
    background: var(--color-primary);
    color: #ffffff;
    text-align: center;
    display: block;
    padding: 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.tile-link {
    display: block;
    text-align: center;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Alert Boxes */
.tile-alert {
    padding: 10px;
    background: var(--color-red-soft);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    font-size: 0.85rem;
    border-left: 3px solid #f56565;
}

.tile-alert.yellow { background: #fffaf0; border-left-color: #ecc94b; }

/* Tile Colors */
.tile-blue { border-top-color: #3182ce; }
.tile-green { border-top-color: #48bb78; }
.tile-red { border-top-color: #f56565; }
.tile-yellow { border-top-color: #ecc94b; }
.tile-disabled { background: var(--color-gray-100); border-top-color: var(--color-border-soft); opacity: 0.6; }
/* Badge op menu items */
.menu-badge {
    background-color: var(--color-red);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
}

/* De rode uitlogknop uit je screenshot */
.logout-btn-red {
    background-color: var(--color-red);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

.logout-btn-red:hover { background-color: #c53030; }

/* Flexbox voor de dropdown items met badge rechts */
.drop-flex {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

/* Divider lijntje naast logo */
.nav-divider {
    height: 24px;
    width: 1px;
    background-color: #e2e8f0;
    margin: 0 15px;
}
/* Aanvullende styles voor klikbare elementen */
.cell-shift {
    height: 65px;
    vertical-align: middle;
    transition: all 0.2s;
}
.shift-box {
    background: #ebf8ff;
    color: #3182ce;
    border-radius: 4px;
    padding: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid #bee3f8;
}
.shift-box:hover {
    background: #bee3f8;
}
.btn-add-inline {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    background: #edf2f7;
    color: #718096;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    margin-top: 4px;
}
.btn-add-inline:hover {
    background: #e2e8f0;
    color: #2d3748;
}
/* Basis cel styling */
.cell-shift {
    position: relative;
    height: 60px;
    padding: 5px !important;
    background: #fff;
    border: 1px solid #edf2f7;
}

/* De statussen zonder tekst */
.status-unavailable { background-color: #fff5f5 !important; } /* Zacht rood voor niet beschikbaar */
.status-overwrite { border: 2px solid #f6ad55 !important; } /* Oranje rand voor conflict */
.status-verlof { background: repeating-linear-gradient(45deg, #fff5f5, #fff5f5 10px, #ffffff 10px, #ffffff 20px) !important; }


/* Hint voor beheerder bij lege cel */
.availability-hint {
    display: block;
    font-size: 0.65rem;
    color: #a0aec0;
    margin-bottom: 2px;
}

.btn-add-minimal {
    border: none;
    background: #edf2f7;
    color: #718096;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.btn-add-minimal:hover { background: #e2e8f0; color: #2d3748; }

.verlof-label {
    color: #c53030;
    font-weight: bold;
    font-size: 0.7rem;
    text-align: center;
}
/* Responsive container voor de tabel */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Voor soepel scrollen op iPhone */
    border-radius: 8px;
}
/* --- Changelog pagina styling --- */
.changelog-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 25px;
}

/* Sidebar Form (links) */
.sidebar-form {
    flex: 0 0 340px;
    background: var(--color-surface);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border-subtle);
    position: sticky;
    top: 20px;
}

.sidebar-form-title {
    margin: 0 0 20px 0;
}

.sidebar-form label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--color-gray-800);
}

.sidebar-form input,
.sidebar-form select,
.sidebar-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border-soft);
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    font-family: inherit;
}

/* Hoofdcontent (rechts) */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Update cards */
.update-card {
    background: var(--color-surface);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border-subtle);
    overflow: hidden;
}

.update-header-compact {
    padding: 20px 25px 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.update-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-gray-900);
    font-weight: 800;
    line-height: 1.3;
    flex: 1;
}

.admin-actions-inline {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding-top: 2px;
}

.admin-btn-small {
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.5;
    transition: 0.2s;
    cursor: pointer;
}

.admin-btn-small:hover {
    opacity: 1;
    transform: scale(1.1);
}

.update-meta-row {
    padding: 0 25px 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f7fafc;
}

.meta-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-info {
    text-align: right;
    line-height: 1.2;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge-nieuw {
    background: #ebf8ff;
    color: var(--color-primary);
    border-color: #bee3f8;
}

.badge-verbetering {
    background: #f0fff4;
    color: #38a169;
    border-color: #c6f6d5;
}

.badge-fix {
    background: #fff5f5;
    color: #e53e3e;
    border-color: #fed7d7;
}

.latest-tag {
    background: #fffaf0;
    color: #b7791f;
    border: 1px solid #fbd38d;
}

.update-body {
    padding: 20px 25px 25px 25px;
    color: var(--color-gray-700);
    line-height: 1.7;
    font-size: 0.95rem;
}

.update-version {
    font-weight: 800;
    color: var(--color-gray-800);
    font-size: 0.85rem;
    display: block;
}

.update-date {
    color: var(--color-gray-500);
    font-size: 0.75rem;
}

/* Changelog buttons */
.btn-submit {
    background: var(--color-gray-800);
    color: #ffffff;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit:hover {
    background: var(--color-gray-900);
}

.btn-secondary {
    background: #edf2f7;
    color: var(--color-gray-700);
}

/* Bewerk-modal voor changelog */
#editModal .modal-content {
    max-width: 500px;
}

#editModal .edit-modal-title {
    margin: 0 0 20px 0;
}

#editModal .edit-input,
#editModal .edit-select,
#editModal .edit-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border-soft);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}

#editModal .edit-textarea {
    box-sizing: border-box;
}

.edit-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.edit-modal-save {
    flex: 2;
}

.edit-modal-close {
    flex: 1;
}