.custom-select{
    position: relative;
    font-family: system-ui, sans-serif;
}

.custom-select-lg{
    min-width: 200px;
}
.custom-select-md{
    min-width: 160px;
}
.custom-select-sm{
    min-width: 120px;
}

.custom-select-primary {
    --bg: var(--color-primary-600);
    --hover:var(--color-primary-800);
    --active: var(--color-primary-400);
    --text: var(--color-white);
    --border: var(--color-transparent);
    --radius: var(--radius-md);
    
    
}

.custom-select-secondary{
 --bg: var(--color-secondary-600);
    --hover:var(--color-secondary-800);
    --active: var(--color-secondary-400);
    --text: var(--color-white);
    --border: var(--color-transparent);
    --radius: var(--radius-md);
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: 0.2s;
}

.select-trigger:hover {
    border-color: var(--active);
}

.arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.custom-select.open .arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.2s;
    z-index: 10;
}

.custom-select.open .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-options li {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: 0.15s;
}

.select-options li:hover {
    background: var(--hover);
}

.select-options li.selected {
    background: var(--active);
}