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

.custom-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
}

.custom-dropdown .dropdown-toggle::after {
    display: none;
}

.custom-dropdown .dropdown-selected {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-dropdown .dropdown-arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transform: rotate(0deg);
}

.custom-dropdown .dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: 4px;
}

.custom-dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.custom-dropdown-menu .dropdown-item:hover,
.custom-dropdown-menu .dropdown-item:focus {
    background-color: var(--color-gray-50);
    outline: none;
}

.custom-dropdown-menu .dropdown-item:active {
    background-color: var(--color-gray-50);
    color: var(--color-text);
}

.custom-dropdown-menu .dropdown-item.active {
    background-color: var(--color-white);
    color: var(--color-success);
}
