/* Modern Custom Select Styles - No Animation */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px !important;
    font-size: 12px !important;
    font-weight: 400;
    color: var(--text, #e6edf3);
    background: var(--panel2, #262626);
    border: 1px solid var(--border-inner, #404040);
    border-radius: 4px;
    cursor: pointer;
    /* Removed transition */
    height: 28px !important;
    min-height: 28px !important;
    line-height: normal !important;
    box-sizing: border-box !important;
}

.custom-select__trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
    margin-top: 1px;
}

/* Hover State - Only Border Color */
.custom-select__trigger:hover {
    border-color: #fab387;
    background: #2a2a2a;
}

.custom-select.open .custom-select__trigger {
    border-color: #fab387;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #2a2a2a;
}

.custom-select__options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #fab387;
    border-top: 0;
    background: var(--panel, #121212);
    /* Removed translate/scale transition */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    /* No translateY */
}

/* Instant display on open */
.custom-select.open .custom-select__options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-option {
    position: relative;
    display: block;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--muted, #b3b3b3);
    cursor: pointer;
    /* Removed transition */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    line-height: normal;
}

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

.custom-option:hover {
    background-color: transparent;
    /* No background change? User said click animation. Hover is okay? */
    /* Let's keep hover minimal */
    color: #fab387;
    /* Removed padding-left animation */
}

.custom-option.selected {
    color: #fab387;
    font-weight: 500;
}

/* Arrow Icon */
.arrow {
    position: relative;
    height: 5px;
    width: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.arrow::before,
.arrow::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 1.5px;
    background-color: var(--muted, #b3b3b3);
    /* Removed transition */
    border-radius: 1px;
}

.arrow::before {
    transform: rotate(45deg) translateX(1.5px);
    right: 50%;
}

.arrow::after {
    transform: rotate(-45deg) translateX(-1.5px);
    left: 50%;
}

.custom-select:hover .arrow::before,
.custom-select:hover .arrow::after {
    background-color: #fab387;
}

.open .arrow::before {
    transform: rotate(-45deg) translateX(1.5px);
}

.open .arrow::after {
    transform: rotate(45deg) translateX(-1.5px);
}

/* Scrollbar */
.custom-select__options::-webkit-scrollbar {
    width: 4px;
}

.custom-select__options::-webkit-scrollbar-track {
    background: var(--panel, #121212);
}

.custom-select__options::-webkit-scrollbar-thumb {
    background: var(--border-inner, #404040);
    border-radius: 2px;
}

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