/*! select2-bootstrap-5-theme v1.3.0 | MIT License | lokalize edilmiş + görsel düzeltmeler */

/* ============================================================
   CONTAINER
   ============================================================ */
.select2-container--bootstrap-5 { display: block; }

/* ============================================================
   SELECTION (Ana kutu - kapalı hali)
   ============================================================ */
.select2-container--bootstrap-5 .select2-selection {
    width: 100%;
    min-height: calc(1.5em + .75rem + 2px);
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    cursor: pointer;
}

/* Focus / Open hali */
.select2-container--bootstrap-5.select2-container--focus:not(.select2-container--disabled) .select2-selection,
.select2-container--bootstrap-5.select2-container--open:not(.select2-container--disabled) .select2-selection {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

/* Dropdown aşağıda açıkken alt kenarlık/radius kaldır */
.select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection {
    border-bottom-color: transparent;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* Dropdown yukarıda açıkken üst kenarlık/radius kaldır */
.select2-container--bootstrap-5.select2-container--open.select2-container--above .select2-selection {
    border-top-color: transparent;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

/* ============================================================
   SINGLE SELECTION
   ============================================================ */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 0;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    display: none;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: .75rem;
    width: 1rem;
    height: 1rem;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    color: #6c757d;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear:hover {
    color: #212529;
}

/* ============================================================
   MULTIPLE SELECTION
   ============================================================ */
.select2-container--bootstrap-5 .select2-selection--multiple {
    padding: .375rem .75rem;
    background-image: none;
}

.select2-container--bootstrap-5 .select2-selection--multiple.select2-selection--clearable {
    padding-right: 2.5rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .375rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: .25em .5em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: #0d6efd;
    border: 0;
    border-radius: .25rem;
    white-space: nowrap;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
    width: 1rem;
    height: 1rem;
    padding: 0;
    margin-right: .25rem;
    overflow: hidden;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: .75em;
    border: 0;
    font-size: 0;
    cursor: pointer;
}

/* ============================================================
   DROPDOWN CONTAINER
   ============================================================ */
.select2-container--bootstrap-5 .select2-dropdown {
    background-color: #fff;
    border: 1px solid #86b7fe;
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--below {
    border-top: 1px solid #dee2e6;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--above {
    border-bottom: 1px solid #dee2e6;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* ============================================================
   ARAMA ALANI (DROPDOWN İÇİ) — ANA DÜZELTME
   ============================================================ */
.select2-container--bootstrap-5 .select2-dropdown .select2-search {
    padding: .5rem .625rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    display: block;
    width: 100%;
    padding: .375rem .625rem;
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    outline: 0;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

/* ============================================================
   SONUÇ LİSTESİ
   ============================================================ */
.select2-container--bootstrap-5 .select2-dropdown .select2-results .select2-results__options {
    max-height: 15rem;
    overflow-y: auto;
    padding: .25rem 0;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results .select2-results__option {
    padding: .4rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    cursor: pointer;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results .select2-results__option.select2-results__option--highlighted {
    background-color: #0d6efd;
    color: #fff;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results .select2-results__option.select2-results__option--selected {
    background-color: #e9ecef;
    color: #212529;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results .select2-results__option.select2-results__option--disabled {
    color: #6c757d;
    cursor: not-allowed;
    background-color: transparent;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results .select2-results__option[role=group] .select2-results__group {
    padding: .375rem .75rem;
    font-size: .875rem;
    font-weight: 600;
    color: #6c757d;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results .select2-results__message {
    padding: .5rem .75rem;
    color: #6c757d;
    font-style: italic;
}

/* ============================================================
   DOĞRULAMA DURUMLARI
   ============================================================ */
.select2-container--bootstrap-5.is-invalid .select2-selection {
    border-color: #dc3545;
}

.select2-container--bootstrap-5.is-invalid.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.is-invalid.select2-container--open .select2-selection {
    border-color: #dc3545;
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .25);
}

.select2-container--bootstrap-5.is-valid .select2-selection {
    border-color: #198754;
}

.select2-container--bootstrap-5.is-valid.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.is-valid.select2-container--open .select2-selection {
    border-color: #198754;
    box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .25);
}

/* ============================================================
   DEVRE DIŞI DURUM
   ============================================================ */
.select2-container--bootstrap-5.select2-container--disabled .select2-selection {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}
