/* tuinbeurten-kalender/assets/kalender-style.css */
/* FIXED VERSION - Enhanced modal & interactive functionality */

/* ===== GENERAL STYLES ===== */
.tuinbeurten-kalender,
.kluitenduikers-kalender {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    color: #333;
}

/* ===== HEADER STYLES ===== */
.kalender-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kalender-logo {
    flex-shrink: 0;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.header-text {
    text-align: center;
}

.kalender-titel {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #2c5530;
}

.kalender-ondertitel {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.groep-legenda {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.groep-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
}

.groep-kleur {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}

.motivatie-tekst {
    font-style: italic;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
}

/* ===== KALENDER GRID ===== */
.kalender-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== MAAND STYLES ===== */
.maand-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

.maand-header {
    text-align: center;
    margin-bottom: 10px;
}

.maand-naam {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: #2c5530;
    text-transform: capitalize;
}

/* ===== DAG HEADERS ===== */
.dag-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 5px;
}

.dag-header {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    padding: 5px 2px;
}

/* ===== DAGEN GRID ===== */
.dagen-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dag-cel {
    min-height: 35px;
    padding: 3px;
    border: 1px solid #eee;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 11px;
    cursor: default;
    transition: all 0.2s ease;
}

.dag-cel.leeg {
    background: transparent;
    border: none;
}

.dag-nummer {
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin-bottom: 2px;
}

/* ===== ENHANCED INTERACTIVE FEATURES ===== */
.interactive-mode .dag-cel[data-clickable="true"] {
    cursor: pointer !important;
    transition: all 0.2s ease;
    border-color: #ccc;
    position: relative;
}

.interactive-mode .dag-cel[data-clickable="true"]:hover {
    background-color: #e8f4fd !important;
    border-color: #0073aa !important;
    box-shadow: 0 1px 3px rgba(0, 115, 170, 0.2);
    transform: translateY(-1px);
    z-index: 2;
}

.interactive-mode .dag-cel[data-clickable="true"]:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    background-color: #e8f4fd !important;
    border-color: #0073aa !important;
    z-index: 2;
}

.interactive-mode .dag-cel[data-clickable="true"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 115, 170, 0.3);
}

/* Enhanced clickable indicator */
.interactive-mode .dag-cel[data-clickable="true"]::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 4px;
    height: 4px;
    background: #0073aa;
    border-radius: 50%;
    opacity: 0.3;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.interactive-mode .dag-cel[data-clickable="true"]:hover::after {
    opacity: 0.8;
}

