.select2-container .select2-search--inline .select2-search__field {
    font-family: 'Inter', sans-serif;
}

/* Base styles for multiple select container */
.select2-container .select2-selection--multiple {
    min-height: 2.5rem;
    border: 1px solid #DBDFE9;
    border-radius: 0.375rem;
    background-color: #FCFCFC;
    padding: 3px 8px 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* Apply additional padding when the icon is present */
.relative .select2-icon+select+.select2-container .select2-selection--multiple {
    padding-left: 2rem;
}

.select2-container .select2-selection--multiple:hover {
    border-color: #99A1B7;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    color: #9ca3af;
    margin-top: 2px;
}

/* Individual selected choice */
.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4B5675;
}

/* Remove button hover */
.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ef4444;
}

/* Search field */
.select2-container .select2-selection--multiple .select2-search__field {
    border: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4B5675;
    background: transparent;
    /* Add this line */
}

/* Placeholder styling for Select2 multiple select */
.select2-container .select2-selection--multiple .select2-search__field::placeholder {
    color: #9A9CAE;
    font-weight: 500;
}

/* Dark mode placeholder for Select2 multiple select */
.dark .select2-container .select2-selection--multiple .select2-search__field::placeholder {
    color: #6f7181;
    font-weight: 500;
}

/* Dropdown styles */
.select2-container--open .select2-dropdown {
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Dropdown options */
.select2-container--default .select2-results__option {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4B5675;
    transition: background-color 0.2s ease;
}

/* Highlighted option */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f3f4f6;
    color: #4B5675;
}

/* Selected option in dropdown */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e5e7eb;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #00355E;
    outline: none;
    ring: 2px;
    ring-color: #93c5fd;
}

/* Disabled state */
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* Dark mode styles */
.dark .select2-container .select2-selection--multiple {
    background-color: #1F212A;
    border-color: #374151;
}

.dark .select2-container .select2-selection--multiple:hover {
    border-color: #4b5563;
}

.dark .select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

.dark .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: #9ca3af;
}

.dark .select2-container .select2-selection--multiple .select2-search__field {
    color: #e5e7eb;
    font-weight: 500;
}

.dark .select2-container--open .select2-dropdown {
    background-color: #1F212A;
    border-color: #374151;
}

.dark .select2-container--default .select2-results__option {
    color: #e5e7eb;
}

.dark .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #374151;
    color: #e5e7eb;
}

.dark .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #4b5563;
}

.dark .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #006AE6;
}

.dark .select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #374151;
}

.dark .select2-container--default .select2-selection--multiple .select2-selection__clear {
    color: #9ca3af;
    margin-top: 0;
}

/* Error state for Select2 multiple select with red border */
.select2-container .select2-selection--multiple.border-red-500 {
    border-color: #ef4444;
    /* Tailwind's red-500 color */
}

/* Error state for Select2 multiple select with red border */
.select2-container .select2-selection--multiple.border-red-500:hover {
    border-color: rgb(220, 38, 38);
    /* Tailwind's red-500 color */
}