/* AIO - Auto Informatie & Opdrachten Styling */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-gray: #ecf0f1;
    --dark-gray: #95a5a6;
    --white: #ffffff;
    
    /* Status kleuren */
    --status-openstaand: #3498db;
    --status-voltooid: #27ae60;
    --status-behandeling: #f39c12;
    --status-nietgelukt: #e74c3c;
    --status-uitgesteld: #9b59b6;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #306e9b;
    color: #333;
    line-height: 1.6;
}


/* Font Awesome icon spacing */
h1 i, h2 i, h3 i {
    margin-right: 0.5rem;
}

.btn i {
    margin-right: 0.3rem;
}

/* Admin section headers */
.admin-section h2 {
    display: flex;
    align-items: center;
}

/* Actieve eenheden icon */
.eenheid-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.eenheid-icon i {
    margin-right: 0;
}

/* Actief sinds indicator */
.actief-sinds i {
    margin-right: 0.3rem;
}


/* Menu Bar */
.menubar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menubar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.menubar-logo {
    font-size: 1.8rem;
    font-weight: 700;
    padding: 0.5rem 0;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.menubar-logo i {
    color: var(--white);
}

[data-theme="dark"] .menubar-logo {
    color: white;
}

[data-theme="dark"] .menubar-logo i {
    color: white;
}

.menubar-items {
    display: flex;
    gap: 0.5rem;
}

.menubar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menubar-item {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 0;
    display: inline-block;
}

a.menubar-item {
    text-decoration: none;
    color: var(--white);
}

.menubar-item:hover {
    background: rgba(255,255,255,0.1);
}

.menubar-item i {
    margin-right: 0.5rem;
}

.menubar-item.active {
    background: rgba(255,255,255,0.2);
    border-bottom: 3px solid var(--white);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
    padding: 2rem;
}

/* Opdrachten tab heeft speciale layout zonder padding */
#opdrachtenTab {
    padding: 0;
}

#opdrachtenTab.active {
    padding: 0;
}

/* Opdrachten Sidebar Menu */
.opdrachten-sidebar {
    position: fixed;
    left: 0;
    top: 80px; /* Onder de menubar */
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
    overflow-y: auto;
    border-right: 2px solid var(--light-gray);
}

/* Wrapper die de breedte bepaalt en voorkomt dat content onder sidebar komt */
.opdrachten-content-wrapper {
    margin-left: 280px;
    width: calc(100vw - 280px);
    max-width: calc(100vw - 280px);
    box-sizing: border-box;
    position: relative;
    min-height: calc(100vh - 80px);
    overflow-x: hidden;
}

/* Content binnen de wrapper */
.opdrachten-content {
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Zorg dat alle accordions binnen opdrachten-content de volledige breedte gebruiken */
.opdrachten-content .accordion,
.opdrachten-content-wrapper > .accordion {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
}

/* Zorg dat alle content binnen accordions ook binnen de breedte blijft */
.opdrachten-content .accordion-content,
.opdrachten-content-wrapper > .accordion .accordion-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

/* Zorg dat tabellen binnen accordions niet te breed worden */
.opdrachten-content .accordion-content .data-table,
.opdrachten-content-wrapper > .accordion .accordion-content .data-table {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Zorg dat alle divs binnen accordion-content ook binnen de breedte blijven */
.opdrachten-content .accordion-content > div,
.opdrachten-content-wrapper > .accordion .accordion-content > div {
    max-width: 100%;
    box-sizing: border-box;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.5rem;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
}

.sidebar-menu-item:hover {
    background: var(--light-gray);
    border-left-color: var(--secondary-color);
    transform: translateX(4px);
}

.sidebar-menu-item.active {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), transparent);
    border-left-color: var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.sidebar-menu-item:hover .sidebar-icon {
    transform: scale(1.1);
}

.sidebar-menu-item.active .sidebar-icon {
    stroke: var(--secondary-color);
}

/* Dark mode voor sidebar */
[data-theme="dark"] .opdrachten-sidebar {
    background: #2c3e50;
    border-right-color: #34495e;
}

[data-theme="dark"] .sidebar-menu-item {
    color: #ecf0f1;
}

[data-theme="dark"] .sidebar-menu-item:hover {
    background: #34495e;
}

[data-theme="dark"] .sidebar-menu-item.active {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.2), transparent);
}

/* Dark mode voor accordions */
[data-theme="dark"] .accordion {
    background: #34495e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .accordion-header {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .accordion-header:hover {
    background: #34495e;
}

[data-theme="dark"] .accordion-content {
    background: #34495e;
}

