/* Global Resets and Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0; /* Changed from 20px for full-page themes */
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
    line-height: 1.6;
}

/* --- Theme Variables --- */
:root {
    /* Dark Theme (Default) */ 
    --bg-color-dark: #1a1a2e;
    --text-color-dark: #e0e0e0;
    --container-bg-dark: #162447;
    --container-bg-dark-secondary: #1e2a4a;
    --header-color-dark: #90a4ae; /* Lighter for contrast */
    --link-bg-dark: #1f4068;
    --link-hover-bg-dark: #2c5d8f;
    --link-text-dark: #e0f7fa;
    --button-bg-dark: #e94560;
    --button-text-dark: #ffffff;
    --input-bg-dark: #283747;
    --input-border-dark: #3d5a80;
    --input-focus-dark: #4a6b8a;

    /* Vibrant Theme */
    --bg-color-vibrant: #f0f9ff; /* Light sky blue */
    --text-color-vibrant: #333333;
    --container-bg-vibrant: #ffffff;
    --container-bg-vibrant-secondary: #f9f9f9;
    --header-color-vibrant: #ff6b6b; /* Coral */
    --link-bg-vibrant: #4ecdc4; /* Turquoise */
    --link-hover-bg-vibrant: #3db8af;
    --link-text-vibrant: #ffffff;
    --button-bg-vibrant: #f9a826; /* Yellow */
    --button-text-vibrant: #333333;
    --input-bg-vibrant: #ffffff;
    --input-border-vibrant: #dde5ed;
    --input-focus-vibrant: #c0d9e7;

    /* General UI */
    --border-radius-main: 12px;
    --border-radius-small: 8px;
    --shadow-main: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-dark-theme: 0 8px 16px rgba(0, 0, 0, 0.3); /* Darker shadow for dark theme */

    /* RGB version for box-shadow alpha, derived from --link-hover-bg-dark */
    --link-hover-bg-dark-rgb: 31, 64, 104; 
}

/* --- Theme Application --- */
body.dark-theme {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
    --border-color: #444; /* Define border color for dark theme */
}

body.vibrant-theme {
    background-color: var(--bg-color-vibrant);
    color: var(--text-color-vibrant);
    --border-color: #ddd; /* Define border color for vibrant theme */
}

/* --- Landing Page Specific Styles --- */
/* .top-bar is now a global style for theme toggle */
.top-bar {
    display: flex;
    justify-content: flex-end; /* Default: push content (theme button) to the right */
    align-items: center;
    padding: 10px 20px;
    background-color: transparent; /* Blend with page background */
    position: fixed; /* Keep top bar visible */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Ensure it's above other content */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.top-bar.top-bar-with-clock {
    justify-content: space-between; /* Override for index.html to accommodate clock */
}

/* Style for top-bar on subpages like verlof-vieuwer.php */
.top-bar.top-bar-subpage {
    justify-content: space-between; /* Home button on left, theme toggle on right */
}

/* General style for buttons within the top-bar */
.button.top-bar-button {
    display: inline-block; /* Ensure <a> tags behave like buttons */
    padding: 10px 15px; /* Consistent padding */
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: bold;
    text-decoration: none; /* For <a> tags styled as buttons */
    color: var(--button-text-dark); /* Default to dark theme button text */
    background-color: var(--button-bg-dark); /* Default to dark theme button bg */
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.2s ease;
    font-size: 0.9em;
}

.dark-theme .button.top-bar-button {
    background-color: var(--button-bg-dark);
    color: var(--button-text-dark) !important; /* Added important to override link defaults if necessary */
}

.vibrant-theme .button.top-bar-button {
    background-color: var(--button-bg-vibrant);
    color: var(--button-text-vibrant) !important; /* Added important to override link defaults if necessary */
}

.button.top-bar-button:hover {
    opacity: 0.85;
}

#datetime-container {
    font-size: 0.9em;
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: var(--border-radius-small);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-theme #datetime-container {
    background-color: var(--container-bg-dark);
}

#theme-toggle { /* Specific ID styles minimized, common styles moved to .top-bar-button */
    /* padding: 10px 15px; */ /* Moved to .button.top-bar-button */
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Theme-specific background/color inherited from .button.top-bar-button */
}

/* Theme-specific button styles for #theme-toggle are now redundant due to .button.top-bar-button theme rules */
/* .dark-theme #theme-toggle { ... } */
/* .vibrant-theme #theme-toggle { ... } */

/* Centering content for landing page */
body:has(.content-wrapper) { /* Apply flex only if .content-wrapper exists (landing page) */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px; /* Add padding for landing page body */
}


.content-wrapper {
    display: none; /* Hidden by default, shown after passcode */
    padding: 40px;
    border-radius: var(--border-radius-main);
    max-width: 600px;
    width: 90%;
}

.dark-theme .content-wrapper {
    background-color: var(--container-bg-dark);
    box-shadow: var(--shadow-dark-theme);
}

.vibrant-theme .content-wrapper {
    background-color: var(--container-bg-vibrant);
    box-shadow: var(--shadow-main);
}

.content-wrapper h1 {
    margin-bottom: 20px;
}
.dark-theme .content-wrapper h1 { color: var(--header-color-dark); }
.vibrant-theme .content-wrapper h1 { color: var(--header-color-vibrant); }


.content-wrapper p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.content-wrapper h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}
.dark-theme .content-wrapper h2 { color: var(--header-color-dark); }
.vibrant-theme .content-wrapper h2 { color: var(--header-color-vibrant); }


.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 15px;
}

.category-list a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.dark-theme .category-list a {
    background-color: var(--link-bg-dark);
    color: var(--link-text-dark);
}
.dark-theme .category-list a:hover {
    background-color: var(--link-hover-bg-dark);
}

.vibrant-theme .category-list a {
    background-color: var(--link-bg-vibrant);
    color: var(--link-text-vibrant);
}
.vibrant-theme .category-list a:hover {
    background-color: var(--link-hover-bg-vibrant);
}

