/**
 * Enhanced Multiselect Styles
 * 
 * Custom styling for multiselect dropdowns with additive behavior
 */

/* Enhanced multiselect styling */
select[multiple][data-enhanced-multiselect] {
    /* Make the control 50% bigger */
    min-height: 150px !important;
    height: auto !important;
    
    /* Make font 30% smaller than form fields (0.8rem * 0.7 = 0.56rem) */
    font-size: 0.7em !important;
    
    /* Improve readability with smaller font */
    line-height: 1.2 !important;
    
    /* Add some padding for better spacing */
    padding: var(--spacing-sm) !important;
    
    /* Ensure proper spacing between options */
    option {
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        line-height: 1.3 !important;
    }
    
    /* Improve visual feedback for selected options */
    option:checked {
        background-color: var(--primary-color) !important;
        color: white !important;
        font-weight: 500 !important;
    }
    
    /* Hover state for better UX */
    option:hover {
        background-color: var(--surface-selected) !important;
        cursor: pointer !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    select[multiple][data-enhanced-multiselect] {
        /* Slightly smaller on mobile but still bigger than default */
        min-height: 120px !important;
        font-size: 0.75em !important;
    }
}

/* Focus state for accessibility */
select[multiple][data-enhanced-multiselect]:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px var(--focus-ring-color) !important;
}