/* Custom Multiselect v2 - Simplified Styles */

.custom-multiselect-wrapper {
    position: relative;
}

.custom-multiselect-display {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 12px;
    cursor: pointer;
    gap: 6px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.custom-multiselect-display:hover {
    border-color: #cbd5e1;
}

.custom-multiselect-display.has-selections {
    align-items: flex-start;
}

.custom-multiselect-display .selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

.custom-multiselect-display.has-selections .selected-tags {
    margin-top: 2px;
}

.custom-multiselect-display .placeholder {
    color: #666;
    flex: 1;
}

.custom-multiselect-display .chevron-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-multiselect-display.has-selections .chevron-icon {
    margin-top: 2px;
}

.custom-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

.multiselect-options {
    padding: 6px 0;
}

.multiselect-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.875rem;
}

.multiselect-option:hover {
    background-color: #f1f5f9;
}

.multiselect-option input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #3b82f6;
}

.multiselect-option span {
    flex: 1;
}

/* Tags styling */
.custom-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.custom-tag-badge .remove-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.15s ease;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-tag-badge .remove-btn:hover {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .custom-multiselect-display {
        min-height: 44px;
        padding: 8px 12px;
    }
    
    .multiselect-option {
        padding: 12px;
        font-size: 1rem;
    }
}