.access-denied {
    color: #e74c3c; /* Red for access denied */
    font-weight: bold;
    font-size: 1.2em; /* Ensure it's visible */
    padding: 20px;
    text-align: center;
    width: 100%;
}
.dark-theme .access-denied { color: #ff6b6b; } /* Lighter red for dark theme */
.vibrant-theme .access-denied { color: #e74c3c; }


/* --- Styles for Verlof Vieuwer (verlof-vieuwer.php) --- */

/* Year Selection Tabs */
.year-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, var(--container-bg-dark-secondary) 0%, var(--container-bg-dark) 100%);
    border-radius: var(--border-radius-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    justify-content: center;
    animation: slideInUp 0.3s ease-out;
}

.vibrant-theme .year-tabs {
    background: linear-gradient(135deg, var(--container-bg-vibrant-secondary) 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.year-tab-button {
    flex: 1;
    max-width: 200px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--link-bg-dark) 0%, var(--link-hover-bg-dark) 100%);
    color: var(--link-text-dark);
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vibrant-theme .year-tab-button {
    background: linear-gradient(135deg, var(--link-bg-vibrant) 0%, var(--link-hover-bg-vibrant) 100%);
    color: var(--link-text-vibrant);
}

.year-tab-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.vibrant-theme .year-tab-button:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.year-tab-button.active {
    background: linear-gradient(135deg, var(--button-bg-dark) 0%, #d93552 100%);
    border-color: var(--button-bg-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 25px rgba(233, 69, 96, 0.4);
    transform: scale(1.05);
}

.vibrant-theme .year-tab-button.active {
    background: linear-gradient(135deg, var(--button-bg-vibrant) 0%, #e89b1a 100%);
    border-color: var(--button-bg-vibrant);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 25px rgba(249, 168, 38, 0.4);
}

.year-tab-button i {
    font-size: 1.2em;
}

.controls-panel {
    background: linear-gradient(135deg, var(--container-bg-dark-secondary) 0%, var(--container-bg-dark) 100%);
    padding: 25px;
    border-radius: var(--border-radius-main);
    margin-bottom: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.4s ease-out;
}

.vibrant-theme .controls-panel {
    background: linear-gradient(135deg, var(--container-bg-vibrant-secondary) 0%, #ffffff 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.control-group {
    flex: 1;
    min-width: 250px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vibrant-theme .control-group label {
    color: var(--text-color-vibrant);
}

.control-group select,
.control-group input[type="date"] {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-small);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: var(--input-bg-dark);
    color: var(--text-color-dark);
    font-size: 1em;
    transition: all 0.3s ease;
}

.vibrant-theme .control-group select,
.vibrant-theme .control-group input[type="date"] {
    border: 2px solid var(--input-border-vibrant);
    background-color: var(--input-bg-vibrant);
    color: var(--text-color-vibrant);
}

.control-group select:focus,
.control-group input[type="date"]:focus {
    outline: none;
    border-color: var(--button-bg-dark);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.vibrant-theme .control-group select:focus,
.vibrant-theme .control-group input[type="date"]:focus {
    border-color: var(--button-bg-vibrant);
    box-shadow: 0 0 0 3px rgba(249, 168, 38, 0.1);
}

.date-search-input-group {
    display: flex;
    gap: 10px;
}

.date-search-input-group input {
    flex: 1;
}

.date-search-input-group button {
    flex-shrink: 0;
}

.view-options {
    margin-top: 10px;
}

.view-options label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.view-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.view-button {
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--link-bg-dark) 0%, var(--link-hover-bg-dark) 100%);
    color: var(--link-text-dark);
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    flex: 1;
    min-width: 100px;
    max-width: 200px;
    position: relative;
    overflow: hidden;
}

.view-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.view-button:hover::before {
    width: 300px;
    height: 300px;
}

.vibrant-theme .view-button {
    background: linear-gradient(135deg, var(--link-bg-vibrant) 0%, var(--link-hover-bg-vibrant) 100%);
    color: var(--link-text-vibrant);
}

.view-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.vibrant-theme .view-button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.view-button.active {
    background: linear-gradient(135deg, var(--button-bg-dark) 0%, #d93552 100%);
    border-color: var(--button-bg-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(233, 69, 96, 0.3);
    transform: scale(1.05);
}

.vibrant-theme .view-button.active {
    background: linear-gradient(135deg, var(--button-bg-vibrant) 0%, #e89b1a 100%);
    border-color: var(--button-bg-vibrant);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 20px rgba(249, 168, 38, 0.3);
}

.view-button-calendar {
    border: 2px solid var(--button-bg-dark);
}

.vibrant-theme .view-button-calendar {
    border: 2px solid var(--button-bg-vibrant);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#schedule-title {
    margin: 0;
}

#schedule-action-buttons {
    display: flex;
    gap: 10px;
}

.action-button {
    background-color: transparent;
    color: var(--text-color-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vibrant-theme .action-button {
    color: var(--text-color-vibrant);
}

.action-button:hover {
    background-color: var(--link-bg-dark);
    color: var(--link-text-dark);
    transform: rotate(15deg);
}

.vibrant-theme .action-button:hover {
    background-color: var(--link-bg-vibrant);
    color: var(--link-text-vibrant);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-main);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--container-bg-dark-secondary) 0%, var(--container-bg-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.6s ease-out;
}

.vibrant-theme .table-container {
    background: linear-gradient(135deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#schedule-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--border-radius-main);
    overflow: hidden;
}

#schedule-table th {
    background: linear-gradient(135deg, var(--button-bg-dark) 0%, #d93552 100%);
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.vibrant-theme #schedule-table th {
    background: linear-gradient(135deg, var(--button-bg-vibrant) 0%, #e89b1a 100%);
    color: var(--button-text-vibrant);
}

#schedule-table td {
    padding: 14px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.vibrant-theme #schedule-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#schedule-table tbody tr {
    transition: all 0.3s ease;
}

#schedule-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#schedule-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.08);
}

.vibrant-theme #schedule-table tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.04);
}

/* --- Login Modal Styles --- */
.login-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-modal-content {
    background: #1e293b;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.login-modal-content h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.login-modal-content p {
    color: #94a3b8;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
    box-sizing: border-box;
    font-size: 1em;
}

.login-form input:focus {
    outline: none;
    border-color: #3b82f6;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-button:hover {
    background: #2563eb;
}

.login-error {
    color: #ef4444;
    margin-top: 15px;
    min-height: 20px;
    font-size: 0.9em;
}

.messages {
    margin-top: 20px;
}

.status-message {
    padding: 15px;
    border-radius: var(--border-radius-small);
    text-align: center;
    font-weight: 500;
    display: none;
}

.status-message.loading {
    background-color: rgba(25, 118, 210, 0.1);
    color: #1976d2;
}

.vibrant-theme .status-message.loading {
    background-color: rgba(25, 118, 210, 0.1);
    color: #1976d2;
}

.status-message.no-data {
    background-color: rgba(245, 124, 0, 0.1);
    color: #f57c00;
}

.vibrant-theme .status-message.no-data {
    background-color: rgba(245, 124, 0, 0.1);
    color: #f57c00;
}

/* Keep existing styles for working, on-leave, etc. */
.on-leave { /* Color is important, keep it distinct */
    color: #ff5555; /* Keeps red for leave status */
    font-weight: bold;
}

.dark-theme .on-leave { color: #ff5555; } /* Keep consistent for leave */
.vibrant-theme .on-leave { color: #e74c3c; } /* Slightly different shade for vibrant */

.working { /* Green, ensure visibility */
    color: #50fa7b; /* Bright green for dark theme */
    font-weight: bold;
}

.dark-theme .working { color: #50fa7b; } /* Brighter green for dark theme */
.vibrant-theme .working { color: #28a745; } /* Standard green for vibrant */

/* Responsive styles for the new controls-panel */
@media (max-width: 768px) {
    .search-section {
        flex-direction: column;
        gap: 15px;
    }

    .control-group {
        width: 100%;
    }

    .view-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .view-button {
        flex: 0 0 calc(50% - 10px);
    }

    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #schedule-action-buttons {
        align-self: flex-end;
    }

    /* Year tabs responsive */
    .year-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .year-tab-button {
        max-width: none;
        width: 100%;
    }

    /* Statistics dashboard responsive */
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        font-size: 2em;
        min-width: 50px;
    }

    .stat-value {
        font-size: 1.8em;
    }

    .coverage-chart {
        height: 200px;
        padding: 10px;
        gap: 5px;
    }

    .chart-bar-container {
        height: 140px;
    }

    .chart-label {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .view-button {
        flex: 0 0 100%;
        max-width: none;
    }
    
    .date-search-input-group {
        flex-direction: column;
    }
}

/* --- Responsive Styles --- */

/* Common breakpoint for mobile phones */
@media (max-width: 768px) {
    body {
        padding: 10px; /* Reduce body padding on smaller screens */
        font-size: 95%; /* Slightly reduce base font size */
    }

    .top-bar {
        padding: 8px 10px; /* Reduce padding */
        flex-direction: row; /* Ensure clock and button stay in a row */
        justify-content: space-between; /* Always space-between on mobile for clock/button */
    }

    #datetime-container {
        font-size: 0.8em; /* Make clock text smaller */
        padding: 4px 8px;
    }

    #theme-toggle {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .content-wrapper, .container, .calculator-wrapper {
        padding: 20px; /* Reduce padding for main content containers */
        padding-top: 60px; /* Adjust for smaller fixed top-bar */
        width: 95%; /* Allow a bit more width */
    }

    h1 {
        font-size: 1.8em; /* Reduce heading sizes */
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    /* Landing page main buttons */
    .main-buttons-container {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .main-action-button {
        width: 100%; /* Make buttons full width */
        padding: 12px 15px;
        font-size: 1em;
    }

    /* Landing page category links */
    .category-list a {
        padding: 12px 15px;
        font-size: 1.1em;
    }

    /* To-Do List and Timer on Landing Page */
    #todo-list-container, #timers-container {
        padding: 15px;
    }

    .todo-input-area, .timer-input-area {
        flex-direction: column;
        gap: 8px;
    }

    #new-todo-input, #new-timer-name-input, #new-timer-duration-input {
        width: 100%;
        box-sizing: border-box;
    }

    #add-todo-button, #add-timer-button {
        width: 100%;
        padding: 10px;
    }
    
    .timer-controls {
        display: flex;
        flex-wrap: wrap; /* Allow buttons to wrap */
        gap: 5px;
        justify-content: center; /* Center buttons */
    }

    .timer-controls button {
        flex-grow: 1; /* Allow buttons to grow and share space */
        min-width: 80px; /* Minimum width for tappability */
        font-size: 0.9em;
    }

    /* Responsive Forms for A40.html and A50.html */
    .form-section {
        padding: 10px;
    }

    .input-group, .output-group {
        flex-direction: column; /* Stack label and input/output vertically */
        align-items: flex-start; /* Align items to the start */
        gap: 5px; /* Add a small gap between label and input/output */
    }

    .input-group label, .output-group .output-label {
        min-width: 0; /* Reset min-width */
        margin-right: 0; /* Reset margin */
        margin-bottom: 3px; /* Add a small bottom margin to labels */
        font-size: 0.95em;
    }

    .input-group input[type="number"],
    .input-group input[type="datetime-local"],
    .output-group .output-value {
        width: 100%; /* Make inputs/outputs take full width of their container */
        box-sizing: border-box;
        font-size: 0.95em;
    }

    /* Adjust A40 tab buttons for smaller screens */
    .tabs-A40 {
        margin-bottom: 10px;
        /* Allow tabs to wrap if they don't fit */
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Center tabs if they wrap */
    }
    .tab-button-A40 {
        padding: 10px 12px; /* Reduce padding */
        font-size: 0.9em; /* Reduce font size */
        flex-grow: 1; /* Allow tabs to share space */
        text-align: center;
        border-bottom: 1px solid var(--border-color, #ccc); /* Add a bottom border for separation when wrapped */
    }
    .tab-button-A40.active {
        border-bottom: 2px solid var(--button-bg-vibrant, #ff8c00); /* Keep active state clear */
    }

    .button-container-A40, .button-container-A50 { /* Assuming A50 has similar structure */
        text-align: center; /* Center the back button */
        margin-top: 15px;
    }
    .button-A40, .button-A50 {
        width: auto; /* Let button size to content */
        padding: 10px 20px;
        display: inline-block;
    }

}

/* Further adjustments for very small screens, if needed */
@media (max-width: 480px) {
    body {
        font-size: 90%; /* Further reduce font size */
    }

    .top-bar {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    
    #datetime-container {
        font-size: 0.7em; 
        padding: 3px 6px;
    }

    #theme-toggle {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .content-wrapper, .container, .calculator-wrapper {
        padding: 15px;
        padding-top: 50px; /* Adjust for even smaller top bar */
    }

    h1 { font-size: 1.5em; }
    h2 { font-size: 1.3em; }
    h3 { font-size: 1.1em; }

    /* Make input fields in Verlof Vieuwer controls full width */
    .controls #employee-select {
        width: 100%;
        margin-bottom: 10px;
    }
    .view-options button {
        flex-grow: 1; /* Allow view option buttons to take up space */
        padding: 8px 5px; /* Adjust padding */ 
        font-size: 0.9em;
    }
    .view-options {
        flex-wrap: wrap; /* Allow buttons to wrap */
    }

    /* Responsive table for Verlof Vieuwer */
    #schedule-container {
        overflow-x: auto; /* Allow horizontal scrolling for the table container */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    #schedule-table {
        min-width: 600px; /* Set a min-width for the table to ensure it doesn't collapse too much */
        /* Font size for table content can be adjusted here if needed, e.g. font-size: 0.9em; */
    }
}

/* ========== STATISTICS DASHBOARD STYLES ========== */

.statistics-dashboard {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: var(--border-radius-main);
    background: linear-gradient(135deg, var(--container-bg-dark) 0%, var(--container-bg-dark-secondary) 100%);
    box-shadow: var(--shadow-dark-theme);
    animation: slideInUp 0.5s ease-out;
}

.vibrant-theme .statistics-dashboard {
    background: linear-gradient(135deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    box-shadow: var(--shadow-main);
}

.statistics-dashboard > h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--text-color-dark);
    font-size: 1.8em;
    border-bottom: 3px solid var(--button-bg-dark);
    padding-bottom: 10px;
}

.vibrant-theme .statistics-dashboard > h2 {
    color: var(--text-color-vibrant);
    border-bottom-color: var(--button-bg-vibrant);
}

.stats-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.stats-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--header-color-dark);
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vibrant-theme .stats-section h3 {
    color: var(--header-color-vibrant);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 20px;
    border-radius: var(--border-radius-main);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.6s ease-out backwards;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.vibrant-theme .stat-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Delay animations for staggered effect */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.stat-card-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.stat-card-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.stat-card-team {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.stat-card-coverage {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
}

.stat-card-today {
    background: linear-gradient(135deg, #4CAF50 0%, #388e3c 100%);
    color: white;
}

.stat-card-leave-today {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.stat-card-danger {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
}

.stat-card-sanctie {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    color: white;
}

.stat-card-lost {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.stat-icon {
    font-size: 2.5em;
    opacity: 0.9;
    min-width: 60px;
    text-align: center;
}

/* Year Overview Section */
.year-overview-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.08), rgba(33, 150, 243, 0.08));
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInScale 0.5s ease-out;
}

.year-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.year-tab-button {
    padding: 12px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.year-tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(103, 58, 183, 0.3);
}

.year-tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.4);
}

.overview-table-container h3 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.5em;
    text-align: center;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.overview-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.overview-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.overview-table-row {
    animation: slideInUp 0.4s ease-out forwards;
    opacity: 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.overview-table-row:hover {
    background: linear-gradient(90deg, rgba(103, 58, 183, 0.08), rgba(33, 150, 243, 0.08));
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(103, 58, 183, 0.15);
}

.overview-table-row td {
    padding: 15px;
    text-align: left;
    color: var(--text-color);
    font-size: 1em;
}

.overview-table-row .employee-name {
    color: var(--primary-color);
    font-size: 1.1em;
}

.overview-table-row .positive {
    color: #4CAF50;
    font-weight: bold;
}

.overview-table-row .negative {
    color: #f44336;
    font-weight: bold;
}

/* Statistics Table Styling */
.stats-table-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.1), rgba(33, 150, 243, 0.1));
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInScale 0.6s ease-out;
}

.stats-table-section h3 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.5em;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.stats-table-row {
    animation: slideInUp 0.4s ease-out forwards;
    opacity: 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.stats-table-row:hover {
    background-color: rgba(103, 58, 183, 0.05);
    transform: translateX(5px);
}

.stats-table-row td {
    padding: 15px;
    text-align: left;
    color: var(--text-color);
}

.stats-table-row .employee-name {
    color: var(--primary-color);
    font-size: 1.05em;
}

.stats-table-row .positive {
    color: #4CAF50;
    font-weight: bold;
}

.stats-table-row .negative {
    color: #f44336;
    font-weight: bold;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.2em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 3px;
}

.stat-subtitle {
    font-size: 0.8em;
    opacity: 0.8;
    font-style: italic;
}

/* Coverage Chart Styles */
.coverage-chart-section {
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--border-radius-main);
    background-color: var(--container-bg-dark-secondary);
}

.vibrant-theme .coverage-chart-section {
    background-color: var(--container-bg-vibrant-secondary);
}

.coverage-chart-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--header-color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vibrant-theme .coverage-chart-section h3 {
    color: var(--header-color-vibrant);
}

.coverage-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 250px;
    padding: 20px;
    background-color: rgba(0,0,0,0.2);
    border-radius: var(--border-radius-small);
    gap: 10px;
}

.vibrant-theme .coverage-chart {
    background-color: rgba(0,0,0,0.05);
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 60px;
}

.chart-bar-container {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
}

.chart-bar {
    width: 40%;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: barGrow 0.8s ease-out backwards;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.chart-bar-working {
    background: linear-gradient(to top, #4CAF50 0%, #81c784 100%);
}

.chart-bar-leave {
    background: linear-gradient(to top, #f44336 0%, #e57373 100%);
}

.chart-label {
    text-align: center;
    font-size: 0.85em;
}

.chart-date {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color-dark);
}

.vibrant-theme .chart-date {
    color: var(--text-color-vibrant);
}

.chart-count {
    font-size: 0.9em;
    color: var(--text-color-dark);
}

.vibrant-theme .chart-count {
    color: var(--text-color-vibrant);
}

.chart-working-count {
    color: #4CAF50;
    font-weight: bold;
}

.chart-leave-count {
    color: #f44336;
    font-weight: bold;
}

/* ========== END STATISTICS DASHBOARD STYLES ========== */

/* ========== EMPLOYEE SEARCH STYLES ========== */

.employee-search-wrapper {
    position: relative;
    width: 100%;
}

.employee-search-wrapper input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: var(--border-radius-small);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: var(--input-bg-dark);
    color: var(--text-color-dark);
    font-size: 1em;
    transition: all 0.3s ease;
}

.vibrant-theme .employee-search-wrapper input[type="text"] {
    border: 2px solid var(--input-border-vibrant);
    background-color: var(--input-bg-vibrant);
    color: var(--text-color-vibrant);
}

.employee-search-wrapper input[type="text"]:focus {
    outline: none;
    border-color: var(--button-bg-dark);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.vibrant-theme .employee-search-wrapper input[type="text"]:focus {
    border-color: var(--button-bg-vibrant);
    box-shadow: 0 0 0 3px rgba(249, 168, 38, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-dark);
    opacity: 0.5;
    pointer-events: none;
}

.vibrant-theme .search-icon {
    color: var(--text-color-vibrant);
}

.employee-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background-color: var(--container-bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    animation: slideInDown 0.2s ease-out;
}

.vibrant-theme .employee-dropdown {
    background-color: white;
    border: 2px solid var(--input-border-vibrant);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vibrant-theme .dropdown-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--link-hover-bg-dark);
    color: var(--link-text-dark);
}

.vibrant-theme .dropdown-item:hover {
    background-color: var(--link-hover-bg-vibrant);
    color: var(--link-text-vibrant);
}

.dropdown-item i {
    opacity: 0.7;
    width: 20px;
    text-align: center;
}

.dropdown-all {
    background-color: rgba(233, 69, 96, 0.1);
    font-weight: bold;
}

.vibrant-theme .dropdown-all {
    background-color: rgba(249, 168, 38, 0.1);
}

.dropdown-no-results {
    text-align: center;
    color: var(--text-color-dark);
    opacity: 0.6;
    font-style: italic;
}

.vibrant-theme .dropdown-no-results {
    color: var(--text-color-vibrant);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== END EMPLOYEE SEARCH STYLES ========== */

/* ========== CALENDAR VIEW STYLES ========== */

.calendar-view {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: var(--border-radius-main);
    background: linear-gradient(135deg, var(--container-bg-dark) 0%, var(--container-bg-dark-secondary) 100%);
    box-shadow: var(--shadow-dark-theme);
    animation: slideInUp 0.5s ease-out;
}

.vibrant-theme .calendar-view {
    background: linear-gradient(135deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    box-shadow: var(--shadow-main);
}

.calendar-employees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.vibrant-theme .calendar-employees-list {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

.calendar-employee-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(217, 53, 82, 0.3) 100%);
    border: 1px solid rgba(233, 69, 96, 0.4);
    border-radius: var(--border-radius-small);
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-color-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.vibrant-theme .calendar-employee-tag {
    background: linear-gradient(135deg, rgba(249, 168, 38, 0.2) 0%, rgba(232, 155, 26, 0.3) 100%);
    border-color: rgba(249, 168, 38, 0.4);
    color: var(--text-color-vibrant);
}

.calendar-employee-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.4) 0%, rgba(217, 53, 82, 0.5) 100%);
}

.vibrant-theme .calendar-employee-tag:hover {
    background: linear-gradient(135deg, rgba(249, 168, 38, 0.4) 0%, rgba(232, 155, 26, 0.5) 100%);
}

.calendar-employee-tag.selected {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.6) 0%, rgba(217, 53, 82, 0.7) 100%);
    border-color: rgba(233, 69, 96, 0.8);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
    transform: scale(1.05);
    font-weight: bold;
}