/* Responsive: verberg sidebar op kleine schermen */
@media (max-width: 1024px) {
    .opdrachten-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .opdrachten-sidebar.open {
        transform: translateX(0);
    }
    
    .opdrachten-content-wrapper {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .opdrachten-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* Header (voor admin) */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    flex: 1;
}

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

.header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Wanneer Opdrachten tab actief is, verwijder max-width beperking van container */
.admin-container.opdrachten-active.container,
.admin-container.opdrachten-active,
.admin-container.opdrachten-active.container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Zorg dat container binnen opdrachten tab geen beperking heeft */
#opdrachtenTab.active ~ * .container,
#opdrachtenTab.active .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Zorg dat alle accordions binnen opdrachten-content de volledige breedte gebruiken */
.opdrachten-content .accordion {
    width: 100% !important;
    max-width: 100% !important;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
}

.tab:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Eenheid Selectie */
.eenheid-selectie {
    margin-bottom: 2rem;
}

/* Eenheid selectie in modal - zelfde achtergrond als dashboard */
.eenheid-selectie-modal {
    background: #306e9b !important;
}

[data-theme="dark"] .eenheid-selectie-modal {
    background: #1a1a1a !important;
}

.section-title-white {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-title-white a {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s;
}

.section-title-white a:hover {
    opacity: 0.8;
}

[data-theme="dark"] .section-title-white {
    color: #ecf0f1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

[data-theme="dark"] .section-title-white a {
    color: inherit;
}

.eenheid-buttons {
    display: grid;
    grid-template-columns: repeat(var(--eenheden-per-rij, 4), 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.eenheid-btn {
    background: var(--white);
    border: 3px solid var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.eenheid-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.eenheid-naam {
    font-size: 1.3rem;
    font-weight: 600;
}

.eenheid-groep {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
}

.eenheid-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.eenheid-btn.eenheid-actief {
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.4);
}

.eenheid-btn.selected {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Status Indicator Bolletje */
.eenheid-status-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.eenheid-status-indicator.actief {
    background: #27ae60;
    animation: pulse 2s ease-in-out infinite;
}

.eenheid-status-indicator.inactief {
    background: #e74c3c;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 4px rgba(39, 174, 96, 0.4);
    }
    50% {
        box-shadow: 0 0 12px rgba(39, 174, 96, 0.8);
    }
}

/* Opdrachten Grid */
.opdrachten-container {
}

.opdrachten-container h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .opdrachten-container h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.opdrachten-container .loading,
.opdrachten-container .empty-state {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

[data-theme="dark"] .opdrachten-container .loading,
[data-theme="dark"] .opdrachten-container .empty-state {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

.opdrachten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Podcasts Grid */
.podcasts-container {
    margin-top: 2rem;
}

.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Opdracht Kaartje */
.opdracht-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 6px solid var(--primary-color);
}

.opdracht-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.opdracht-card.status-openstaand {
    border-left-color: var(--status-openstaand);
}

.opdracht-card.status-voltooid {
    border-left-color: var(--status-voltooid);
}

.opdracht-card.status-behandeling {
    border-left-color: var(--status-behandeling);
}

.opdracht-card.status-nietgelukt {
    border-left-color: var(--status-nietgelukt);
}

.podcast-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 6px solid var(--secondary-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.podcast-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.podcast-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.podcast-card-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.podcast-card-play-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.podcast-card.podcast-playing {
    border-left-color: #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.podcast-card.podcast-playing .podcast-card-play-icon {
    color: var(--primary-color);
    animation: pulse-play 2s ease-in-out infinite;
}

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

.podcast-card-description {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.podcast-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.podcast-card-labels .label-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.podcast-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.podcast-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Persistente Audio Player */
.audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    padding: 1rem 2rem;
}

.audio-player {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.audio-player-controls {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

/* Custom Audio Player */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.5rem 0;
}

/* Audio knoppen - groot en touch-vriendelijk */
.audio-btn {
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.audio-btn:active {
    transform: scale(0.95);
}

.audio-play-pause {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
}

.audio-volume {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

/* Progress container */
.audio-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

/* Tijd displays - groot en duidelijk */
.audio-time-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 55px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Progress bar */
.audio-progress-bar {
    flex: 1;
    position: relative;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    cursor: pointer;
    touch-action: none;
}

.audio-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-gray);
    border-radius: 4px;
}

.audio-progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.audio-progress-handle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.1s ease;
    cursor: grab;
}

.audio-progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Volume container */
.audio-volume-container {
    display: flex;
    align-items: center;
    width: 100px;
    height: 20px;
}

.audio-volume-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--light-gray);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    margin-top: -6px;
}

.audio-volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.audio-volume-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
}

.audio-volume-slider::-moz-range-track {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
}

/* Verberg native audio element */
#audioPlayer {
    display: none;
}

.audio-player-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0.75rem;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 8px;
}

.audio-player-close:hover {
    color: var(--danger-color);
    background: rgba(231, 76, 60, 0.1);
}

.audio-player-close:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .audio-player-container {
        padding: 1rem;
    }
    
    .audio-player {
        flex-direction: column;
        gap: 1rem;
    }
    
    .audio-player-controls {
        width: 100%;
    }
    
    .custom-audio-player {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .audio-play-pause {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }
    
    .audio-volume {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }
    
    .audio-time-display {
        font-size: 1.2rem;
        min-width: 60px;
    }
    
    .audio-progress-bar {
        height: 10px;
        order: 3;
        width: 100%;
    }
    
    .audio-progress-handle {
        width: 24px;
        height: 24px;
    }
    
    .audio-volume-container {
        width: 120px;
    }
    
    .audio-volume-slider {
        height: 8px;
    }
    
    .audio-volume-slider::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }
    
    .audio-volume-slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }
    
    .audio-player-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }
}

