/* ═══════════════════════════════════════════════════════════════════
   PREMIUM GLASSMORPHIC DROPDOWN (Global System)
   ═══════════════════════════════════════════════════════════════════ */

/* Wrapper for the custom select component */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    cursor: pointer;
    width: 100%;
}

/* The actual clickable trigger */
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main, #fff);
    background: var(--bg-surface, rgba(15, 18, 26, 0.4)) !important;
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1)) !important;
    border-radius: var(--radius-lg, 12px) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
}

.custom-select-trigger:hover {
    border-color: var(--accent, #ffd700) !important;
    box-shadow: 0 0 15px rgba(var(--accent-rgb, 255, 215, 0), 0.1);
    background: var(--bg-surface-hover, rgba(255, 255, 255, 0.03)) !important;
}

.custom-select-trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 90%;
}

/* Premium Arrow */
.custom-select-trigger::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    transition: transform 0.3s ease, color 0.3s ease;
    opacity: 0.6;
    margin-left: 10px;
    color: var(--accent, #ffd700);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--accent, #ffd700) !important;
    box-shadow: 0 0 20px rgba(var(--accent-rgb, 255, 215, 0), 0.15);
    background: var(--bg-surface-active, rgba(255, 255, 255, 0.05)) !important;
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* The Options Dropdown Pane */
.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(10, 12, 18, 0.96) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: none;
    z-index: 99999;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.custom-select-wrapper.open .custom-options {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Individual Option */
.custom-option {
    padding: 10px 16px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 2px;
}

.custom-option:last-child {
    margin-bottom: 0;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 20px;
}

.custom-option.selected {
    background: var(--accent, #ffd700);
    color: #111; /* High contrast dark text */
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb, 255, 215, 0), 0.2);
}

.custom-option.selected:hover {
    background: var(--accent, #ffd700);
    color: #000;
    padding-left: 16px;
}

/* Custom Scrollbar for Dropdown */
.custom-options::-webkit-scrollbar {
    width: 5px;
}
.custom-options::-webkit-scrollbar-track {
    background: transparent;
}
.custom-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.custom-options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Support for Dropup */
.custom-select-wrapper.dropup .custom-options {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(10px);
}
.custom-select-wrapper.dropup.open .custom-options {
    transform: translateY(0);
}

/* ── Utility Classes ────────────────────────────────────────────── */
.no-clip {
    overflow: visible !important;
}
.card-no-clip {
    overflow: visible !important;
    position: relative;
}