.vibrant-theme .calendar-employee-tag.selected {
    background: linear-gradient(135deg, rgba(249, 168, 38, 0.6) 0%, rgba(232, 155, 26, 0.7) 100%);
    border-color: rgba(249, 168, 38, 0.8);
    box-shadow: 0 5px 15px rgba(249, 168, 38, 0.4);
}

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

.calendar-header h2 {
    margin: 0;
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vibrant-theme .calendar-header h2 {
    color: var(--text-color-vibrant);
}

.calendar-nav-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--button-bg-dark) 0%, #d93552 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.vibrant-theme .calendar-nav-button {
    background: linear-gradient(135deg, var(--button-bg-vibrant) 0%, #e89b1a 100%);
}

.calendar-nav-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-small);
}

.vibrant-theme .calendar-legend {
    background-color: rgba(0, 0, 0, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--text-color-dark);
}

.vibrant-theme .legend-item {
    color: var(--text-color-vibrant);
}

.legend-color {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.shift-v { background: linear-gradient(135deg, #4DD0E1 0%, #26C6DA 100%); } /* Morning - Soft Cyan */
.shift-l { background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%); } /* Afternoon - Red */
.shift-n { background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%); } /* Night - Dark Gray */
.shift-a40 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } /* Purple */
.shift-a50 { background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%); } /* Cyan */
.shift-leave { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } /* Pink - Verlof (V, VW, HV, etc.) */
.shift-team-leave { background: linear-gradient(135deg, #b794f6 0%, #9f7aea 100%); } /* Light Purple - Team Rustdag (-) */
.shift-other { background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%); } /* Blue */

/* Calendar Legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--text-color);
}

.legend-color {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.calendar-grid-container {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-main);
    padding: 15px;
}

.vibrant-theme .calendar-grid-container {
    background-color: rgba(0, 0, 0, 0.03);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 5px;
}

.calendar-weekday {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    color: var(--header-color-dark);
    text-transform: uppercase;
    font-size: 0.9em;
}

.vibrant-theme .calendar-weekday {
    color: var(--header-color-vibrant);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    min-height: 100px;
    padding: 10px;
    border-radius: var(--border-radius-small);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: var(--container-bg-dark-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.vibrant-theme .calendar-day {
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.vibrant-theme .calendar-day:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.calendar-day-empty {
    background-color: transparent;
    border: none;
    cursor: default;
}

.calendar-day-empty:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day-number {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: var(--text-color-dark);
}

.vibrant-theme .calendar-day-number {
    color: var(--text-color-vibrant);
}

.calendar-day-today {
    border: 3px solid #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 223, 0, 0.05) 100%);
}

.vibrant-theme .calendar-day-today {
    border: 3px solid #FFA500 !important;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.6), 0 0 40px rgba(255, 165, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2) 0%, rgba(255, 165, 0, 0.08) 100%);
}

.calendar-day-today .calendar-day-number {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.vibrant-theme .calendar-day-today .calendar-day-number {
    color: #FF8C00;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.calendar-day-shift {
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.calendar-day-off {
    opacity: 0.5;
}

.shift-na {
    opacity: 0.3;
    font-size: 1.5em;
}

.calendar-day-team {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85em;
}

.team-working {
    padding: 5px;
    background-color: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    color: #4CAF50;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.team-leave {
    padding: 5px;
    background-color: rgba(244, 67, 54, 0.2);
    border-radius: 4px;
    color: #f44336;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.team-rustdag {
    padding: 5px;
    background-color: rgba(183, 148, 246, 0.2);
    border-radius: 4px;
    color: #b794f6;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.coverage-high {
    border-color: rgba(76, 175, 80, 0.5);
}

.coverage-medium {
    border-color: rgba(255, 152, 0, 0.5);
}

.coverage-low {
    border-color: rgba(244, 67, 54, 0.5);
}

/* Responsive calendar */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }

    .calendar-day-number {
        font-size: 0.9em;
        margin-bottom: 5px;
    }

    .calendar-day-shift,
    .calendar-day-team {
        font-size: 0.75em;
    }

    .calendar-legend {
        gap: 10px;
    }

    .legend-item {
        font-size: 0.8em;
    }

    .legend-color {
        width: 20px;
        height: 20px;
    }
}

