/* Custom Select2 Styling for Tailwind Rounded-2xl Theme */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single:not(.select2-tindakan-select) {
    height: 3.5rem !important;
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    outline: none !important;
    transition: all 0.2s ease-in-out;
}

.select2-container--default.select2-container--open .select2-selection--single:not(.select2-tindakan-select),
.select2-container--default .select2-selection--single:not(.select2-tindakan-select):focus {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 2px rgba(241, 245, 249, 1) !important;
}

.select2-container--default .select2-selection--single:not(.select2-tindakan-select) .select2-selection__rendered {
    color: #1e293b !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding-left: 0 !important;
    line-height: normal !important;
}

.select2-container--default .select2-selection--single:not(.select2-tindakan-select) .select2-selection__arrow {
    height: 3.5rem !important;
    right: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 2.5rem !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    float: none !important;
    margin: 0 !important;
    z-index: 30 !important;
    line-height: 1 !important;
    transition: color 0.15s ease !important;
}

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

/* Skeleton Shimmer Loading State */
@keyframes shimmer-sweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.select2-shimmer {
    background: linear-gradient(90deg, #f8fafc 25%, #cbd5e1 37%, #f8fafc 63%) !important;
    background-size: 200% 100% !important;
    animation: shimmer-sweep 1.2s ease-in-out infinite !important;
    border-color: #cbd5e1 !important;
    color: transparent !important;
    pointer-events: none !important;
}

.select2-dropdown {
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    margin-top: 6px;
    background-color: #ffffff !important;
}

.select2-search--dropdown {
    padding: 0.75rem !important;
    background-color: #ffffff !important;
}

.select2-search__field {
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.65rem 1rem !important;
    outline: none !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    background-color: #f8fafc !important;
    transition: all 0.2s;
}

.select2-search__field:focus {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(239, 246, 255, 1) !important;
}

.select2-results__option {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: #334155 !important;
    transition: background-color 0.15s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 500 !important;
}
