/* --- SELECT2-PREMIUM.CSS --- */
/* Design High-End for PhilaWeb Marketplace */

/* Selection Box (Single & Multiple) */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    min-height: 45px !important;
    height: auto !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    padding: 2px 8px !important;
    overflow: visible !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #3b82f6 !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    padding-left: 5px !important;
    font-weight: 500 !important;
    line-height: 40px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 4px 5px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
}

/* Premium Tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 4px 10px !important;
    margin: 2px 0 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 8px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    font-size: 14px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ff4d4d !important;
    background: transparent !important;
}

/* Dropdown Menu */
.select2-dropdown {
    background: #1e212d !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    overflow: hidden !important;
    z-index: 10002 !important;
    margin-top: 5px !important;
    animation: select2SlideDown 0.2s ease-out !important;
}

@keyframes select2SlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.select2-results__options {
    max-height: 350px !important;
    padding: 8px !important;
}

.select2-results__option {
    padding: 10px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s !important;
}

.select2-results__option--highlighted[aria-selected],
.select2-results__option[aria-selected="true"] {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #fff !important;
}

.select2-results__option--highlighted[aria-selected] {
    background: #3b82f6 !important;
}

/* Search box in dropdown */
.select2-search--dropdown {
    padding: 10px !important;
}

.select2-search--dropdown .select2-search__field {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 8px 12px !important;
}

/* Arrow Styling */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px !important;
    right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.4) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #3b82f6 transparent !important;
    border-width: 0 5px 6px 5px !important;
}

/* Custom Scrollbar */
.select2-results__options::-webkit-scrollbar {
    width: 6px;
}
.select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}
.select2-results__options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Fallback for standard selects in case Select2 fails */
select.select2-filter, 
select.select2-simple {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 10px 15px !important;
    min-height: 45px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    /* Removed appearance:none to restore native dropdown interaction if Select2 fails */
}

select.select2-filter:focus,
select.select2-simple:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}
