/* ════════════════════════════════════════════
   CUSTOM SEARCHABLE DROPDOWN COMPONENT
   ════════════════════════════════════════════ */

.custom-dropdown {
    position: relative;
    width: 250px;
    font-family: var(--font-body);
}

.custom-dropdown__toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-dropdown__toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.custom-dropdown__toggle-icon {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.custom-dropdown.is-open .custom-dropdown__toggle-icon {
    transform: rotate(180deg);
}

.custom-dropdown.is-open .custom-dropdown__toggle {
    border-color: var(--accent-primary);
}

.custom-dropdown__menu {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    width: 100%;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.custom-dropdown.is-open .custom-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown__search-wrap {
    padding: var(--space-3);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 2;
}

.custom-dropdown__search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    color: var(--text-primary);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color var(--transition-fast);
}

.custom-dropdown__search:focus {
    border-color: var(--accent-primary);
}

.custom-dropdown__search::placeholder {
    color: var(--text-muted);
}

.custom-dropdown__list {
    max-height: 250px;
    overflow-y: auto;
    padding: var(--space-2);
}

/* Custom Scrollbar for Dropdown List */
.custom-dropdown__list::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown__list::-webkit-scrollbar-track {
    background: transparent;
}

.custom-dropdown__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.custom-dropdown__list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-dropdown__item {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.custom-dropdown__item.is-selected {
    background: rgba(201, 168, 76, 0.15);
    color: var(--accent-primary);
    font-weight: 600;
}

.custom-dropdown__item.is-hidden {
    display: none;
}