/* ========== END CALENDAR VIEW STYLES ========== */

/* ========== DAY DETAILS MODAL STYLES ========== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, var(--container-bg-dark) 0%, var(--container-bg-dark-secondary) 100%);
    border-radius: var(--border-radius-main);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInScale 0.3s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.vibrant-theme .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--button-bg-dark) 0%, #d93552 100%);
    border-radius: var(--border-radius-main) var(--border-radius-main) 0 0;
}

.vibrant-theme .modal-header {
    background: linear-gradient(135deg, var(--button-bg-vibrant) 0%, #e89b1a 100%);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

/* Personal view status cards */
.modal-employee-header {
    margin-bottom: 20px;
}

.modal-employee-header h3 {
    margin: 0;
    color: var(--header-color-dark);
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vibrant-theme .modal-employee-header h3 {
    color: var(--header-color-vibrant);
}

.modal-status-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: var(--border-radius-main);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.modal-status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-status-icon {
    font-size: 3em;
    min-width: 60px;
    text-align: center;
}

.modal-status-content {
    flex: 1;
}

.modal-status-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.modal-status-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.modal-status-working {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.modal-status-leave {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.modal-status-off {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
    color: white;
}

/* Team view summary cards */
.modal-team-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.modal-summary-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
}

.modal-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.summary-icon {
    font-size: 2em;
    min-width: 40px;
    text-align: center;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 3px;
}

.summary-label {
    font-size: 0.85em;
    opacity: 0.9;
}

.summary-good {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.summary-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.summary-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.summary-leave {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.modal-summary-card:nth-child(1) {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

/* Coverage indicator */
.modal-coverage-indicator {
    padding: 15px 20px;
    border-radius: var(--border-radius-small);
    margin-bottom: 25px;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-coverage-indicator i {
    font-size: 1.5em;
}

.coverage-ok {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(69, 160, 73, 0.3) 100%);
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.vibrant-theme .coverage-ok {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(69, 160, 73, 0.2) 100%);
}

.coverage-low {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(211, 47, 47, 0.3) 100%);
    color: #f44336;
    border: 2px solid #f44336;
}

.vibrant-theme .coverage-low {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(211, 47, 47, 0.2) 100%);
}

/* Employee sections */
.modal-employee-section {
    margin-bottom: 25px;
}

.modal-employee-section h3 {
    margin: 0 0 15px 0;
    color: var(--header-color-dark);
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.vibrant-theme .modal-employee-section h3 {
    color: var(--header-color-vibrant);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.modal-employee-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.modal-employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: var(--border-radius-small);
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.vibrant-theme .modal-employee-item {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.modal-employee-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.employee-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-color-dark);
}

.vibrant-theme .employee-name {
    color: var(--text-color-vibrant);
}

.employee-shift {
    padding: 5px 12px;
    border-radius: var(--border-radius-small);
    font-size: 0.9em;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
}

.vibrant-theme .employee-shift {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color-vibrant);
}

/* Shift-specific styling for modal employee items */
.modal-employee-item.shift-v .employee-shift {
    background: linear-gradient(135deg, #4DD0E1 0%, #26C6DA 100%);
    color: white;
}

.modal-employee-item.shift-l .employee-shift {
    background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%);
    color: white;
}

.modal-employee-item.shift-n .employee-shift {
    background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%);
    color: white;
}

.modal-employee-item.shift-a40 .employee-shift {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-employee-item.shift-a50 .employee-shift {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
}

.modal-employee-leave {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.modal-employee-off {
    background-color: rgba(117, 117, 117, 0.1);
    border-color: rgba(117, 117, 117, 0.3);
}

/* ========== NEW MODAL LAYOUT STYLES ========== */

/* Personal view - status card */
.status-icon {
    font-size: 3em;
    min-width: 60px;
    text-align: center;
}

.status-details {
    flex: 1;
}

.status-label {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color-dark);
}

.vibrant-theme .status-label {
    color: var(--text-color-vibrant);
}

.status-code {
    font-size: 1em;
    opacity: 0.8;
    color: var(--text-color-dark);
}

.vibrant-theme .status-code {
    color: var(--text-color-vibrant);
}

/* Team view - categorized layout */
.modal-category {
    margin-bottom: 25px;
}

.modal-category-title {
    margin: 0 0 15px 0;
    color: var(--header-color-dark);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.vibrant-theme .modal-category-title {
    color: var(--header-color-vibrant);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.modal-employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.modal-employee-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    cursor: default;
}

.vibrant-theme .modal-employee-card {
    background: rgba(0, 0, 0, 0.03);
}

.modal-employee-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vibrant-theme .modal-employee-card:hover {
    background: rgba(0, 0, 0, 0.06);
}

.employee-icon {
    font-size: 1.8em;
    min-width: 40px;
    text-align: center;
}

.employee-info {
    flex: 1;
    overflow: hidden;
}

.employee-name {
    font-weight: bold;
    font-size: 0.95em;
    color: var(--text-color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vibrant-theme .employee-name {
    color: var(--text-color-vibrant);
}

.employee-status {
    font-size: 0.85em;
    opacity: 0.8;
    color: var(--text-color-dark);
    margin-top: 2px;
}

.vibrant-theme .employee-status {
    color: var(--text-color-vibrant);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px 15px;
    }

    .modal-header h2 {
        font-size: 1.2em;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-team-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-employee-list {
        grid-template-columns: 1fr;
    }

    .modal-status-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .modal-status-icon {
        font-size: 2.5em;
    }

    .modal-employee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .modal-team-summary {
        grid-template-columns: 1fr;
    }

    .modal-coverage-indicator {
        font-size: 0.95em;
        padding: 12px 15px;
    }

    .modal-employee-grid {
        grid-template-columns: 1fr;
    }

    .modal-category-title {
        font-size: 1em;
    }

    .employee-icon {
        font-size: 1.5em;
        min-width: 35px;
    }
}

/* ========== END DAY DETAILS MODAL STYLES ========== */

/* ========== EMPLOYEE LINKS SECTION ========== */

.employee-links-section {
    margin-top: 30px;
    padding: 25px;
    border-radius: var(--border-radius-main);
    background: linear-gradient(135deg, var(--container-bg-dark) 0%, var(--container-bg-dark-secondary) 100%);
    box-shadow: var(--shadow-dark-theme);
    animation: slideInUp 0.5s ease-out;
}

.vibrant-theme .employee-links-section {
    background: linear-gradient(135deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    box-shadow: var(--shadow-main);
}

.employee-links-section h2 {
    color: var(--text-color-dark);
    border-bottom: 3px solid var(--button-bg-dark);
    padding-bottom: 10px;
}

.vibrant-theme .employee-links-section h2 {
    color: var(--text-color-vibrant);
    border-bottom-color: var(--button-bg-vibrant);
}

.employee-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .employee-buttons-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .employee-buttons-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== END EMPLOYEE LINKS SECTION ========== */

/* ========== ANIMATIONS ========== */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes barGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Refresh button animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating {
    animation: rotate 1s linear infinite;
}

/* Print styles */
@media print {
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .top-bar, 
    .controls-panel, 
    #schedule-action-buttons,
    .status-message {
        display: none !important;
    }
    
    .container {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .table-container {
        overflow: visible !important;
        box-shadow: none !important;
    }
    
    #schedule-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    
    #schedule-table th {
        background-color: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }
    
    #schedule-table td {
        border: 1px solid #ddd !important;
        color: black !important;
    }
    
    .on-leave {
        color: red !important;
    }
    
    .working {
        color: green !important;
    }
    
    #schedule-title {
        color: black !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        font-size: 18pt !important;
    }
    
    /* Reset any theme-specific styles that might affect printing */
    * {
        background-color: transparent !important;
        box-shadow: none !important;
    }
}

/* Container for Verlof Vieuwer and other pages */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    padding-top: 80px; /* Added padding to clear fixed top-bar */
    border-radius: var(--border-radius-main);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--container-bg-dark) 0%, var(--bg-color-dark) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInScale 0.5s ease-out;
}

.vibrant-theme .container {
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-color-vibrant) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.container h1 {
    color: var(--header-color-dark);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.vibrant-theme .container h1 {
    color: var(--header-color-vibrant);
    text-shadow: none;
}

/* Theme Transition Effects */
.theme-transition {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.theme-transition * {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.theme-toggle-clicked {
    transform: scale(1.2) !important;
    opacity: 0.8 !important;
}

/* Update the theme toggle button styles */
#theme-toggle {
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.05);
}

/* Add feedback for action buttons */
.action-button {
    position: relative;
    overflow: hidden;
}

.action-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.action-button:active::after {
    width: 100px;
    height: 100px;
}


/* Responsive Year Overview Section */
@media (max-width: 768px) {
    .year-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .year-tab-button {
        width: 100%;
        padding: 10px 30px;
        font-size: 1em;
    }

    .overview-table-container h3 {
        font-size: 1.2em;
    }

    .overview-table thead th,
    .overview-table-row td {
        padding: 10px 8px;
        font-size: 0.85em;
    }

    .overview-table-row .employee-name {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .year-overview-section {
        padding: 15px;
        margin: 20px 0;
    }

    .overview-table thead th,
    .overview-table-row td {
        padding: 8px 5px;
        font-size: 0.75em;
    }

    .overview-table-container h3 {
        font-size: 1em;
    }
}

/* ========== DASHBOARD STYLES ========== */

/* Dashboard Container - Grid Layout */
.dashboard-container {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main";
    grid-template-columns: 250px 1fr;
    grid-template-rows: 60px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Dashboard Header */
.dashboard-header {
    grid-area: header;
    background: linear-gradient(135deg, var(--container-bg-dark) 0%, var(--container-bg-dark-secondary) 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vibrant-theme .dashboard-header {
    background: linear-gradient(135deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-title {
    margin: 0;
    font-size: 1.4em;
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vibrant-theme .dashboard-title {
    color: var(--text-color-vibrant);
}

#dashboard-datetime {
    font-size: 0.9em;
    color: var(--text-color-dark);
    opacity: 0.9;
}

.vibrant-theme #dashboard-datetime {
    color: var(--text-color-vibrant);
}

.header-button {
    padding: 8px 15px;
    background-color: var(--button-bg-dark);
    color: var(--button-text-dark);
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.vibrant-theme .header-button {
    background-color: var(--button-bg-vibrant);
    color: var(--button-text-vibrant);
}

.header-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    grid-area: sidebar;
    background: linear-gradient(180deg, var(--container-bg-dark) 0%, var(--container-bg-dark-secondary) 100%);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.vibrant-theme .dashboard-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    border-right-color: rgba(0, 0, 0, 0.1);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 10px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background-color: transparent;
    color: var(--text-color-dark);
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.vibrant-theme .sidebar-nav-item {
    color: var(--text-color-vibrant);
}

.sidebar-nav-item i {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.sidebar-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.vibrant-theme .sidebar-nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, var(--button-bg-dark) 0%, #d93552 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.vibrant-theme .sidebar-nav-item.active {
    background: linear-gradient(135deg, var(--button-bg-vibrant) 0%, #e89b1a 100%);
    color: var(--button-text-vibrant);
    box-shadow: 0 4px 12px rgba(249, 168, 38, 0.3);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.vibrant-theme .sidebar-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color-dark);
    font-size: 0.95em;
}

.vibrant-theme .sidebar-user-info {
    color: var(--text-color-vibrant);
}

.sidebar-user-info i {
    font-size: 1.5em;
}

/* Dashboard Main Content */
.dashboard-main {
    grid-area: main;
    background-color: var(--bg-color-dark);
    padding: 30px;
    overflow-y: auto;
}

.vibrant-theme .dashboard-main {
    background-color: var(--bg-color-vibrant);
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
    animation: fadeInScale 0.4s ease-out;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    margin: 0;
    color: var(--header-color-dark);
    font-size: 2em;
    display: flex;
    align-items: center;
    gap: 15px;
}

.vibrant-theme .section-header h2 {
    color: var(--header-color-vibrant);
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, var(--container-bg-dark) 0%, var(--container-bg-dark-secondary) 100%);
    border-radius: var(--border-radius-main);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.5s ease-out;
}

.vibrant-theme .dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
}

.dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--header-color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vibrant-theme .dashboard-card h3 {
    color: var(--header-color-vibrant);
}

/* Quick Stats Cards */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card-quick {
    padding: 20px;
    border-radius: var(--border-radius-main);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    animation: fadeInScale 0.6s ease-out backwards;
    color: white;
}

.stat-card-quick:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.action-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--link-bg-dark) 0%, var(--link-hover-bg-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.vibrant-theme .action-btn {
    background: linear-gradient(135deg, var(--link-bg-vibrant) 0%, var(--link-hover-bg-vibrant) 100%);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.action-btn-secondary {
    padding: 12px 20px;
    background-color: transparent;
    color: var(--link-bg-dark);
    border: 2px solid var(--link-bg-dark);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.vibrant-theme .action-btn-secondary {
    color: var(--link-bg-vibrant);
    border-color: var(--link-bg-vibrant);
}

.action-btn-secondary:hover {
    background-color: var(--link-bg-dark);
    color: white;
}

.vibrant-theme .action-btn-secondary:hover {
    background-color: var(--link-bg-vibrant);
    color: white;
}

/* Calculations Links */
.calculations-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.calculation-card {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, var(--container-bg-dark) 0%, var(--container-bg-dark-secondary) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-main);
    text-decoration: none;
    color: var(--text-color-dark);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vibrant-theme .calculation-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color-vibrant);
}

.calculation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--button-bg-dark);
}

.vibrant-theme .calculation-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--button-bg-vibrant);
}

.calc-icon {
    font-size: 3em;
    color: var(--button-bg-dark);
}

.vibrant-theme .calc-icon {
    color: var(--button-bg-vibrant);
}

.calculation-card h3 {
    margin: 0;
    color: var(--header-color-dark);
}

.vibrant-theme .calculation-card h3 {
    color: var(--header-color-vibrant);
}

.calculation-card p {
    margin: 0;
    opacity: 0.8;
}

.calc-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    color: var(--button-bg-dark);
    opacity: 0;
    transition: all 0.3s ease;
}

.vibrant-theme .calc-arrow {
    color: var(--button-bg-vibrant);
}

.calculation-card:hover .calc-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-modal-content {
    background: linear-gradient(135deg, var(--container-bg-dark) 0%, var(--container-bg-dark-secondary) 100%);
    padding: 40px;
    border-radius: var(--border-radius-main);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: slideInScale 0.3s ease-out;
}

.vibrant-theme .login-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, var(--container-bg-vibrant-secondary) 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

.login-modal-content h2 {
    margin-top: 0;
    color: var(--header-color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vibrant-theme .login-modal-content h2 {
    color: var(--header-color-vibrant);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.login-form input {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    background-color: var(--input-bg-dark);
    color: var(--text-color-dark);
    font-size: 1em;
}

.vibrant-theme .login-form input {
    border-color: var(--input-border-vibrant);
    background-color: var(--input-bg-vibrant);
    color: var(--text-color-vibrant);
}

.login-form input:focus {
    outline: none;
    border-color: var(--button-bg-dark);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.vibrant-theme .login-form input:focus {
    border-color: var(--button-bg-vibrant);
    box-shadow: 0 0 0 3px rgba(249, 168, 38, 0.1);
}

.login-button {
    padding: 12px;
    background: linear-gradient(135deg, var(--button-bg-dark) 0%, #d93552 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.vibrant-theme .login-button {
    background: linear-gradient(135deg, var(--button-bg-vibrant) 0%, #e89b1a 100%);
    color: var(--button-text-vibrant);
}

.login-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.login-error {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9998;
    display: none;
    padding: 10px 15px;
    background-color: var(--button-bg-dark);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 1.2em;
}

.vibrant-theme .mobile-menu-toggle {
    background-color: var(--button-bg-vibrant);
    color: var(--button-text-vibrant);
}

/* Todo Module Styles */
.todo-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.todo-input {
    flex: 1;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    background-color: var(--input-bg-dark);
    color: var(--text-color-dark);
    font-size: 1em;
}

.vibrant-theme .todo-input {
    border-color: var(--input-border-vibrant);
    background-color: var(--input-bg-vibrant);
    color: var(--text-color-vibrant);
}

.todo-add-button {
    padding: 10px 20px;
    background-color: var(--button-bg-dark);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.vibrant-theme .todo-add-button {
    background-color: var(--button-bg-vibrant);
    color: var(--button-text-vibrant);
}

.todo-add-button:hover {
    opacity: 0.85;
}

.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.vibrant-theme .todo-item {
    background-color: rgba(0, 0, 0, 0.03);
}

.todo-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.vibrant-theme .todo-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.todo-text {
    flex: 1;
    color: var(--text-color-dark);
}

.vibrant-theme .todo-text {
    color: var(--text-color-vibrant);
}

.todo-remove-button {
    background-color: transparent;
    color: #ff6b6b;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.todo-remove-button:hover {
    color: #ff5252;
    transform: scale(1.1);
}

.todo-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-color-dark);
    opacity: 0.6;
    font-style: italic;
}

.vibrant-theme .todo-empty {
    color: var(--text-color-vibrant);
}

/* Timer Module Styles */
.timer-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.timer-name-input,
.timer-duration-input {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    background-color: var(--input-bg-dark);
    color: var(--text-color-dark);
    font-size: 1em;
}

.vibrant-theme .timer-name-input,
.vibrant-theme .timer-duration-input {
    border-color: var(--input-border-vibrant);
    background-color: var(--input-bg-vibrant);
    color: var(--text-color-vibrant);
}

.timer-add-button {
    padding: 10px 20px;
    background-color: var(--button-bg-dark);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.vibrant-theme .timer-add-button {
    background-color: var(--button-bg-vibrant);
    color: var(--button-text-vibrant);
}

.timer-add-button:hover {
    opacity: 0.85;
}

.timer-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timer-preset-button {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.vibrant-theme .timer-preset-button {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color-vibrant);
    border-color: rgba(0, 0, 0, 0.1);
}

.timer-preset-button:hover {
    background-color: var(--link-bg-dark);
    color: white;
}

.vibrant-theme .timer-preset-button:hover {
    background-color: var(--link-bg-vibrant);
    color: white;
}

.timer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timer-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.vibrant-theme .timer-item {
    background-color: rgba(0, 0, 0, 0.03);
}

.timer-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.vibrant-theme .timer-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.timer-info {
    font-weight: 600;
    color: var(--text-color-dark);
}

.vibrant-theme .timer-info {
    color: var(--text-color-vibrant);
}

.timer-time-display {
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--button-bg-dark);
}

.vibrant-theme .timer-time-display {
    color: var(--button-bg-vibrant);
}

.timer-controls {
    display: flex;
    gap: 8px;
}

.timer-start-pause-button,
.timer-reset-button,
.timer-remove-button {
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.vibrant-theme .timer-start-pause-button,
.vibrant-theme .timer-reset-button,
.vibrant-theme .timer-remove-button {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color-vibrant);
    border-color: rgba(0, 0, 0, 0.1);
}

.timer-start-pause-button:hover {
    background-color: #4CAF50;
    color: white;
}

.timer-start-pause-button.running {
    background-color: #ff9800;
    color: white;
}

.timer-reset-button:hover {
    background-color: #2196F3;
    color: white;
}

.timer-remove-button:hover {
    background-color: #f44336;
    color: white;
}

.timer-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-color-dark);
    opacity: 0.6;
    font-style: italic;
}

.vibrant-theme .timer-empty {
    color: var(--text-color-vibrant);
}

/* Calendar Preview Styles */
#home-calendar-preview {
    padding: 15px 0;
}

#home-calendar-preview h4 {
    margin: 0 0 15px 0;
    color: var(--header-color-dark);
}

.vibrant-theme #home-calendar-preview h4 {
    color: var(--header-color-vibrant);
}

.preview-calendar-grid {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-small);
    padding: 15px;
}

.vibrant-theme .preview-calendar-grid {
    background-color: rgba(0, 0, 0, 0.03);
}

.preview-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;
    color: var(--header-color-dark);
    font-size: 0.85em;
}

.vibrant-theme .preview-weekdays {
    color: var(--header-color-vibrant);
}

.preview-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.preview-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--text-color-dark);
    transition: all 0.2s ease;
}

