
.custom-dropdown-container {
    position: relative;
    width: 100%;
}

/* We'll use the project's .gen-input class for the search field */
.custom-dropdown-search.gen-input {
    margin-bottom: 5px;
    padding-right: 4rem; /* Extra space for potential icons */
}

.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background-color: #2e2c2c;
    border: 1px solid #3a3a3a;
    border-radius: 15px; /* Matches more with the rounded style */
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-top: 5px;
}

.custom-dropdown-list.active {
    display: block;
}

.custom-dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    color: #ccc;
    transition: all 0.2s;
    font-size: 0.95rem;
    border-bottom: 1px solid #363434;
    display: flex;
    align-items: center;
}

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

.custom-dropdown-item:hover {
    background-color: #3d3d3d;
    color: #fff;
}

.custom-dropdown-item.parent {
    font-weight: 700;
    color: #fff;
    background-color: #252323;
    pointer-events: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding-top: 15px;
    padding-bottom: 10px;
}

.custom-dropdown-item.child {
    padding-left: 25px;
}

.child-indicator {
    color: #f52020; /* Brand red color */
    margin-right: 10px;
    font-weight: bold;
    font-family: monospace;
}

.custom-dropdown-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #1e1e1e;
}

.custom-dropdown-item.hidden {
    display: none !important;
}

/* Tag Selector (Leeftijdgroep) */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px;
}

.tag-chip {
    cursor: pointer;
    margin: 0;
}

.tag-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.tag-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #3a3a3a;
    background: #1e1e1e;
    color: #999;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s ease;
    user-select: none;
}

.tag-label:hover {
    border-color: #555;
    color: #ccc;
    background: #2a2a2a;
}

.tag-checkbox:checked + .tag-label {
    background: var(--color3, #f52020);
    border-color: var(--color3, #f52020);
    color: #fff;
    font-weight: 600;
}

/* Scrollbar styling */
.custom-dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.custom-dropdown-list::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}
