/* Custom CSS for Select2 to match Bootstrap's .form-control */
.select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px) !important; /* Adjust height */
    line-height: 1.5 !important; /* Adjust line-height */
    color: #495057 !important; /* Adjust text color */
    background-color: #fff !important; /* Adjust background color */
    border: 1px solid #ced4da !important; /* Adjust border color */
}

/* Adjust focus styles */
.select2-container--default .select2-selection--single:focus {
    border-color: #80bdff !important; /* Adjust focus border color */
    outline: 0 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important; /* Adjust focus box-shadow */
}

/* Adjust disabled styles */
.select2-container--default .select2-selection--single[aria-disabled="true"] {
    background-color: #e9ecef !important; /* Adjust disabled background color */
    cursor: not-allowed !important;
}

/* Ensure the dropdown arrow color matches */
.select2-container--default .select2-selection__arrow {
    height: calc(2.25rem - 2px) !important;
}

/* Adjust dropdown appearance */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #007bff !important; /* Adjust selected option background color */
    color: #fff !important; /* Adjust selected option text color */
}