/* Day number sizing logic */
.dag-cel:not(.heeft-werkbeurt):not(.heeft-activiteit) .dag-nummer {
    font-size: 16px; /* Bigger for empty days in regular view */
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dag-cel.heeft-werkbeurt .dag-nummer,
.dag-cel.heeft-activiteit .dag-nummer {
    font-size: 11px; /* Smaller for werkbeurt days */
    background: none !important; /* No background in regular view */
    border-radius: 2px;
    padding: 1px 2px;
}

/* Hide day number when there are multiple badges */
.dag-cel.multiple-badges .dag-nummer {
    display: none !important;
}

/* ===== WERKBEURT INDICATORS ===== */
.werkbeurt-indicators,
.activiteit-indicators {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: center;
    flex: 1;
}

.werkbeurt-indicator,
.activiteit-indicator {
    display: flex;
    gap: 1px;
    justify-content: center;
    align-items: center;
}

.groep-badge {
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    min-width: 12px;
    text-align: center;
    line-height: 1;
    margin: 1px;
    display: inline-block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.evenement-badge {
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    min-width: 12px;
    text-align: center;
    line-height: 1;
    margin: 1px;
    display: inline-block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.algemeen-badge {
    color: white;
    background-color: #666;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* Eigen groep highlighting - ENHANCED */
.dag-cel.eigen-groep {
    background-color: #fff3cd !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 3px rgba(255, 193, 7, 0.5);
}

.interactive-mode .dag-cel.eigen-groep[data-clickable="true"]:hover {
    background-color: #fff3cd !important;
    border-color: #ff9800 !important;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4);
}

.werkbeurt-indicator.eigen-groep .groep-badge {
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* ===== ENHANCED MODAL STYLES ===== */
.werkbeurt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* Very high z-index */
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    z-index: 100000;
}

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

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -60%); 
        scale: 0.9;
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%); 
        scale: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-titel {
    margin: 0;
    color: #2c5530;
    font-size: 18px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.modal-close:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* ===== WERKBEURT/ACTIVITEIT DETAILS ===== */
.detail-sectie {
    margin-bottom: 20px;
}

.detail-sectie h4 {
    margin: 0 0 10px 0;
    color: #2c5530;
    font-size: 16px;
}

.detail-sectie p {
    margin: 5px 0;
    line-height: 1.5;
}

.detail-sectie.algemene-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.detail-sectie.evenement-info {
    border-left-color: #28a745;
}

.info-lijst {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.info-lijst li {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.4;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

.loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
}

.error-message .retry-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.error-message .retry-btn:hover {
    background: #c82333;
}

/* Enhanced activiteit selection */
.activiteit-selectie {
    text-align: center;
}

.activiteit-keuzes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.activiteit-keuze-btn {
    padding: 12px 16px !important;
    background: #0073aa !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
}

.activiteit-keuze-btn:hover {
    background: #005a87 !important;
    transform: translateY(-1px) !important;
}

/* ===== BODY MODAL OPEN STATE ===== */
body.modal-open {
    overflow: hidden !important;
    padding-right: 17px; /* Prevent layout shift from scrollbar */
}

/* ===== FOOTER STYLES ===== */
.kalender-footer {
    border-top: 2px solid #2c5530;
    padding-top: 20px;
    margin-top: 30px;
}

.regels-sectie {
    font-size: 12px;
    line-height: 1.4;
    color: #333;
}

.regel {
    margin-bottom: 8px;
}

.regel strong {
    color: #2c5530;
}

/* ===== PRINT MODE LAYOUT ===== */
.print-mode {
    width: 794px !important;
    height: 1123px !important;
    margin: 20px auto !important;
    padding: 30px 38px 30px 38px !important;
    background: white !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    position: relative !important;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    line-height: 1.0 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    display: flex !important;
    flex-direction: column !important;
}

/* PRINT MODE - Remove all interactive features */
.print-mode .dag-cel {
    cursor: default !important;
    transition: none !important;
}

.print-mode .dag-cel::after {
    display: none !important;
}

.print-mode .dag-cel:hover {
    background: white !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    transform: none !important;
}

.print-mode .kalender-header {
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
    position: relative;
    width: 100%;
    flex-shrink: 0 !important;
}

.print-mode .header-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px !important;
    margin-bottom: 10px !important;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
}

.print-mode .logo-image {
    height: 70px !important;
    width: auto !important;
    max-width: 112px !important;
    flex-shrink: 0;
}

.print-mode .header-text {
    text-align: left;
    flex: 0 0 auto;
    margin-right: auto;
}

.print-mode .kalender-titel {
    font-size: 28px !important;
    font-weight: bold !important;
    margin: 0 !important;
    color: #000 !important;
    line-height: 1.1 !important;
    font-family: 'Segoe UI', 'Trebuchet MS', 'Lucida Grande', sans-serif !important;
    letter-spacing: 0.3px !important;
}

.print-mode .kalender-ondertitel {
    font-size: 19px !important;
    margin: 2px 0 0 0 !important;
    color: #444 !important;
    line-height: 1.2 !important;
    font-family: 'Segoe UI', 'Trebuchet MS', 'Lucida Grande', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
}

.print-mode .groep-legenda {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px !important;
    margin: 0 !important;
    font-size: 12px !important;
    width: 170px;
    padding: 8px 10px;
    border: 1px solid #000 !important;
    background: white;
}

.print-mode .groep-info {
    display: flex;
    align-items: center;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    white-space: nowrap;
    padding: 1px 0;
    background: white;
    border: none;
    margin: 0;
    line-height: 1.2;
    width: 100%;
}

.print-mode .groep-kleur {
    width: 12px !important;
    height: 12px !important;
    border-radius: 1px !important;
    border: 1px solid #000 !important;
    flex-shrink: 0;
}

.print-mode .motivatie-tekst {
    display: none !important;
}

.print-mode .kalender-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 8px !important;
    height: 745px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
}

.print-mode .maand-container {
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    padding: 4px !important;
    background: #fafafa !important;
    height: 178px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.print-mode .maand-header {
    text-align: center;
    margin-bottom: 4px !important;
    flex-shrink: 0;
}

.print-mode .maand-naam {
    font-size: 20px !important;
    font-weight: bold !important;
    margin: 0 0 2px 0 !important;
    color: #000 !important;
    text-transform: capitalize;
    line-height: 1.0 !important;
}

.print-mode .dag-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px !important;
    margin-bottom: 2px !important;
    flex-shrink: 0;
}

.print-mode .dag-header {
    text-align: center;
    font-size: 12px !important;
    font-weight: bold !important;
    color: #333 !important;
    padding: 1px !important;
    line-height: 1.0 !important;
}

.print-mode .dagen-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px !important;
    flex: 1;
    height: 137px !important;
}

.print-mode .dag-cel {
    min-height: 19px !important;
    max-height: 19px !important;
    padding: 1px !important;
    border: 1px solid #ccc !important;
    background: white !important;
    font-size: 14px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    line-height: 1.0 !important;
}

.print-mode .dag-cel.leeg {
    background: transparent !important;
    border: none !important;
}

/* Print mode day numbers - responsive sizing based on badges */
.print-mode .dag-cel:not(.heeft-werkbeurt):not(.heeft-activiteit) .dag-nummer {
    font-size: 18px !important;
    height: auto !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

/* Show day number only when there's 1 badge, hide when multiple badges */
.print-mode .dag-cel.heeft-werkbeurt .dag-nummer,
.print-mode .dag-cel.heeft-activiteit .dag-nummer {
    font-size: 10px !important;
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    background: none !important;
    border-radius: 1px;
    padding: 0.5px 1px !important;
    margin: 0 !important;
    line-height: 1.0 !important;
    z-index: 2;
    text-align: right !important;
}

/* Hide day number when there are multiple badges in print mode */
.print-mode .dag-cel.multiple-badges .dag-nummer {
    display: none !important;
}

.print-mode .werkbeurt-indicators,
.print-mode .activiteit-indicators {
    display: flex;
    flex-direction: row !important;
    gap: 2px !important;
    justify-content: flex-start !important;
    align-items: flex-end !important;
    flex: 1;
    width: 100%;
    height: 11px !important;
    margin-top: 1px !important;
}

.print-mode .werkbeurt-indicator,
.print-mode .activiteit-indicator {
    display: flex;
    gap: 1px !important;
    justify-content: flex-start !important;
    align-items: flex-end !important;
    height: 100%;
}

.print-mode .groep-badge,
.print-mode .evenement-badge {
    color: #000 !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 1px !important;
    border-radius: 2px !important;
    min-width: 7px !important;
    max-width: 9px !important;
    text-align: center;
    line-height: 1.0 !important;
    margin: 0.5px !important;
    display: inline-block !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0.5px solid #000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: 11px !important;
}

/* Specific styling for werkbeurt badges to keep colored backgrounds */
.print-mode .groep-badge:not(.evenement-badge) {
    color: white !important;
    background-color: inherit !important;
}

.print-mode .groep-badge[style*="background-color: #1976d2"]:not(.evenement-badge) { 
    background-color: #1976d2 !important; 
    color: white !important;
}
.print-mode .groep-badge[style*="background-color: #388e3c"]:not(.evenement-badge) { 
    background-color: #388e3c !important; 
    color: white !important;
}
.print-mode .groep-badge[style*="background-color: #f57c00"]:not(.evenement-badge) { 
    background-color: #f57c00 !important; 
    color: white !important;
}
.print-mode .groep-badge[style*="background-color: #c2185b"]:not(.evenement-badge) { 
    background-color: #c2185b !important; 
    color: white !important;
}

.print-mode .kalender-footer {
    position: static !important;
    width: 100% !important;
    border-top: 2px solid #000 !important;
    padding-top: 10px !important;
    margin-top: auto !important;
    background: white !important;
    flex-shrink: 0 !important;
    page-break-inside: avoid !important;
}

.print-mode .regels-sectie {
    font-size: 14px !important;
    line-height: 1.2 !important;
    color: #000 !important;
    columns: 1 !important;
}

.print-mode .regel {
    margin-bottom: 6px !important;
    text-align: justify;
    hyphens: auto;
}

.print-mode .regel strong {
    color: #000 !important;
    font-weight: bold !important;
}

/* ===== ACTUAL PRINT STYLES ===== */
@media print {
    #wpwrap, #adminmenumain, #wpadminbar, .wrap > h1, 
    .kalender-admin-header, .kalender-tabs, .tab-header, 
    .print-actions, .nav-tab-wrapper, .shortcode-example,
    .update-nag, .notice, .error, .updated,
    .tuinbeurten-admin-wrap, .tuinbeurten-header,
    .tuinbeurten-stats-panel, .panel-header, .shortcode-section,
    .kalender-preview-container, .print-preview-mode {
        display: none !important;
    }
    
    @page {
        size: A4 portrait;
        margin: 8mm 10mm 8mm 10mm;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
        font-family: Arial, sans-serif !important;
        font-size: 9pt !important;
        line-height: 1.1 !important;
        color: #000 !important;
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    .print-mode {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        font-size: 8pt !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh !important;
    }
    
    .print-mode .kalender-header {
        flex-shrink: 0 !important;
    }
    
    .print-mode .kalender-grid {
        flex-shrink: 0 !important;
        height: auto !important;
    }
    
    .print-mode .kalender-footer {
        position: static !important;
        width: 100% !important;
        border-top: 1px solid #000 !important;
        padding-top: 6px !important;
        margin-top: auto !important;
        background: white !important;
        page-break-inside: avoid !important;
        flex-shrink: 0 !important;
    }
    
    .print-mode .kalender-titel {
        font-size: 17pt !important;
        font-family: 'Segoe UI', 'Trebuchet MS', 'Lucida Grande', sans-serif !important;
        letter-spacing: 0.3px !important;
    }
    
    .print-mode .kalender-ondertitel {
        font-size: 12pt !important;
        font-family: 'Segoe UI', 'Trebuchet MS', 'Lucida Grande', sans-serif !important;
        font-weight: 500 !important;
        letter-spacing: 0.2px !important;
        color: #444 !important;
    }
    
    .print-mode .groep-info {
        font-size: 7pt !important;
    }
    
    .print-mode .maand-naam {
        font-size: 9pt !important;
    }
    
    .print-mode .dag-nummer {
        font-size: 7pt !important;
    }
    
    .print-mode .regels-sectie {
        font-size: 9pt !important;
        line-height: 1.1 !important;
    }
    
    .print-mode * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1000px) {
    .kalender-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .groep-legenda {
        gap: 15px;
    }
    
    .header-top {
        gap: 20px;
    }
    
    .logo-image {
        height: 70px;
    }
}

@media (max-width: 600px) {
    .kalender-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .groep-legenda {
        flex-direction: column;
        gap: 10px;
    }
    
    .kalender-titel {
        font-size: 22px;
    }
    
    .kalender-ondertitel {
        font-size: 16px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-image {
        height: 60px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Mobile modal improvements */
    .werkbeurt-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
}

/* ===== ACCESSIBILITY ===== */
.dag-cel:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.modal-close:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* ===== CURRENT MONTH HIGHLIGHTING ===== */
.current-month {
    border-color: #2c5530 !important;
    background-color: #f0f8f0 !important;
}

.current-month .maand-naam {
    color: #2c5530 !important;
    font-weight: bold !important;
}

/* ===== PRINT BUTTON STYLES ===== */
.kalender-actions {
    margin: 20px 0;
    text-align: center;
}

.print-kalender:hover {
    background-color: #1e3a22 !important;
}

/* GEFIXTE MODAL STYLES - Voeg toe aan kalender-style.css */

/* Verbeterde modal positioning en z-index management */
.werkbeurt-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important; /* Zeer hoge z-index voor WordPress compatibiliteit */
    display: none;
    font-family: Arial, sans-serif;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 500px