/**
 * Select2 Dark Theme - OnlyXScort
 * Mettre ce fichier dans: public/css/select2-dark.css
 * Charger APRÈS le select2.css par défaut
 */

/* ========== CONTAINER ========== */
.select2-container {
    min-width: 180px !important;
}

/* ========== INPUT FIELD ========== */
.select2-container--default .select2-selection--single {
    background-color: #2a2a2a !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 0.5rem !important;
    height: 42px !important;
    background-image: none !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #4a4a4a !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #d62153 !important;
    box-shadow: 0 0 0 1px rgba(214, 33, 83, 0.2) !important;
}

/* Text inside input */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8f7f4 !important;
    line-height: 40px !important;
    padding-left: 12px !important;
    padding-right: 30px !important;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(248, 247, 244, 0.5) !important;
}

/* Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(248, 247, 244, 0.6) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent rgba(248, 247, 244, 0.6) transparent !important;
    border-width: 0 5px 6px 5px !important;
}

/* ========== DROPDOWN ========== */
.select2-dropdown {
    background-color: #2a2a2a !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important;
    overflow: hidden !important;
}

.select2-container--open .select2-dropdown {
    border-color: #d62153 !important;
}

.select2-container--open .select2-dropdown--below {
    border-top: 1px solid #3a3a3a !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.select2-container--open .select2-dropdown--above {
    border-bottom: 1px solid #3a3a3a !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* ========== SEARCH BOX ========== */
.select2-container--default .select2-search--dropdown {
    padding: 8px !important;
    background-color: #2a2a2a !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #1f1f1f !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 0.375rem !important;
    color: #f8f7f4 !important;
    padding: 8px 12px !important;
    outline: none !important;
    font-size: 14px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #d62153 !important;
    box-shadow: 0 0 0 2px rgba(214, 33, 83, 0.1) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: rgba(248, 247, 244, 0.4) !important;
}

/* ========== RESULTS LIST ========== */
.select2-results {
    background-color: #2a2a2a !important;
}

.select2-results__options {
    max-height: 280px !important;
    overflow-y: auto !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px !important;
    color: #f8f7f4 !important;
    font-size: 14px !important;
    background-color: #2a2a2a !important;
    transition: background-color 0.15s ease !important;
}

/* Hover state */
.select2-container--default .select2-results__option--selectable:hover {
    background-color: #3a3a3a !important;
}

/* Highlighted (keyboard navigation) */
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #d62153 !important;
    color: #ffffff !important;
}

/* Selected state */
.select2-container--default .select2-results__option--selected {
    background-color: rgba(214, 33, 83, 0.2) !important;
    color: #f8f7f4 !important;
}

/* Disabled state */
.select2-container--default .select2-results__option[aria-disabled=true] {
    color: rgba(248, 247, 244, 0.3) !important;
    background-color: #2a2a2a !important;
}

/* Group headers */
.select2-container--default .select2-results__group {
    color: #d62153 !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ========== LOADING & MESSAGES ========== */
.select2-results__message {
    color: rgba(248, 247, 244, 0.5) !important;
    padding: 12px 14px !important;
    text-align: center !important;
}

.select2-container--default .select2-results__option--loading {
    color: rgba(248, 247, 244, 0.5) !important;
}

/* ========== CLEAR BUTTON ========== */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: rgba(248, 247, 244, 0.5) !important;
    font-size: 18px !important;
    margin-right: 5px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #d62153 !important;
}

/* ========== MULTIPLE SELECT ========== */
.select2-container--default .select2-selection--multiple {
    background-color: #2a2a2a !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 0.5rem !important;
    min-height: 42px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #d62153 !important;
    border: none !important;
    border-radius: 0.25rem !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    margin: 4px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-right: 5px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ffffff !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    color: #f8f7f4 !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: rgba(248, 247, 244, 0.5) !important;
}

/* ========== SCROLLBAR ========== */
.select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: #1f1f1f;
    border-radius: 3px;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #d62153;
}

/* Firefox scrollbar */
.select2-results__options {
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a #1f1f1f;
}

/* ========== DISABLED STATE ========== */
.select2-container--disabled .select2-selection--single {
    background-color: #1f1f1f !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.select2-container--disabled .select2-selection--single .select2-selection__rendered {
    color: rgba(248, 247, 244, 0.4) !important;
}
