/* Importeer het strakke 'Inter' lettertype */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #f1f5f9; 
    color: #334155; 
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px; /* Iets compacter */
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01); 
}

h1 { text-align: center; color: #0f172a; margin-top: 0; font-weight: 600; }
.intro-tekst { text-align: center; color: #64748b; margin-bottom: 20px; font-size: 1.05em; }

/* SLIMME KOLOMMEN (Perfect voor 3 naast elkaar op 1080p) */
.filters {
    column-width: 330px;
    column-gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.categorie {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px; /* Compacter: Minder witruimte tussen de blokken */
    break-inside: avoid;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px; /* Compacter: Minder ruimte in het blok zelf */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); 
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.categorie:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

h3 {
    margin-top: 0;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 6px; /* Compacter */
    margin-bottom: 8px;  /* Compacter */
    font-size: 1.15em;
    font-weight: 600;
}

.filter-regel {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 2px; /* Compacter: Regels strak op elkaar */
    width: 100%;
    padding: 2px 4px; /* Compacter: Minder hoge grijze hover-balk */
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.filter-regel:hover {
    background-color: #f8fafc; 
}

.uitsluiten-label {
    flex-shrink: 0;
    margin-right: 6px; /* Compacter: Dichter op het vinkje */
    cursor: pointer;
    background-color: #fef2f2;
    color: #ef4444; 
    padding: 2px 6px; /* Compacter rood knopje */
    border-radius: 6px;
    border: 1px solid #fecaca;
    font-size: 0.85em;
    transition: all 0.2s;
}

.uitsluiten-label:hover {
    background-color: #fee2e2;
}

/* Verberg het fysieke uitsluiten-vinkje in de rode tag */
.uitsluiten-vinkje {
    display: none; 
}

/* Kleur de rode tag in als hij actief is */
.uitsluiten-label:has(.uitsluiten-vinkje:checked) {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Frisse blauwe vinkjes */
input[type="checkbox"] {
    margin-right: 6px; /* Compacter: Dichter op de tekst */
    accent-color: #3b82f6; 
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-regel > label:nth-of-type(2) {
    cursor: pointer;
    margin-bottom: 0;
    font-size: 0.95em;
    flex-grow: 1;
    white-space: normal;
    line-height: 1.2; /* Compacter: Minder hoge tekstregels */
}

/* Styling van de invoervakjes */
.input-groep {
    flex-shrink: 0;
    margin-left: 8px; /* Compacter */
    display: flex;
    align-items: center;
    gap: 4px; /* Compacter */
}

input[type="number"] {
    padding: 2px 6px; /* Compacter invoerveld */
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 45px;
    font-size: 0.9em;
    font-family: inherit;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); 
}

/* Dropdown menu styling voor de types */
.type-dropdown {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px; /* Compacter */
}

.type-dropdown summary {
    cursor: pointer;
    font-weight: 500;
    color: #3b82f6;
    outline: none;
}

.dropdown-lijst {
    margin-top: 6px; /* Compacter */
    max-height: 220px;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
    padding-top: 6px; /* Compacter */
}

/* Zachte, dunnere scrollbalk voor de dropdown lijst */
.dropdown-lijst::-webkit-scrollbar { width: 6px; }
.dropdown-lijst::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px;}
.dropdown-lijst::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px;}

/* Zwevende resultatenbalk onderaan */
.resultaat-sectie {
    text-align: center;
    background-color: #eff6ff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    margin-top: 25px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.resultaat-sectie h2 { color: #1d4ed8; margin-top: 0; font-size: 1.25em; margin-bottom: 12px;}

#output-code {
    width: 90%;
    padding: 12px;
    font-size: 1.1em;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    text-align: center;
    background-color: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-family: monospace; 
    font-weight: 600;
    transition: all 0.2s;
}

#output-code:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.knoppen-groep {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

#kopieer-knop, #reset-knop {
    padding: 10px 20px;
    font-size: 0.95em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

#kopieer-knop { background-color: #10b981; color: white; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2); }
#kopieer-knop:hover { background-color: #059669; transform: translateY(-1px); }

#reset-knop { background-color: #ef4444; color: white; box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2); }
#reset-knop:hover { background-color: #dc2626; transform: translateY(-1px); }

/* --- Mobiele weergave --- */
@media (max-width: 768px) {
    .container { padding-bottom: 120px; padding-top: 15px; }
    .filters { column-width: 100%; }
    
    .resultaat-sectie {
        position: sticky;
        bottom: 10px;
        z-index: 100;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
        padding: 15px;
    }
    .knoppen-groep { gap: 10px; }
    #kopieer-knop, #reset-knop { padding: 10px 15px; font-size: 0.9em; flex: 1; }
}