.vibrant-theme .preview-day {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-color-vibrant);
}

.preview-day-empty {
    background-color: transparent;
}

.preview-day-today {
    background-color: var(--button-bg-dark);
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.vibrant-theme .preview-day-today {
    background-color: var(--button-bg-vibrant);
    color: var(--button-text-vibrant);
    box-shadow: 0 0 10px rgba(249, 168, 38, 0.5);
}

.preview-high {
    border: 2px solid #4CAF50;
}

.preview-medium {
    border: 2px solid #ff9800;
}

.preview-low {
    border: 2px solid #f44336;
}

/* Responsive Dashboard */
@media (max-width: 968px) {
    .dashboard-container {
        grid-template-areas:
            "header"
            "main";
        grid-template-columns: 1fr;
        grid-template-rows: 60px 1fr;
    }

    .dashboard-sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        bottom: 0;
        width: 250px;
        z-index: 9997;
        transition: left 0.3s ease;
    }

    .dashboard-sidebar.mobile-open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .dashboard-title {
        font-size: 1.1em;
    }

    #dashboard-datetime {
        display: none;
    }

    .header-button span {
        display: none;
    }

    .quick-stats-grid {
        grid-template-columns: 1fr;
    }

    .calculations-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 15px;
    }

    .section-header h2 {
        font-size: 1.5em;
    }

    .dashboard-card {
        padding: 15px;
    }

    .action-btn {
        min-width: 100%;
    }

    .timer-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timer-controls {
        justify-content: center;
    }
}

