.select2-container--default .select2-selection--single {
    height: 42px !important;
    padding: 8px 12px;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius);
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
    font-size: 13px;
    padding-right:0;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.select2-dropdown {
    border: 2px solid var(--brand) !important;
    border-radius: var(--radius);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--brand) !important;
}






@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.edit-form-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 100;
    backdrop-filter: blur(3px);
}






/* <!-- style  for the Projct select   --> */

/* ============================================================ */
/* SELECT2 MULTIPLE SELECTION CONTAINER */
/* ============================================================ */
.select2-container--default .select2-selection--multiple {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px;
    padding: 4px 8px;
    min-height: 42px;
    max-height: 70px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #198BEA !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 139, 234, 0.1);
}

/* ============================================================ */
/* SELECTED ITEMS (CHIPS/TAGS) */
/* ============================================================ */
/* .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #eff6ff !important;
    border: 1px solid #198BEA !important;
    color: #198BEA !important;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 4px 0 0;
} */

/* ============================================================ */
/* SELECTED CONTRIBUTOR CHIPS (WITH PHOTO) */
/* ============================================================ */
.contributor-selected-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    /* padding: 4px 8px 4px 4px; */
    background: #eff6ff;
    /* border: 1px solid #198BEA; */
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #198BEA;
}

.contributor-chip-avatar {
    width: 20px;
    height: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #198BEA;
}

.contributor-chip-avatar-placeholder {
    width: 20px;
    height: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #198BEA 0%, #172A39 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;

}

.contributor-chip-name {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

/* Enhanced remove button (X) */
/* .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #198BEA;
    font-weight: 700;
    font-size: 16px;
    border: none;
    margin: 0 8px 0 4px;
    padding: 0 4px;
    cursor: pointer;
    transition: color 0.2s;
} */

/* .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ef4444;
    background: transparent;
    height: 80px; */
    /* color: #ef4444 !important;
    background: transparent !important; */
/* } */

/* FIX: prevent cross icon overlapping text */
/* .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    font-size: 13px !important;
    margin-left: 4px !important;
    margin-right: 2px !important;
    padding: 0 !important;
    line-height: 1 !important;
    height: auto !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ef4444 !important;
    background: transparent !important;
} */
/* 
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    gap: 4px !important;
} */




/* by me  */

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #eff6ff ;
    border: 1px solid #198BEA ;
    color: #198BEA !important;
    border-radius: 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 0 8px 0 27px;
    /* padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 4px 0 0; */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
    font-size: 18px;
    color: #198bea;
    border-right: 1px solid #198bea;
    font-weight: 500;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display{
    /* padding: 0 10px; */
}


.select2-container--default .select2-search--inline .select2-search__field::placeholder{
    /* color: #198bea ; */
    font-size: 14px;
    font-weight: 500;
}
/* by me end  */

.select2-selection__placeholder{
    font-size: 13px !important;
    font-weight: 500;
}
/* ============================================================ */
/* DROPDOWN RESULTS */
/* ============================================================ */
.select2-results__option--contributor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

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

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
}

/* ============================================================ */
/* CONTRIBUTOR AVATAR (IMAGE) */
/* ============================================================ */
.contributor-avatar {
    width: 32px;
    height: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

/* ============================================================ */
/* CONTRIBUTOR AVATAR PLACEHOLDER (INITIALS) */
/* ============================================================ */
.contributor-avatar-placeholder {
    width: 32px;
    height: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #198BEA 0%, #172A39 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* ============================================================ */
/* CONTRIBUTOR INFO (NAME & EMAIL) */
/* ============================================================ */
.contributor-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.contributor-name {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contributor-email {
    font-size: 11px;
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================ */
/* ADD NEW CONTRIBUTOR OPTION - **NEW** */
/* ============================================================ */
.select2-results__option--add-new,
.select2-results__option-add--new-thesis,
.select2-results__option--add-new-invited {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px dashed #198BEA;
    border-radius: 8px;
    margin: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.select2-results__option--add-new:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #1d4ed8;
}

.select2-results__option--add-new i ,
.select2-results__option-add--new-thesis i,
.select2-results__option--add-new-invited i{
    font-size: 20px;
    color: #198BEA;
}

.add-new-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.add-new-text {
    font-weight: 700;
    font-size: 13px;
    color: #198BEA;
}

.add-new-name {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
}

/* ============================================================ */
/* SELECT2 SEARCH BOX INSIDE DROPDOWN - **NEW** */
/* ============================================================ */
.select2-search--dropdown {
    padding: 8px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #198BEA !important;
    box-shadow: 0 0 0 3px rgba(25, 139, 234, 0.1);
}

/* ============================================================ */
/* NO RESULTS / SEARCHING MESSAGES - **NEW** */
/* ============================================================ */
.select2-results__option.select2-results__message {
    /* padding: 16px; */
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    background-color: #eff6ff !important;
}

.select2-results__option.loading-results {
    padding: 16px;
    text-align: center;
    color: #198BEA;
    font-weight: 600;
}

.select2-results__option{
    font-size: 13px;
    padding: 6px 10px;
    font-weight: 500;
    /* background-color: #eff6ff !important; */
}

/* ============================================================ */
/* EDIT FORM LOADER */
/* ============================================================ */
.edit-form-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

/* ============================================================ */
/* LOADING SPINNER ANIMATION */
/* ============================================================ */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* Now From here Sweet Alert Css  */
.swal2-popup{
    width: 35em;
    height: 30em;
    width: 35em;
    height: 26em;
    border-radius: 30px;
}
.swal2-icon{
    width: 3em;
    height: 3em;
    width: 2.5em;
    height: 2.5em;
    margin: 0.5em auto 0.5em;
}
.swal2-icon .swal2-icon-content{
    font-size: 2em;
    font-weight: 700;
}
.swal2-title{
    font-size: 1.5em;
    font-size: 1.4em;
    line-height: 35px;
}

div:where(.swal2-container) div:where(.swal2-html-container){
    font-size: 1em;
    font-family: 'Inter', sans-serif;
}

.swal2-actions .swal2-confirm.swal2-styled,
.swal2-deny.swal2-styled,
.swal2-cancel.swal2-styled{
    font-size: 14px;
    border-radius: 20px;
}

.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{
    top: 1.175em;
    right: 6.5px;
    width: 1.575em;
    transform: rotate(-45deg);
    top: 1.105em;
    right: 2.5px;
    width: 1.875em;
}

.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip] {
    top: 1.175em;
    left: .50em;
    width: 1.575em;
    transform: rotate(45deg);
    top: 1.380em;
    left: 0.1em;
    width: 0.99em;
}

.swal2-icon.swal2-success .swal2-success-fix{
    height: 1.625em;

}
.swal2-icon.swal2-success [class^=swal2-success-circular-line]{
    width: 1.75em;
    height: 2.5em;
}

.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left] {
    top: -2.4375em;
    left: -0.0635em;
}




.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{

}
.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{
    left: 0.2em;
}
.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{
    right: 0.2em;
}
.swal2-icon.swal2-error [class^=swal2-x-mark-line]{
    top: 1.125em;
    width: 1.995em;
    height: 0.3125em;
}