/* Custom Select2 Styling */
.select2-container--default .select2-selection--single {
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid white;
    border-radius: 8px;
    height: auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

/* เมื่อมีการเลือกค่า - เปลี่ยนเป็นสีดำ */
.select2-container--default .select2-selection--single.has-value {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 16px;
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent;
    border-width: 6px 4px 0 4px;
}

/* Dropdown styling */
.select2-container--default .select2-dropdown {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.select2-container--default .select2-results__option {
    padding: 12px 16px;
    font-size: 16px;
    color: #666;
    background: #fff;
    transition: background-color 0.2s ease;
}

.select2-container--default .select2-results__option:hover {
    background-color: #f5f5f5;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #000;
    color: #fff;
}

/* Selected option styling */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #000;
    color: #fff;
    font-weight: 500;
}

/* Placeholder styling */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: white;
    opacity: 0.9;
}