.opdracht-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 6px solid var(--primary-color);
}

.opdracht-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.opdracht-card.status-openstaand {
    border-left-color: var(--status-openstaand);
}

.opdracht-card.status-voltooid {
    border-left-color: var(--status-voltooid);
}

.opdracht-card.status-behandeling {
    border-left-color: var(--status-behandeling);
}

.opdracht-card.status-nietgelukt {
    border-left-color: var(--status-nietgelukt);
}

.opdracht-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.opdracht-titel {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    flex: 1;
}

.opdracht-prioriteit {
    margin-left: 1rem;
    font-size: 1.2rem;
}

.opdracht-beschrijving {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.opdracht-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.opdracht-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.status-badge.openstaand {
    background: var(--status-openstaand);
    color: var(--white);
}

.status-badge.voltooid {
    background: var(--status-voltooid);
    color: var(--white);
}

.status-badge.behandeling {
    background: var(--status-behandeling);
    color: var(--white);
}

.status-badge.nietgelukt {
    background: var(--status-nietgelukt);
    color: var(--white);
}

/* Status Buttons */
.status-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.status-btn {
    padding: 1rem;
    border: 2px solid;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--white);
}

.status-btn:hover {
    transform: scale(1.05);
}

.status-btn.btn-openstaand {
    border-color: var(--status-openstaand);
    color: var(--status-openstaand);
}

.status-btn.btn-openstaand:hover {
    background: var(--status-openstaand);
    color: var(--white);
}

.status-btn.btn-voltooid {
    border-color: var(--status-voltooid);
    color: var(--status-voltooid);
}

.status-btn.btn-voltooid:hover {
    background: var(--status-voltooid);
    color: var(--white);
}

.status-btn.btn-behandeling {
    border-color: var(--status-behandeling);
    color: var(--status-behandeling);
}

.status-btn.btn-behandeling:hover {
    background: var(--status-behandeling);
    color: var(--white);
}

.status-btn.btn-nietgelukt {
    border-color: var(--status-nietgelukt);
    color: var(--status-nietgelukt);
}

.status-btn.btn-nietgelukt:hover {
    background: var(--status-nietgelukt);
    color: var(--white);
}

/* Admin Interface */
.admin-container {
    max-width: 1600px;
    margin: 0 auto;
}

#opdrachtenTab.active .admin-container,
.admin-container.opdrachten-active,
.admin-container.opdrachten-active.container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Wanneer opdrachten tab actief is, verwijder max-width van container */
.admin-container.opdrachten-active,
.admin-container:has(#opdrachtenTab.active) {
    max-width: 100% !important;
    padding: 0 !important;
}

.admin-container.opdrachten-active.container,
.admin-container:has(#opdrachtenTab.active).container {
    max-width: 100% !important;
    padding: 0 !important;
}

.admin-section {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

/* Color Picker Input Styling - zorg dat de gekozen kleur zichtbaar is */
input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: var(--dark-gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-info {
    background: var(--info-color);
    color: var(--white);
}

.btn-info:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.data-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table td {
    font-size: 1rem;
}

.data-table td .status-badge {
    font-size: 1rem;
    font-weight: normal;
}

/* Editable cells */
.editable-cell {
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    min-height: 1.5rem;
    transition: all 0.2s ease;
    cursor: text;
}

.editable-cell:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

.editable-cell:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.editable-cell:empty:before {
    content: 'Klik om te bewerken...';
    color: #aaa;
    font-style: italic;
}

/* Actieve Eenheden Grid */
.actieve-eenheden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.actieve-eenheid-card {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 3px solid #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    text-align: center;
    position: relative;
    animation: pulseCard 2s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.actieve-eenheid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.actieve-eenheid-card .eenheid-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.actieve-eenheid-card .eenheid-naam {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.actieve-eenheid-card .eenheid-groep {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.actieve-eenheid-card .actief-sinds {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    font-style: italic;
}

@keyframes pulseCard {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(39, 174, 96, 0.5), 0 0 30px rgba(39, 174, 96, 0.3);
    }
}

.geen-actieve-eenheden {
    text-align: center;
    padding: 2rem;
    color: #95a5a6;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--dark-gray);
}

.empty-state svg {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .opdrachten-grid {
        grid-template-columns: 1fr;
    }
    
    .podcasts-grid {
        grid-template-columns: 1fr;
    }
    
    .eenheid-buttons {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-right {
        width: 100%;
    }
    
    .header-right .btn {
        width: 100%;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* Utility Classes */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--dark-gray); }
.d-none { display: none; }
.d-block { display: block; }

/* Multi-select voor eenheden */
.multi-select-container {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

/* Eenheden container een kwart groter */
#eenhedenCheckboxes.multi-select-container,
#editEenhedenCheckboxes.multi-select-container {
    max-height: 250px;
}

.multi-select-item {
    padding: 0.5rem;
    margin: 0.1rem 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.multi-select-item:hover {
    background: var(--light-gray);
}

.multi-select-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    touch-action: none;
}

.modal.active,
.modal[style*="display: block"],
.modal[style*="display:flex"] {
    display: flex !important;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 2rem 2rem 1.5rem 2rem;
    flex-shrink: 0;
    gap: 1rem;
}

/* Voor opdracht modal: titel en status inline in header */
.modal-content.modal-opdracht .modal-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
}

.modal-content.modal-opdracht .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 1.5rem;
}

.modal-content.modal-opdracht .modal-header .huidige-status-groot {
    margin-left: auto;
    flex-shrink: 0;
}

/* Prioriteit icoon in cirkel - gecentreerd */
.prioriteit-cirkel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.prioriteit-cirkel i {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    font-size: 0.9rem !important;
}

.modal-content > div:not(.modal-header) {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    flex: 1;
    min-height: 0;
    padding: 2rem;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-gray);
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--danger-color);
    background: var(--light-gray);
}

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

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

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

.toast {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.toast-message {
    font-size: 0.9rem;
    color: #555;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-gray);
    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: var(--light-gray);
}

@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;
    }
}