/* ========== HOME PAGE 2-COLUMN LAYOUT ========== */

/* 2-Column Layout Container */
.home-two-column-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Kalender iets groter dan stats */
    gap: 25px;
    margin-bottom: 25px;
}

.home-column {
    min-width: 0; /* Prevent grid overflow */
}

/* Bottom Row: Todo + Timers */
.home-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Responsive: Stack on mobile */
@media (max-width: 1200px) {
    .home-two-column-layout {
        grid-template-columns: 1fr; /* Stack kalender boven stats */
    }
}

@media (max-width: 768px) {
    .home-bottom-row {
        grid-template-columns: 1fr; /* Stack todo boven timers */
    }
}

/* ========== END DASHBOARD STYLES ==========  */

/* ========== UI IMPROVEMENTS 2026 ========== */

/* Loading Spinner & Skeleton Loaders */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--button-bg-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

body.vibrant-theme .loading-spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--button-bg-vibrant);
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

body.vibrant-theme .skeleton {
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.05) 75%
    );
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced Hover Effects */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

body.vibrant-theme .stat-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Improved Table Styling */
.overview-table-row {
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.overview-table-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--button-bg-dark), transparent);
    transition: width 0.3s ease;
    opacity: 0.3;
}

.overview-table-row:hover::before {
    width: 100%;
}

