﻿/* ── PROFESSIONAL SELECT2 OVERRIDES ── */

/* 1. Main Container Input Field */
.select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important; /* Subtle gray slate border */
    border-radius: 8px !important; /* Smooth rounded corners */
    height: 42px !important; /* Comfortable clickable height */
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

/* 2. Focus State (Active & Open Dropdown) */
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0e7490 !important; /* Elegant slate blue/cyan match */
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15) !important; /* Modern focus ring */
}

/* 3. Text Placement Inside Selection Field */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important; /* Deep slate ink color */
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding-left: 12px !important;
    padding-right: 30px !important;
}

/* Placeholder styling color matching */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important; /* Muted placeholder ink */
}

/* 4. Dropdown Arrow Style Customization */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    width: 32px !important;
    position: absolute !important;
    top: 0 !important;
    right: 4px !important;
}

    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: #64748b transparent transparent transparent !important; /* Clean minimal arrow arrow */
        border-width: 5px 4px 0 4px !important;
    }

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #64748b transparent !important;
    border-width: 0 4px 5px 4px !important;
}

/* 5. Clear Button Style Adjustment */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #94a3b8 !important;
    font-size: 16px !important;
    margin-right: 8px !important;
}

    .select2-container--default .select2-selection--single .select2-selection__clear:hover {
        color: #ef4444 !important; /* Soft error red color shift on hover clear */
    }

/* 6. The actual Opened Dropdown Menu Shell */
.select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08) !important; /* Soft shadow */
    z-index: 99999 !important;
    overflow: hidden !important;
}

/* 7. Search Input Inside Dropdown Menu Box */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    outline: none !important;
}

    .select2-container--default .select2-search--dropdown .select2-search__field:focus {
        border-color: #0e7490 !important;
    }

/* 8. Dropped Menu Options Row List */
.select2-container--default .select2-results__option {
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #334155 !important;
}

/* 9. Highlight / Hover Selection on rows */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0e7490 !important; /* Matches your accent theme color */
    color: #ffffff !important;
}

/* 10. Selected Active Row style inside items list */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}