/* Accordion */
.accordion {
    margin-bottom: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Accordions in Opdrachten tab hebben extra styling */
#opdrachtenTab .accordion {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Nested accordions binnen andere accordions (zoals in Systeeminstellingen) */
.accordion-content .accordion {
    background: transparent;
    box-shadow: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.accordion-content .accordion .accordion-header {
    background: #f8f9fa;
    border-radius: 10px;
}

.accordion-content .accordion .accordion-header:hover {
    background: #e9ecef;
}

.accordion-content .accordion .accordion-header.active {
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 10px 10px 0 0;
}

.accordion-content .accordion .accordion-content {
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.accordion-content .accordion .accordion-content.active {
    background: #f8f9fa;
    border: 1px solid var(--secondary-color);
    border-top: none;
}

/* Dark mode voor nested accordions */
[data-theme="dark"] .accordion-content .accordion {
    background: transparent;
}

[data-theme="dark"] .accordion-content .accordion .accordion-header {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .accordion-content .accordion .accordion-header:hover {
    background: #34495e;
}

[data-theme="dark"] .accordion-content .accordion .accordion-content {
    background: #2c3e50;
}

[data-theme="dark"] .accordion-content .accordion .accordion-content.active {
    background: #2c3e50;
}

.accordion-header {
    background: var(--light-gray);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.accordion-header:hover {
    background: #dfe4e8;
}

.accordion-header.active {
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity 0.15s ease 0s,
        visibility 0.15s ease 0s,
        max-height 0.3s ease 0.15s,
        padding 0.3s ease 0.15s;
    background: var(--white);
    border-radius: 0 0 15px 15px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.accordion-content.active {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
    padding: 1.5rem;
    border: 2px solid var(--secondary-color);
    border-top: none;
    transition: 
        max-height 0.3s ease 0s,
        padding 0.3s ease 0s,
        opacity 0.15s ease 0.15s,
        visibility 0.15s ease 0.15s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

/* Zorg dat accordions in Opdrachten tab standaard open zijn, maar wel inklapbaar */
#opdrachtenTab .accordion-content {
    max-height: 2000px;
    padding: 1.5rem;
    opacity: 1;
    visibility: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    border: 2px solid var(--secondary-color);
    border-top: none;
    transition: 
        max-height 0.3s ease 0s,
        padding 0.3s ease 0s,
        opacity 0.15s ease 0.15s,
        visibility 0.15s ease 0.15s;
}

/* Wanneer accordion NIET actief is, klap in */
#opdrachtenTab .accordion-content:not(.active) {
    max-height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    border: none;
    transition: 
        opacity 0.15s ease 0s,
        visibility 0.15s ease 0s,
        max-height 0.3s ease 0.15s,
        padding 0.3s ease 0.15s;
}

#opdrachtenTab .accordion-content.active {
    max-height: 2000px;
    padding: 1.5rem;
    opacity: 1;
    visibility: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    border: 2px solid var(--secondary-color);
    border-top: none;
    transition: 
        max-height 0.3s ease 0s,
        padding 0.3s ease 0s,
        opacity 0.15s ease 0.15s,
        visibility 0.15s ease 0.15s;
}

/* Zorg dat accordion headers in Opdrachten tab standaard actief zijn, maar wel togglebaar */
#opdrachtenTab .accordion-header {
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

/* Wanneer header NIET actief is, gebruik grijze achtergrond */
#opdrachtenTab .accordion-header:not(.active) {
    background: var(--light-gray);
    color: var(--primary-color);
    border-radius: 15px;
}

#opdrachtenTab .accordion-header.active {
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

/* Icoon standaard gedraaid (open), maar niet wanneer niet actief */
#opdrachtenTab .accordion-header .accordion-icon {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

#opdrachtenTab .accordion-header:not(.active) .accordion-icon {
    transform: rotate(0deg);
}

/* Nested accordions binnen accordion-content (zoals in Systeeminstellingen) moeten standaard dicht zijn */
.accordion-content .accordion .accordion-content {
    max-height: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    border: none !important;
}

.accordion-content .accordion .accordion-content.active {
    max-height: 2000px !important;
    padding: 1.5rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: 1px solid var(--secondary-color) !important;
    border-top: none !important;
}

.accordion-content .accordion .accordion-header {
    background: #f8f9fa !important;
    color: var(--primary-color) !important;
}

.accordion-content .accordion .accordion-header.active {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
}

.accordion-content .accordion .accordion-header .accordion-icon {
    transform: rotate(0deg) !important;
}

.accordion-content .accordion .accordion-header.active .accordion-icon {
    transform: rotate(180deg) !important;
}

/* PIN Code Input */
.pin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.pin-dialog {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.pin-dialog h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.pin-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pin-input {
    width: 60px;
    height: 70px;
    font-size: 2rem;
    text-align: center;
    border: 3px solid var(--light-gray);
    border-radius: 10px;
    font-weight: 700;
    transition: border-color 0.3s;
}

.pin-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.pin-error {
    color: var(--danger-color);
    font-weight: 600;
    margin-top: 1rem;
}

.pin-success {
    color: var(--success-color);
    font-weight: 600;
    margin-top: 1rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Copyright Footer - Fixed onderaan links */
.copyright-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 0 15px;
    height: 35px;
    color: #95a5a6;
    font-size: 0.75rem;
    background: rgb(44 63 82);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-top-right-radius: 8px;
    box-shadow: 2px -2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright-footer a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-footer a:hover {
    color: #7f8c8d;
}

/* GPS Location Footer */
.gps-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 0 15px;
    height: 35px;
    color: #27ae60;
    font-size: 0.75rem;
    background: rgb(44 63 82);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-top-left-radius: 8px;
    box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
}

.gps-icon {
    font-size: 1rem;
    animation: pulse-gps 2s ease-in-out infinite;
}

@keyframes pulse-gps {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Activiteit Timeline */
.activiteit-timeline {
    padding: 1rem 0;
}

.activiteit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.activiteit-item:last-child .activiteit-line {
    display: none;
}

.activiteit-tijdlijn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30px;
    flex-shrink: 0;
}

.activiteit-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
    z-index: 1;
}

.activiteit-line {
    width: 2px;
    flex: 1;
    min-height: 40px;
    background: var(--light-gray);
    margin-top: 0.5rem;
}

.activiteit-content {
    flex: 1;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.activiteit-tijd {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.activiteit-datum,
.activiteit-tijdstip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.activiteit-opdracht {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.activiteit-status-change {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    height: 1.8rem;
}

.activiteit-status-change .status-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.8rem;
    box-sizing: border-box;
    margin: 0;
}

.activiteit-status-change > span:not(.status-badge) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    height: 1.8rem !important;
    width: auto !important;
    box-sizing: border-box;
    font-size: 1.1rem;
    margin: 0 !important;
    padding: 0 !important;
    color: #95a5a6 !important;
}

.activiteit-notitie {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    border-left: 3px solid var(--secondary-color);
}

.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--danger-color);
    font-size: 1.2rem;
}

/* GPS Info */
.gps-info {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    font-family: monospace;
}

.gps-info a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.gps-info a:hover {
    background: var(--secondary-color);
}


/* =====================================================
   VEREENVOUDIGDE OPDRACHT KAARTJES (Simple Cards)
   ===================================================== */

.opdracht-card-simple {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 4px solid var(--white);
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.opdracht-card-simple:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.opdracht-card-simple.status-openstaand {
    border-left-color: var(--status-openstaand);
}

.opdracht-card-simple.status-voltooid {
    border-left-color: var(--status-voltooid);
}

.opdracht-card-simple.status-behandeling {
    border-left-color: var(--status-behandeling);
}

.opdracht-card-simple.status-nietgelukt {
    border-left-color: var(--status-nietgelukt);
}

.opdracht-card-simple.status-uitgesteld {
    border-left-color: var(--status-uitgesteld);
}

.opdracht-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.opdracht-titel-simple {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    flex: 1;
    display: inline-block;
    min-width: 0;
    width: 100%;
    line-height: 1.4;
}

.status-badge-simple {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge-simple.openstaand {
    background: var(--status-openstaand);
    color: white;
}

.status-badge-simple.voltooid {
    background: var(--status-voltooid);
    color: white;
}

.status-badge-simple.behandeling {
    background: var(--status-behandeling);
    color: white;
}

.status-badge-simple.nietgelukt {
    background: var(--status-nietgelukt);
    color: white;
}

.status-badge-simple.uitgesteld {
    background: var(--status-uitgesteld);
    color: white;
}

.opdracht-labels {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
    order: 2;
    flex-basis: 100%;
}

.opdracht-beschrijving-simple {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.opdracht-afstand {
    font-size: 1.1rem;
    color: #7f8c8d;
    padding-top: 0.75rem;
    font-weight: 500;
    margin-top: auto;
}

[data-theme="dark"] .opdracht-afstand {
    color: white;
}

/* =====================================================
   OPDRACHT DETAIL MODAL
   ===================================================== */

.modal-opdracht {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-opdracht-header {
    display: none; /* Verberg oude header, gebruik modal-header in plaats daarvan */
}

.huidige-status-groot {
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.huidige-status-groot.openstaand {
    background: var(--status-openstaand);
    color: white;
}

.huidige-status-groot.voltooid {
    background: var(--status-voltooid);
    color: white;
}

.huidige-status-groot.behandeling {
    background: var(--status-behandeling);
    color: white;
}

.huidige-status-groot.nietgelukt {
    background: var(--status-nietgelukt);
    color: white;
}

.huidige-status-groot.uitgesteld {
    background: var(--status-uitgesteld);
    color: white;
}

/* Status Knoppen in Modal */
.modal-status-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-status-btn {
    padding: 1.2rem;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark-gray);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding-left: 1.5rem;
}

.modal-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-status-btn.active {
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-status-btn.btn-openstaand {
    color: var(--status-openstaand);
    border-color: var(--status-openstaand);
}

.modal-status-btn.btn-openstaand.active {
    background: var(--status-openstaand);
    color: white;
}

.modal-status-btn.btn-behandeling {
    color: var(--status-behandeling);
    border-color: var(--status-behandeling);
}

.modal-status-btn.btn-behandeling.active {
    background: var(--status-behandeling);
    color: white;
}

.modal-status-btn.btn-voltooid {
    color: var(--status-voltooid);
    border-color: var(--status-voltooid);
}

.modal-status-btn.btn-voltooid.active {
    background: var(--status-voltooid);
    color: white;
}

.modal-status-btn.btn-nietgelukt {
    color: var(--status-nietgelukt);
    border-color: var(--status-nietgelukt);
}

.modal-status-btn.btn-nietgelukt.active {
    background: var(--status-nietgelukt);
    color: white;
}

.modal-status-btn.btn-uitgesteld {
    color: var(--status-uitgesteld);
    border-color: var(--status-uitgesteld);
}

.modal-status-btn.btn-uitgesteld.active {
    background: var(--status-uitgesteld);
    color: white;
}
    color: white;
}

/* Modal Beschrijving */
.modal-opdracht-beschrijving {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.modal-opdracht-beschrijving h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.modal-opdracht-beschrijving p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 0;
    white-space: pre-wrap;
}

/* Kaart Placeholder */
.kaart-placeholder {
    margin-top: 1.5rem;
    padding: 2rem;
    background: #ecf0f1;
    border-radius: 12px;
    text-align: center;
    color: var(--dark-gray);
}

/* Responsive aanpassingen voor simple cards */
@media (max-width: 768px) {
    .opdracht-header-simple {
        flex-direction: column;
    }
    
    .status-badge-simple {
        align-self: flex-start;
    }
    
    .modal-status-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-opdracht-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* =====================================================
   DARK MODE & THEME TOGGLE
   ===================================================== */

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.theme-icon i {
    color: #ffd700; /* Geel voor zon en maan */
}

/* Dark mode variabelen */
[data-theme="dark"] {
    --primary-color: #ecf0f1;
    --secondary-color: #3498db;
    --dark-gray: #ecf0f1;
    --light-gray: #34495e;
    --white: #2c3e50;
    --background: #1a1a1a;
    --surface: #2c3e50;
}

[data-theme="dark"] body {
    background: #1a1a1a;
    color: #ecf0f1;
}

[data-theme="dark"] .menubar {
    background: #2c3e50;
}

[data-theme="dark"] .menubar-item {
    color: #ecf0f1;
}

[data-theme="dark"] .menubar-item:hover {
    background: rgba(255,255,255,0.15);
}

[data-theme="dark"] .menubar-item.active {
    background: rgba(255,255,255,0.25);
    border-bottom-color: #ecf0f1;
}

[data-theme="dark"] .container {
    background: #1a1a1a;
}

[data-theme="dark"] .eenheid-btn {
    background: #34495e;
    border-color: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .opdracht-card-simple {
    background: #34495e;
    color: #ecf0f1;
    border-color: #34495e;
}

[data-theme="dark"] .podcast-card {
    background: #34495e;
    color: #ecf0f1;
}

[data-theme="dark"] .podcast-card-title {
    color: #ffffff;
}

[data-theme="dark"] .podcast-card-title i {
    color: #ffffff;
}

[data-theme="dark"] .podcast-card-play-icon {
    color: #ffffff;
}

[data-theme="dark"] .podcast-card-playing .podcast-card-play-icon {
    color: #ffffff;
}

[data-theme="dark"] .podcast-card-description {
    color: #ecf0f1;
}

[data-theme="dark"] .podcast-card-meta {
    color: #bdc3c7;
    border-top-color: #2c3e50;
}

[data-theme="dark"] .audio-player-container {
    background: #2c3e50;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

[data-theme="dark"] .audio-player-title {
    color: #ecf0f1;
}

[data-theme="dark"] .audio-player-close {
    color: #bdc3c7;
}

[data-theme="dark"] .audio-player-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
}

/* Dark mode audio controls styling */
[data-theme="dark"] .audio-time-display {
    color: #ecf0f1;
}

[data-theme="dark"] .audio-progress-bar {
    background: #34495e;
}

[data-theme="dark"] .audio-progress-track {
    background: #34495e;
}

[data-theme="dark"] .audio-progress-filled {
    background: #3498db;
}

[data-theme="dark"] .audio-progress-handle {
    background: #3498db;
    border-color: #2c3e50;
}

[data-theme="dark"] .audio-volume-slider {
    background: #34495e;
}

[data-theme="dark"] .audio-volume-slider::-webkit-slider-runnable-track {
    background: #34495e;
}

[data-theme="dark"] .audio-volume-slider::-moz-range-track {
    background: #34495e;
}

[data-theme="dark"] .audio-volume-slider::-webkit-slider-thumb {
    background: #3498db;
    border-color: #2c3e50;
}

[data-theme="dark"] .audio-volume-slider::-moz-range-thumb {
    background: #3498db;
    border-color: #2c3e50;
}

[data-theme="dark"] .audio-player-controls audio {
    filter: invert(1) hue-rotate(180deg);
    opacity: 0.9;
}

[data-theme="dark"] .modal-content {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .opdracht-titel-simple {
    color: #3498db;
}

[data-theme="dark"] .modal-opdracht-beschrijving {
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px;
    border-radius: 10px;
}

[data-theme="dark"] .modal-opdracht-beschrijving h3 {
    color: #3498db;
}

[data-theme="dark"] .modal-opdracht-beschrijving p {
    color: #ffffff;
}

/* Status indicator groter maken */
.eenheid-status-indicator {
    width: 24px;
    height: 24px;
}

.status-badge-simple {
    font-size: 1rem;
}

/* =====================================================
   BULK ACTIES & FILTERS
   ===================================================== */

.opdrachten-controls {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #ecf0f1;
}

.opdrachten-controls select {
    font-size: 0.9rem;
    cursor: pointer;
}

.opdrachten-controls select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Checkbox styling in tabel */
.opdracht-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#selectAll {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Bulk actie knoppen */
#bulkActivateBtn,
#bulkDeactivateBtn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

#selectedCount {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Dark mode voor filters */
[data-theme="dark"] .opdrachten-controls {
    background: #34495e;
    border-color: #2c3e50;
}

[data-theme="dark"] .opdrachten-controls select {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #34495e;
}

[data-theme="dark"] #selectedCount {
    background: #2c3e50;
    color: #ecf0f1;
}

/* =====================================================
   TOAST NOTIFICATIES
   ===================================================== */

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

.toast {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.toast-message {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #95a5a6;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #7f8c8d;
}

.toast.success {
    border-left: 4px solid #27ae60;
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.info {
    border-left: 4px solid #3498db;
}

.toast.warning {
    border-left: 4px solid #f39c12;
}

@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;
    }
}

/* Dark mode toast styling */
[data-theme="dark"] .toast {
    background: #34495e;
}

[data-theme="dark"] .toast-title {
    color: #ffffff;
}

[data-theme="dark"] .toast-message {
    color: #ecf0f1;
}

[data-theme="dark"] .toast-close {
    color: #bdc3c7;
}

[data-theme="dark"] .toast-close:hover {
    color: #ecf0f1;
}

/* Datum en tijd input styling */
input[type="date"],
select[id*="tijd"],
select[id*="Tijd"] {
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="date"]:hover,
select[id*="tijd"]:hover,
select[id*="Tijd"]:hover {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input[type="date"]:focus,
select[id*="tijd"]:focus,
select[id*="Tijd"]:focus {
    outline: none;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Datum in verleden visueel markeren */
input[type="date"]:invalid {
    border-color: var(--danger-color) !important;
    background-color: #ffebee;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--secondary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--secondary-color);
}

[data-theme="dark"] input[type="date"],
[data-theme="dark"] select[id*="tijd"],
[data-theme="dark"] select[id*="Tijd"] {
    background: #2d2d2d;
    color: #ffffff;
    border-color: #444;
}

[data-theme="dark"] input[type="date"]:invalid {
    color: #ecf0f1;
}

/* Dark mode voor "Naar eenheden" knop - donkerblauw */
[data-theme="dark"] .btn-secondary {
    background: #1e3a5f !important;
    color: #ffffff !important;
    border-color: #2c4d75 !important;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #152a47 !important;
    border-color: #1e3a5f !important;
}

/* Dark mode voor btn-danger - zorg dat tekst wit blijft */
[data-theme="dark"] .btn-danger {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-danger:hover {
    color: #ffffff !important;
}
    background-color: rgba(231, 76, 60, 0.1);
}

/* Responsive filters */
@media (max-width: 768px) {
    .opdrachten-controls {
        flex-direction: column;
    }
    
    .opdrachten-controls > div {
        width: 100%;
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* Responsive Admin Interface */
@media (max-width: 768px) {
    /* Menubar responsive */
    .menubar-content {
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    
    .menubar-logo {
        font-size: 1.4rem;
    }
    
    .menubar-items {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .menubar-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .menubar-item i {
        margin-right: 0.3rem;
    }
    
    .menubar-right {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .menubar-right .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Sidebar toggle button */
    .sidebar-toggle {
        position: fixed;
        top: 90px;
        left: 10px;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
    }
    
    .sidebar-toggle:hover {
        background: var(--secondary-color);
    }
    
    /* Verberg toggle button op desktop */
    @media (min-width: 1025px) {
        .sidebar-toggle {
            display: none;
        }
    }
    
    /* Content adjustments */
    .opdrachten-content {
        padding: 1rem 0.5rem;
    }
    
    .opdrachten-content h1 {
        font-size: 1.5rem;
    }
    
    .opdrachten-content h2 {
        font-size: 1.3rem;
    }
    
    /* Filters responsive */
    .opdrachten-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .opdrachten-controls > div {
        width: 100%;
        min-width: 100%;
    }
    
    .opdrachten-controls > div > div {
        width: 100%;
        min-width: 100%;
    }
    
    /* Table responsive */
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .data-table th {
        font-size: 0.85rem;
    }
    
    /* Accordion responsive */
    .accordion-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .accordion-content {
        padding: 1rem;
    }
    
    /* Modal responsive */
    .modal-content {
        max-width: 95vw !important;
        margin: 1rem auto;
        max-height: 90vh;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    /* Form responsive */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Buttons responsive */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Actieve eenheden grid responsive */
    .actieve-eenheden-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Tab content padding */
    .tab-content {
        padding: 1rem 0.5rem;
    }
    
    /* Admin section responsive */
    .admin-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .admin-section h2 {
        font-size: 1.3rem;
    }
    
    /* Status badges responsive */
    .status-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Bulk actions responsive */
    .opdrachten-controls > div:last-child {
        flex-direction: column;
        width: 100%;
    }
    
    .opdrachten-controls > div:last-child > button,
    .opdrachten-controls > div:last-child > span {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .menubar-logo {
        font-size: 1.2rem;
    }
    
    .menubar-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .opdrachten-content {
        padding: 0.75rem 0.25rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }
    
    .modal-content {
        max-width: 98vw !important;
        padding: 1rem;
    }
    
    .accordion-header {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .accordion-content {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* ===== Eigen Tunnel: type-keuze en optiepanelen ===== */
.tunnel-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tunnel-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}

.tunnel-type-card:hover {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.04);
}

.tunnel-type-card:has(input:checked) {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.08);
    box-shadow: 0 0 0 1px var(--secondary-color);
}

.tunnel-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tunnel-type-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.tunnel-type-card:has(input:checked) .tunnel-type-card-icon {
    background: rgba(52, 152, 219, 0.15);
    color: var(--secondary-color);
}

.tunnel-type-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.tunnel-type-card-desc {
    font-size: 0.875rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

.tunnel-options-panel {
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e6eb;
    border-left: 4px solid var(--secondary-color);
    background: #f8fafc;
}

.tunnel-options-panel .form-group {
    margin-bottom: 1.25rem;
}

.tunnel-status-box {
    margin: 1rem 0;
    padding: 1.25rem;
    border-radius: 10px;
    background: #e8f4f8;
    border: 1px solid #c5e1ed;
}

.tunnel-status-box strong {
    display: inline-block;
    min-width: 6rem;
    color: var(--primary-color);
}

.tunnel-status-box .mono,
.tunnel-status-box [style*="monospace"] {
    font-family: ui-monospace, monospace;
    font-size: 0.9rem;
}

.tunnel-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

[data-theme="dark"] .tunnel-type-card {
    background: #2c3e50;
    border-color: #34495e;
}

[data-theme="dark"] .tunnel-type-card:hover {
    background: #34495e;
    border-color: var(--secondary-color);
}

[data-theme="dark"] .tunnel-type-card:has(input:checked) {
    background: rgba(52, 152, 219, 0.15);
    border-color: var(--secondary-color);
}

[data-theme="dark"] .tunnel-type-card-title {
    color: #ecf0f1;
}

[data-theme="dark"] .tunnel-type-card-desc {
    color: #bdc3c7;
}

[data-theme="dark"] .tunnel-options-panel {
    background: #2c3e50;
    border-color: #34495e;
    border-left-color: var(--secondary-color);
}

[data-theme="dark"] .tunnel-status-box {
    background: #1e3a5f;
    border-color: #2c3e50;
}

@media (max-width: 600px) {
    .tunnel-type-selector {
        grid-template-columns: 1fr;
    }
}