.overview-table-row:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

body.vibrant-theme .overview-table-row:hover {
    background: rgba(0, 0, 0, 0.03);
}

.overview-table-row:active {
    transform: translateX(5px) scale(0.98);
}

/* Improved Button Interactions */
.action-btn, .action-btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.action-btn::before, .action-btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:active::before, .action-btn-secondary:active::before {
    width: 300px;
    height: 300px;
}

.action-btn:hover, .action-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.action-btn:active, .action-btn-secondary:active {
    transform: translateY(0);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.toast.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.toast.error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.toast.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.toast.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Pulse Animation for Important Elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth Page Transitions */
.section {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Better Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--button-bg-dark);
    outline-offset: 2px;
    border-radius: 4px;
}

body.vibrant-theme button:focus-visible,
body.vibrant-theme a:focus-visible,
body.vibrant-theme input:focus-visible,
body.vibrant-theme select:focus-visible {
    outline-color: var(--button-bg-vibrant);
}

/* Improved Card Elevation */
.dashboard-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Better Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--container-bg-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid var(--container-bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

body.vibrant-theme ::-webkit-scrollbar-track {
    background: var(--container-bg-vibrant);
}

body.vibrant-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--link-bg-vibrant) 0%, var(--button-bg-vibrant) 100%);
    border-color: var(--container-bg-vibrant);
}

/* Mobile-Specific Improvements */
@media (max-width: 768px) {
    .toast {
        min-width: 280px;
        max-width: calc(100vw - 40px);
    }

    .stat-card:hover {
        transform: none;
    }

    .stat-card:active {
        transform: scale(0.98);
    }
}

