/* ==================== CUSTOM DROPDOWNS ==================== */

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

.custom-dropdown-trigger {
    width: 100%;
    background: #242429;
    border-radius: 4px;
    padding: 0.65rem 0.85rem;
    color: #fff;
    border: 1px solid #ff678800;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.custom-dropdown-trigger:hover {
    background-color: #2a2a2f;
    border: 1px solid #ff6788;
}

.custom-dropdown-trigger.active {
    border-color: #ff6788;
    box-shadow: 0 0 0 1px #ff6788;
}

.custom-dropdown-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.custom-dropdown-arrow {
    color: #b5bac1;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.custom-dropdown-trigger.active .custom-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: #2b2d31;
    border: 1px solid #1e1f22;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.custom-dropdown-menu.show {
    display: block;
}

.custom-dropdown-option {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #dbdee1;
    font-size: 0.875rem;
    font-weight: 500;
}

.custom-dropdown-option:hover {
    background: #3a3a3f;
}

.custom-dropdown-option.selected {
    background: rgba(255, 103, 136, 0.1);
    color: #ff6788;
}

.custom-dropdown-option.selected::before {
    content: '✓';
    position: absolute;
    right: 1rem;
    color: #ff6788;
    font-weight: 700;
}

/* Color Badge */
.color-badge {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Icon */
.dropdown-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* Role Icon Image */
.custom-dropdown-option img,
.custom-dropdown-value img {
    flex-shrink: 0;
    object-fit: cover;
}

/* Role Text Styling */
.custom-dropdown-option span[style*="color"],
.custom-dropdown-value span[style*="color"] {
    text-shadow: 0 0 8px currentColor;
    opacity: 0.95;
}

.custom-dropdown-option:hover span[style*="color"] {
    opacity: 1;
    text-shadow: 0 0 12px currentColor;
}

/* Scrollbar */
.custom-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
    background: #1e1f22;
    border-radius: 4px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: #3a3a3f;
    border-radius: 4px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #4a4a4f;
}
