/* SLCT / SLC — Veyron premium Select2 (marka mor-mavi #7367f0)
   Tema components.css’teki kırmızı/teal vurguyu ezer. */

:root {
    --veyron-slct-primary: #7367f0;
    --veyron-slct-primary-deep: #5e50ee;
    --veyron-slct-primary-soft: rgba(115, 103, 240, 0.12);
    --veyron-slct-primary-soft-2: rgba(115, 103, 240, 0.18);
    --veyron-slct-border: #e2e8f0;
    --veyron-slct-border-hover: #c7c3f5;
    --veyron-slct-text: #1e293b;
    --veyron-slct-muted: #94a3b8;
    --veyron-slct-surface: #ffffff;
    --veyron-slct-radius: 0.55rem;
    --veyron-slct-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    --veyron-slct-ring: 0 0 0 3px rgba(115, 103, 240, 0.18);
}

/* —— Tekil seçim kutusu —— */
.select2-container--default .select2-selection--single,
.select2-container--classic .select2-selection--single {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 1px solid var(--veyron-slct-border) !important;
    border-radius: var(--veyron-slct-radius) !important;
    background-color: var(--veyron-slct-surface) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--classic .select2-selection--single .select2-selection__rendered {
    position: relative !important;
    line-height: 36px !important;
    padding-left: 0.85rem !important;
    /* ok (≈1.75rem) + clear (≈1.5rem) + boşluk */
    padding-right: 3.4rem !important;
    color: var(--veyron-slct-text) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
    color: var(--veyron-slct-muted) !important;
}

/* Ok — sağda, dikey ortalı */
.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--classic .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 0 !important;
    right: 0.35rem !important;
    width: 1.5rem !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b,
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
    position: static !important;
    border: none !important;
    margin: 0 !important;
    left: auto !important;
    top: auto !important;
    width: 0.85rem !important;
    height: 0.85rem !important;
    transform: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Temizle (×) — okun solunda, aynı dikey orta */
.select2-container--default .select2-selection--single .select2-selection__clear,
.select2-container--classic .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    top: 0 !important;
    right: 1.85rem !important;
    width: 1.35rem !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--veyron-slct-muted) !important;
    z-index: 2;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--classic.select2-container--focus .select2-selection--single,
.select2-container--classic.select2-container--open .select2-selection--single {
    border-color: var(--veyron-slct-primary) !important;
    box-shadow: var(--veyron-slct-ring) !important;
    outline: none !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b,
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237367f0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.select2-container--default:hover .select2-selection--single:not(:focus),
.select2-container--classic:hover .select2-selection--single:not(:focus) {
    border-color: var(--veyron-slct-border-hover) !important;
}

/* —— Çoklu seçim —— */
.select2-container--default .select2-selection--multiple,
.select2-container--classic .select2-selection--multiple {
    min-height: 38px !important;
    border: 1px solid var(--veyron-slct-border) !important;
    border-radius: var(--veyron-slct-radius) !important;
    background: var(--veyron-slct-surface) !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--classic.select2-container--focus .select2-selection--multiple,
.select2-container--classic.select2-container--open .select2-selection--multiple {
    border-color: var(--veyron-slct-primary) !important;
    box-shadow: var(--veyron-slct-ring) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, var(--veyron-slct-primary) 0%, var(--veyron-slct-primary-deep) 100%) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 0.4rem !important;
    padding: 0.15rem 0.45rem !important;
    font-size: 0.78rem !important;
    font-weight: 600;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-right: 0.25rem;
}

/* —— Açılır liste —— */
.select2-container--default .select2-dropdown,
.select2-container--classic .select2-dropdown,
.select2-dropdown.veyron-slct__dropdown {
    border: 1px solid var(--veyron-slct-border) !important;
    border-radius: 0.65rem !important;
    box-shadow: var(--veyron-slct-shadow) !important;
    overflow: hidden !important; /* dış kabuk kaymaz — çift scroll yok */
    background: var(--veyron-slct-surface);
    margin-top: 4px;
    z-index: 2000;
}

/* Liste kaydırması yalnızca options; .select2-results ikinci scrollbar üretmesin */
.select2-dropdown.veyron-slct__dropdown .select2-results,
.select2-container--default .select2-dropdown .select2-results,
.select2-container--classic .select2-dropdown .select2-results {
    overflow: hidden !important;
    max-height: none !important;
    height: auto !important;
}

.select2-container--default .select2-search--dropdown,
.select2-container--classic .select2-search--dropdown {
    padding: 0.55rem 0.55rem 0.35rem !important;
    background: #f8fafc;
    border-bottom: 1px solid var(--veyron-slct-border);
}

.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--classic .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--veyron-slct-border) !important;
    border-radius: 0.5rem !important; /* pill yok — SED / SLCT köşesi */
    padding: 0.45rem 0.75rem !important;
    font-size: 0.84rem !important;
    color: var(--veyron-slct-text);
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus,
.select2-container--classic .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--veyron-slct-primary) !important;
    box-shadow: var(--veyron-slct-ring) !important;
}

.select2-container--default .select2-results__options,
.select2-container--classic .select2-results__options {
    padding: 0.35rem !important;
    max-height: 260px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.select2-container--default .select2-results__option,
.select2-container--classic .select2-results__option {
    border-radius: 0.45rem !important;
    padding: 0.5rem 0.7rem !important;
    margin: 0.1rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--veyron-slct-text) !important;
    transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

/* Hover / klavye highlight — premium soft fill (eski teal/kırmızı yok) */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted,
.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--classic .select2-results__option--highlighted {
    background: linear-gradient(135deg, var(--veyron-slct-primary-soft) 0%, var(--veyron-slct-primary-soft-2) 100%) !important;
    color: var(--veyron-slct-primary-deep) !important;
    box-shadow: inset 0 0 0 1px rgba(115, 103, 240, 0.22);
}

/* Seçili satır — dolu marka gradient */
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--classic .select2-results__option[aria-selected="true"] {
    background: linear-gradient(135deg, var(--veyron-slct-primary) 0%, var(--veyron-slct-primary-deep) 100%) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(115, 103, 240, 0.28);
}

.select2-container--default .select2-results__option[aria-selected="true"].select2-results__option--highlighted,
.select2-container--classic .select2-results__option[aria-selected="true"].select2-results__option--highlighted {
    background: linear-gradient(135deg, var(--veyron-slct-primary) 0%, var(--veyron-slct-primary-deep) 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(115, 103, 240, 0.35);
}

.select2-container--default .select2-results__option--disabled,
.select2-container--classic .select2-results__option--disabled {
    color: var(--veyron-slct-muted) !important;
    opacity: 0.65;
}

.select2-container--open {
    box-shadow: none !important;
}

/* Modal içi z-index */
.modal .select2-container--open .select2-dropdown,
.gmdl-modal .select2-dropdown {
    z-index: 2100 !important;
}

/* Telefon — dropdown viewport tavanı; left/right zorlaması Select2 absolute hesabını bozmasın */
@media (max-width: 575.98px) {
    .select2-dropdown {
        max-width: calc(100vw - 16px) !important;
        box-sizing: border-box;
    }

    .modal .select2-dropdown,
    .gmdl-modal .select2-dropdown {
        max-width: 100% !important;
    }

    .select2-container--default .select2-results__options,
    .select2-container--classic .select2-results__options {
        max-height: 200px;
    }
}
