/* Select2 Premium Styling mimicking Vimeo Library */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Softer, slightly larger radius */
    height: 48px;
    /* Taller input for modern feel */
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #00ADEF;
    /* Vimeo Blue */
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #00ADEF;
    box-shadow: 0 0 0 1px rgba(0, 173, 239, 0.2);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 15px;
    padding-right: 30px;
    color: #1a2e3b;
    /* Darker text */
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    width: 30px;
    right: 5px;
}

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

/* Dropdown Results Styling */
.select2-dropdown {
    border: 1px solid #eef1f5;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
    padding: 8px;
    margin-top: 5px;
    z-index: 99999;
    /* Ensure it floats above */
    overflow: hidden;
}

.select2-results__options {
    padding: 0;
    max-height: 300px;
}

.select2-results__option {
    padding: 10px 12px;
    font-size: 14px;
    color: #1a2e3b;
    border-radius: 6px;
    /* Rounded items */
    margin-bottom: 2px;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #F2F4F7;
    /* Very light grey hover, not harsh blue */
    color: #00ADEF;
    /* Text turns blue */
    font-weight: 500;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #E6F7FF;
    /* Light blue selected background */
    color: #0088CC;
}

/* Library Item Template Styles */
.upvimeo-library-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upvimeo-library-icon {
    color: #7d8b99;
    /* Muted icon color */
    font-size: 18px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

/* Hover/Active states for icon */
.select2-results__option--highlighted .upvimeo-library-icon,
.select2-results__option[aria-selected="true"] .upvimeo-library-icon {
    color: #00ADEF;
}

.upvimeo-library-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search Box inside dropdown */
.select2-search--dropdown {
    padding: 8px 12px;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 14px;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #00ADEF;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 173, 239, 0.1);
}