/*image-light-box*/

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.lightbox-content {
    position: relative;
}

#full-image {
    max-width: 90%;
    max-height: 80vh;
    transition: transform 0.2s ease-in-out;
    z-index: 1;
}

.lightbox-trigger {
    cursor: pointer;
}

.image-light {
    cursor: pointer;
}

/*end image-light-box*/

.btn-loading {
    display: flex;
    gap: 10px;
}

.btn-loading:after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid;
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    transition: opacity 0.5s;
    animation: 0.8s linear infinite rotate-loading;
}

.block-loading {
    position: relative;
}

.block-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    z-index: 9999;
    transform: translate(-50%, -50%);
    border: 4px solid;
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    transition: opacity 0.5s;
    animation: 0.8s linear infinite rotate-loading;
    color: #7367f0;
}

.block-loading:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background: rgba(255, 255, 255, .5);
}

@keyframes rotate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error {
    color: red;
}

/* SweetAlert2 */

.swal2-popup {
    width: 30em !important;
    padding: 0 0 1.5em !important;
}

.swal2-icon {
    margin: 1.5em auto 0 !important;
}

#swal2-title {
    max-width: 100%;
    margin-top: 0;
    font-size: 1.5rem;
}

/* Select2 */

.select2-container--open {
    z-index: 9999;
}

.select2-selection--multiple {
    padding-right: 1rem !important;
}

.select2-selection--multiple .select2-selection__clear {
    position: absolute;
    right: 0;
    margin: 0.375rem 0.625rem 0 !important;
}