/* Improved Loading States for Specific Modules */
.stats-wrapper.loading,
.calendar-wrapper.loading {
    position: relative;
    min-height: 400px;
    opacity: 0.6;
    pointer-events: none;
}

.stats-wrapper.loading::after,
.calendar-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--button-bg-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Enhanced Year Tab Styling */
.year-tab-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.year-tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--button-bg-dark);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.year-tab-button.active::before,
.year-tab-button:hover::before {
    width: 100%;
}

.year-tab-button:hover {
    transform: translateY(-2px);
}

.year-tab-button:active {
    transform: translateY(0);
}

/* Badge/Chip Animations */
.employee-tag {
    transition: all 0.2s ease;
}

.employee-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.employee-tag:active {
    transform: scale(0.95);
}

/* Improved Chart Bars */
.chart-bar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

/* Fade-in animation for dynamically loaded content */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Glow effect for active elements */
.glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

body.vibrant-theme .glow {
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.6);
}

/* ========== SHIFT OVERVIEW (HOMEPAGE) ========== */
.shift-overview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

@media (max-width: 968px) {
    .shift-overview-container {
        grid-template-columns: 1fr;
    }
}

.shift-day-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-medium);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body.vibrant-theme .shift-day-card {
    background-color: var(--card-bg-vibrant);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shift-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.vibrant-theme .shift-day-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.shift-day-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--header-color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

body.vibrant-theme .shift-day-header h4 {
    color: var(--header-color-vibrant);
}

.shift-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

body.vibrant-theme .shift-date {
    color: rgba(0, 0, 0, 0.5);
}

.shift-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.shift-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.shift-task-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    border-left-width: 4px;
    border-left-style: solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.vibrant-theme .shift-task-item {
    background: rgba(0, 0, 0, 0.03);
}

.shift-task-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.shift-task-title {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.vibrant-theme .shift-task-title {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.shift-task-employees {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shift-employee-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color-dark);
}

body.vibrant-theme .shift-employee-item {
    color: var(--text-color-vibrant);
}

.shift-employee-item i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

body.vibrant-theme .shift-employee-item i {
    color: rgba(0, 0, 0, 0.3);
}

.task-extra {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

body.vibrant-theme .task-extra {
    background: rgba(0, 0, 0, 0.05);
}

.shift-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

body.vibrant-theme .shift-empty-state {
    color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.02);
}

.shift-empty-state i {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* ========== REQUESTS MODULE ========== */
.requests-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 968px) {
    .requests-layout {
        grid-template-columns: 1fr;
    }
}

.request-card {
    display: flex;
    flex-direction: column;
}

.request-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

body.vibrant-theme .request-desc {
    color: rgba(0,0,0,0.6);
}

.request-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

body.vibrant-theme .request-form {
    background: rgba(0, 0, 0, 0.03);
}

.modern-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

body.vibrant-theme .modern-input {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    color: black;
}

.modern-input:focus {
    border-color: #667eea;
    outline: none;
}

body.vibrant-theme .modern-input:focus {
    border-color: #38ef7d;
}

.request-result-area {
    margin-top: 15px;
}

.alert-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 4px solid transparent;
}

.alert-box i.fa-check-circle, .alert-box i.fa-exclamation-triangle, .alert-box i.fa-times-circle {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #2ecc71;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-color: #f39c12;
    color: #f39c12;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #e74c3c;
}

.dummy-state {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 2px dashed rgba(255,255,255,0.2);
}

body.vibrant-theme .dummy-state {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0,0,0,0.1);
}

.dummy-state i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

body.vibrant-theme .dummy-state i {
    color: rgba(0, 0, 0, 0.1);
}

.dummy-state h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

/* ========== CALENDAR MODAL ACTIONS ========== */
.calendar-modal-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

body.vibrant-theme .calendar-modal-actions {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.calendar-modal-actions h4 {
    margin: 0 0 15px 0;
    color: var(--text-color-dark);
    font-size: 1.05rem;
}

body.vibrant-theme .calendar-modal-actions h4 {
    color: var(--text-color-vibrant);
}

.modal-actions-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 500px) {
    .modal-actions-grid {
        grid-template-columns: 1fr;
    }
}

.action-btn {
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.action-btn i {
    margin-right: 5px;
}

.action-btn-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.action-btn-success:hover {
    background: rgba(46, 204, 113, 0.3);
}

body.vibrant-theme .action-btn-success {
    background: rgba(46, 204, 113, 0.1);
}

.action-btn-disabled {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
}

body.vibrant-theme .action-btn-disabled {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.3);
}

.action-btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.action-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

body.vibrant-theme .action-btn-secondary {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-color-vibrant);
}

body.vibrant-theme .action-btn-secondary:hover {
    background: rgba(0,0,0,0.1);
}

/* ========== SWAP BOARD (RUILBORD) UI ========== */
.swap-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.swap-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.swap-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.swap-header {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.vibrant-theme .swap-header {
    color: var(--text-color-vibrant);
}

.swap-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.95rem;
    color: #a0a0a0;
}

body.vibrant-theme .swap-details {
    color: #555;
}

.swap-take-btn {
    margin-top: auto;
    padding: 10px;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid #3498db;
    color: #3498db;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.swap-take-btn:hover {
    background: rgba(52, 152, 219, 0.4);
}

body.vibrant-theme .swap-take-btn {
    background: rgba(52, 152, 219, 0.1);
}

body.vibrant-theme .swap-take-btn:hover {
    background: rgba(52, 152, 219, 0.2);
}
/* ========== END UI IMPROVEMENTS ========== */

/* ========== MULTI-SELECT & ACTION BAR ========== */
.calendar-day.day-selected {
    border: 3px solid #2ecc71 !important;
    background: rgba(46, 204, 113, 0.2) !important;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5) inset;
    transform: scale(0.95);
    transition: all 0.2s ease-in-out;
}

.requests-action-bar {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    animation: slideUpBar 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpBar {
    from { bottom: -80px; opacity: 0; }
    to { bottom: 10px; opacity: 1; }
}

body.vibrant-theme .requests-action-bar {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.swap-card-accepted {
    position: relative;
}

/* ========== SWAP REACTIONS & COMMENTS ========== */
.swap-reactions {
    margin-top: 10px;
    padding: 10px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 8px;
}

.reactions-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2ecc71;
}

.reaction-item {
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.reaction-item:last-child {
    border-bottom: none;
}

.reaction-exchange {
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
}

.swap-comments {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
}

.comment-item {
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comment-item:last-child {
    border-bottom: none;
}

.swap-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swap-comment-input {
    display: flex;
    gap: 6px;
}

body.vibrant-theme .swap-reactions {
    background: rgba(46, 204, 113, 0.05);
    border-color: rgba(46, 204, 113, 0.15);
}

body.vibrant-theme .swap-comments {
    background: rgba(52, 152, 219, 0.05);
    border-color: rgba(52, 152, 219, 0.12);
}

/* ========== EXCHANGE MODE ========== */
.exchange-mode-banner {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    animation: pulseGlow 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(243, 156, 18, 0.7); }
}

.exchange-banner-content {
    padding: 20px 25px;
    color: #fff;
}

.exchange-banner-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #fff;
}

.exchange-banner-content p {
    margin: 5px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.95);
}

.exchange-banner-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.exchange-banner-actions .action-btn {
    font-weight: 700;
}

.calendar-day.day-exchange {
    border: 3px solid #f39c12 !important;
    background: rgba(243, 156, 18, 0.25) !important;
    box-shadow: 0 0 12px rgba(243, 156, 18, 0.5) inset;
    transform: scale(0.95);
    transition: all 0.2s ease-in-out;
}

/* ========== BEZETTING BADGES ========== */
.bezetting-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    z-index: 5;
    line-height: 1;
}

.bezetting-badge.bezetting-ok {
    background: #2ecc71;
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
}

.bezetting-badge.bezetting-warn {
    background: #f39c12;
    box-shadow: 0 0 6px rgba(243, 156, 18, 0.6);
}

.bezetting-badge.bezetting-danger {
    background: #e74c3c;
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
}

/* Make calendar-day position:relative for dots */
.calendar-day {
    position: relative;
}

/* ========== ACTOR SELECTOR STYLE ========== */
#actor-selector {
    transition: all 0.2s ease;
}

#actor-selector:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}
