/* Desktop Checkbox Visibility Fix */
/* Specifieke fix voor mogelijkheden/diensten checkboxen die half zichtbaar zijn op desktop */
/* Alleen toegepast op de home pagina filter sectie */

@media (min-width: 992px) {
    /* === BELANGRIJK: CHECKBOX FUNCTIONALITEIT HERSTELLEN === */
    /* Zorg ervoor dat checkboxes hun standaard gedrag behouden */
    input[type="checkbox"].diensten-checkbox {
        appearance: auto !important;
        -webkit-appearance: checkbox !important;
        -moz-appearance: checkbox !important;
    }
    
    /* Hoofdcontainer voor diensten checkboxen - compacter */
    .sidebar-container .border.rounded.p-2 .form-check-sm,
    .sidebar-section .border.rounded.p-2 .form-check-sm,
    .col-lg-4 .border.rounded.p-2 .form-check-sm {
        display: flex !important;
        align-items: center !important;
        min-height: 1.5rem !important;
        padding: 0.1rem 0 !important;
        margin-bottom: 0.25rem !important;
        position: relative;
    }
    
    /* Checkbox zelf - zorg ervoor dat deze volledig zichtbaar is EN functioneel blijft */
    .sidebar .border.rounded.p-2 .form-check-sm .form-check-input,
    .home-filter .border.rounded.p-2 .form-check-sm .form-check-input,
    .filter-section .border.rounded.p-2 .form-check-sm .form-check-input,
    .diensten-checkbox {
        width: 1.25rem !important;
        height: 1.25rem !important;
        margin-top: 0 !important;
        margin-right: 0.75rem !important;
        border: 2px solid #d1d5db !important;
        border-radius: 3px !important;
        flex-shrink: 0 !important;
        position: relative !important;
        vertical-align: top !important;
        transform: none !important;
        /* Verwijder background-color override om functionaliteit te behouden */
        cursor: pointer !important;
    }
    
    /* Label styling - verkleind voor compactere weergave met meer specifieke selectors */
    .sidebar-container .border.rounded.p-2 .form-check-sm .form-check-label,
    .sidebar-section .border.rounded.p-2 .form-check-sm .form-check-label,
    .col-lg-4 .border.rounded.p-2 .form-check-sm .form-check-label {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        cursor: pointer !important;
        color: #374151 !important;
        flex: 1 !important;
        padding-top: 0.1rem !important;
    }
    
    /* Checked state styling - gebruik Bootstrap default gedrag */
    .sidebar .diensten-checkbox:checked,
    .home-filter .diensten-checkbox:checked,
    .filter-section .diensten-checkbox:checked,
    .diensten-checkbox:checked {
        background-color: #007bff !important;
        border-color: #007bff !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
    
    .sidebar .diensten-checkbox:checked + .form-check-label,
    .home-filter .diensten-checkbox:checked + .form-check-label,
    .filter-section .diensten-checkbox:checked + .form-check-label {
        color: #007bff !important;
        font-weight: 600 !important;
    }
    
    /* Focus styling */
    .sidebar .diensten-checkbox:focus,
    .home-filter .diensten-checkbox:focus,
    .filter-section .diensten-checkbox:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
        outline: none !important;
    }
    
    /* Hover effect voor betere UX - verbeterde interactiviteit */
    .sidebar .border.rounded.p-2 .form-check-sm:hover .form-check-input:not(:checked),
    .home-filter .border.rounded.p-2 .form-check-sm:hover .form-check-input:not(:checked),
    .filter-section .border.rounded.p-2 .form-check-sm:hover .form-check-input:not(:checked) {
        border-color: #007bff !important;
        background-color: #f8f9fa !important;
    }
    
    .sidebar .border.rounded.p-2 .form-check-sm:hover .form-check-label,
    .home-filter .border.rounded.p-2 .form-check-sm:hover .form-check-label,
    .filter-section .border.rounded.p-2 .form-check-sm:hover .form-check-label {
        color: #007bff !important;
    }
    
    /* Zorg ervoor dat geclickte checkboxes hun checked state behouden */
    .diensten-checkbox:checked:hover {
        background-color: #0056b3 !important;
        border-color: #0056b3 !important;
    }
    
    /* Groep titels styling - verkleind met minder witruimte */
    .sidebar-container .border.rounded.p-2 .mb-2 strong.small.text-muted,
    .sidebar-section .border.rounded.p-2 .mb-2 strong.small.text-muted,
    .col-lg-4 .border.rounded.p-2 .mb-2 strong.small.text-muted {
        font-size: 0.75rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #6b7280 !important;
        font-weight: 700 !important;
        margin-bottom: 0.25rem !important;
        margin-top: 0.25rem !important;
        display: block !important;
    }
    
    /* Container overflow en scrolling - compacter */
    .sidebar-container .border.rounded.p-2,
    .sidebar-section .border.rounded.p-2,
    .col-lg-4 .border.rounded.p-2 {
        padding: 0.5rem !important;
        max-height: 350px !important;
        overflow-y: auto !important;
        border: 2px solid #e5e7eb !important;
    }
    
    /* ===== ZOEKBALK TEKSTGROOTTE VERKLEINEN ===== */
    /* Sidebar zoekbalk input field - extra klein met minder padding */
    .col-lg-4 .form-control-sm,
    .sidebar-container .form-control-sm,
    .sidebar-section .form-control-sm {
        font-size: 0.75rem !important;
        padding: 0.15rem 0.3rem !important;
    }
    
    /* Sidebar form labels verkleinen - extra klein met meer specifieke selectors */
    .col-lg-4 .form-label.small,
    .sidebar-container .form-label.small,
    .sidebar-section .form-label.small {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.2rem !important;
    }
    
    /* Placeholder tekst verkleinen - extra klein */
    .col-lg-4 .form-control-sm::placeholder,
    .sidebar-container .form-control-sm::placeholder,
    .sidebar-section .form-control-sm::placeholder {
        font-size: 0.7rem !important;
        color: #9ca3af !important;
    }
    
    /* Select dropdowns ook verkleinen - extra klein */
    .col-lg-4 select.form-control-sm,
    .sidebar-container select.form-control-sm,
    .sidebar-section select.form-control-sm {
        font-size: 0.75rem !important;
    }
    
    /* Range slider labels - extra klein */
    .col-lg-4 .form-text,
    .sidebar-container .form-text,
    .sidebar-section .form-text {
        font-size: 0.55rem !important;
    }
    
    /* Button tekst in sidebar - extra klein met minder padding */
    .col-lg-4 .btn-sm,
    .sidebar-container .btn-sm,
    .sidebar-section .btn-sm {
        font-size: 0.7rem !important;
        padding: 0.15rem 0.3rem !important;
    }
    
    /* Help tekst en small tekst alleen in sidebar verkleinen (NIET in footer!) */
    .col-lg-4 .sidebar-container small,
    .col-lg-4 .form-text small,
    .sidebar-container .form-text small,
    .sidebar-section .form-text small {
        font-size: 0.55rem !important;
    }
    
    /* Sidebar witruimte verkleinen voor compactere layout */
    .col-lg-4 .mb-3,
    .sidebar-container .mb-3,
    .sidebar-section .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Form labels margins verkleinen */
    .col-lg-4 .form-label,
    .sidebar-container .form-label,
    .sidebar-section .form-label {
        margin-bottom: 0.15rem !important;
    }
    
    /* Extra specifieke selectors voor alle tekst in de sidebar */
    .col-lg-4 .sidebar-container * {
        font-size: 0.75rem !important;
    }
    
    /* Maar laat headings hun relatieve grootte behouden */
    .col-lg-4 .sidebar-container h6 {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* En zorg dat icons hun grootte behouden */
    .col-lg-4 .sidebar-container i {
        font-size: inherit !important;
    }
    
    /* Input groups compacter maken */
    .col-lg-4 .input-group-sm,
    .sidebar-container .input-group-sm,
    .sidebar-section .input-group-sm {
        margin-bottom: 0.5rem !important;
    }
    
    /* Range sliders compacter */
    .col-lg-4 .mb-2,
    .sidebar-container .mb-2,
    .sidebar-section .mb-2 {
        margin-bottom: 0.5rem !important;
    }
    
    /* Algemene witruimte verkleining */
    .col-lg-4 .mt-3,
    .sidebar-container .mt-3,
    .sidebar-section .mt-3 {
        margin-top: 0.75rem !important;
    }
    
    /* Small text meer compact */
    .col-lg-4 .form-text,
    .sidebar-container .form-text,
    .sidebar-section .form-text {
        margin-top: 0.1rem !important;
        margin-bottom: 0.25rem !important;
    }
}

/* Extra large screens - nog meer ruimte */
@media (min-width: 1400px) {
    .sidebar .border.rounded.p-2 .form-check-sm .form-check-input,
    .home-filter .border.rounded.p-2 .form-check-sm .form-check-input,
    .filter-section .border.rounded.p-2 .form-check-sm .form-check-input,
    .diensten-checkbox {
        width: 1.4rem !important;
        height: 1.4rem !important;
        margin-right: 1rem !important;
    }
    
    .sidebar-container .border.rounded.p-2 .form-check-sm .form-check-label,
    .sidebar-section .border.rounded.p-2 .form-check-sm .form-check-label,
    .col-lg-4 .border.rounded.p-2 .form-check-sm .form-check-label {
        font-size: 0.85rem !important;
    }
    
    .sidebar-container .border.rounded.p-2,
    .sidebar-section .border.rounded.p-2,
    .col-lg-4 .border.rounded.p-2 {
        padding: 0.75rem !important;
        max-height: 400px !important;
    }
    
    /* Zoekbalk tekst iets groter op extra large screens maar nog steeds compact */
    .col-lg-4 .form-control-sm,
    .sidebar-container .form-control-sm,
    .sidebar-section .form-control-sm {
        font-size: 0.8rem !important;
        padding: 0.2rem 0.35rem !important;
    }
    
    .col-lg-4 .form-label.small,
    .sidebar-container .form-label.small,
    .sidebar-section .form-label.small {
        font-size: 0.75rem !important;
    }
}

/* ===== FOOTER TEXT RESTORATION ===== */
/* Zorg ervoor dat footer tekst leesbaar blijft ondanks sidebar optimizations */
@media (min-width: 992px) {
    /* Footer tekst moet normale grootte behouden */
    footer small,
    footer .small {
        font-size: 1rem !important; /* Normale tekst grootte */
    }
    
    /* Footer links moeten leesbaar blijven */
    footer a {
        font-size: 1rem !important; /* Normale link grootte */
    }
    
    /* Footer copyright tekst */
    footer .col-lg-4 span.small {
        font-size: 1rem !important;
    }
    
    /* Footer navigation links */
    footer nav.small,
    footer nav.small a {
        font-size: 1rem !important;
    }
    
    /* Footer headings behouden hun grootte */
    footer h5,
    footer h6 {
        font-size: inherit !important;
    }
    
    /* Footer paragrafen */
    footer p {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Footer list items */
    footer ul li {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    /* Footer warning box text */
    footer .alert small {
        font-size: 1rem !important;
    }
}
