/* Custom Select/Combobox Styles */
.form-select {
    position: relative;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
}

.form-select:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.form-select:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-select option {
    background: rgba(20, 20, 25, 0.95);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border: none;
}

.form-select option:hover,
.form-select option:focus {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

.form-select option:checked {
    background: rgba(212, 175, 55, 0.3);
    color: #d4af37;
    font-weight: 600;
}

/* Custom dropdown for better cross-browser support */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
    min-height: 44px;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.custom-select.open .custom-select-trigger {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.custom-select-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    color: #d4af37;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.custom-select-option.selected {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-weight: 600;
}

/* Light theme adjustments */
[data-theme="light"] .form-select {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="light"] .form-select:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

[data-theme="light"] .form-select:focus {
    background: rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

[data-theme="light"] .form-select option {
    background: rgba(245, 242, 232, 0.95);
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .form-select option:hover,
[data-theme="light"] .form-select option:focus {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

[data-theme="light"] .custom-select-trigger {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .custom-select-trigger:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

[data-theme="light"] .custom-select.open .custom-select-trigger {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

[data-theme="light"] .custom-select-options {
    background: rgba(245, 242, 232, 0.95);
    border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .custom-select-option {
    color: rgba(0, 0, 0, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .custom-select-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

[data-theme="light"] .custom-select-option.selected {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-select,
    .custom-select-trigger {
        padding: 0.625rem 2.25rem 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .custom-select-option {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
}