/* ===== General Glass Panel Style ===== */
/*.glass-panel {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: 1rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}*/

/* ===== Custom Select Wrapper ===== */
.custom-select {
    position: relative;
    padding: 10px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    color: white;
    background-color: #333;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, white 50%), linear-gradient(135deg, white 50%, transparent 50%);
    background-position: calc(100% - 18px) center, calc(100% - 13px) center;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

    .custom-select:hover {
        background-color: #444;
        border-color: rgba(255, 255, 255, 0.4);
    }

/* ===== Selected Option ===== */
.selected-option {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Dropdown List ===== */
.options-list {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 100%;
    padding: 4px 0;
    margin: 0;
    border-radius: 16px 16px 0 0;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(80%);
    pointer-events: none;
    transition: all 0.2s ease;
    /* Remove default list styles — not needed for div */
    list-style: none;
    display: flex;
    flex-direction: column;
}

    .options-list.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Frosted glass effect ONLY if .glass-panel class is present */
    .options-list.glass-panel {
        background-color: rgba(51, 51, 51, 0.35);
        backdrop-filter: blur(16px) saturate(200%);
        -webkit-backdrop-filter: blur(16px) saturate(200%);
    }

/* ===== Option Items ===== */
.option-item {
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    /*display: block;*/ /* spans are inline by default, make block for padding */
    user-select: none;
}

    .option-item:first-child {
        border-radius: 16px 16px 0 0;
    }

    .option-item:last-child {
        border-radius: 0 0 0 0;
    }

    .option-item:focus, .option-item:hover {
        outline: none;
        background-color: rgba(13, 110, 253, 0.1);
    }
