/* ---------- Custom Dropdowns ---------- */

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown label {
    display: block;
    padding: 3% 0;
}

.dropdown .dropdown-button {
    width: 100%;
    padding: 5% 10%;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    background-color: var(--bg-input);
    color: var(--text-input);
    border: 1px solid var(--border-input);
}

.dropdown .dropdown-button:focus {
    outline: none;
}

.dropdown .dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 2% 8%;
    background-color: var(--bg-input);
    color: var(--text-input);
    border: 1px solid var(--border-input);
}

/* Open state */
.dropdown.open .dropdown-options {
    max-height: 500px;
    opacity: 1;
}

/* Option hover */
.dropdown .dropdown-options label:hover,
.dropdown .dropdown-options label:focus {
    background-color: var(--bg-option-hover);
    color: var(--text-option-hover);
}

/* Hide native radio/checkbox */
.dropdown input[type="radio"],
.dropdown input[type="checkbox"] {
    display: none;
}