/* Customize Select2 dropdown appearance */
.select2-container--default .select2-selection--single {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    height: 38px;
    line-height: 38px;
    padding: 0 10px;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #00b96b;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 185, 107, 0.25);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    position: absolute;
    top: 1px;
    right: 10px;
    width: 20px;
    transition: transform 0.2s ease;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
    transform: rotate(180deg);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #00b96b transparent transparent transparent;
    border-style: solid;
    border-width: 6px 5px 0 5px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
    transition: border-color 0.2s ease;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #00b96b transparent;
    border-width: 0 5px 6px 5px;
}

.select2-dropdown {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 4px;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(0, 185, 107, 0.1);
    color: #00b96b;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #00b96b;
    color: white;
}

.select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #00b96b;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 185, 107, 0.25);
}
.select2-container--classic .select2-selection--single .select2-selection__arrow{
    height: 36px;
    width: 25px;
}

/* Customize Select2 clear button (X icon) */
.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    font-weight: bold;
    height: 26px;
    margin-right: 20px;
    padding: 0 4px;
    position: relative;
    line-height: 36px;
    font-size: 18px;
    color: #999;
    transition: all 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545;
    transform: scale(1.2);
}

/* Adjust padding when clear button is present */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 30px;
}
.select2-container--classic .select2-selection--single .select2-selection__clear{
    margin-right: 26px;
}
.select2-container .select2-selection--single .select2-selection__clear{
    font-size: 1.3em;
    color: #908f8f;
}
