/* Dropdown Select Fix */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Option styling */
select option {
    background-color: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 8px 12px;
    border: none;
    font-size: 14px;
    line-height: 1.5;
}

select option:hover {
    background-color: rgba(59, 130, 246, 0.8);
}

select option:checked {
    background-color: rgba(59, 130, 246, 0.9);
    color: white;
}

/* Ensure dropdown is visible on all browsers */
select::-ms-expand {
    display: none;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    select {
        text-indent: 0.01px;
        text-overflow: '';
    }
    
    select option {
        background-color: #1e293b;
        color: white;
    }
}

/* Webkit specific fixes */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    select option {
        background-color: #1e293b;
        color: white;
    }
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Better touch target */
    }
    
    select option {
        font-size: 16px;
        padding: 12px;
    }
}

