/* .loading-overlay {
    background: #e3e3e3 !important;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
} */


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Initially hidden */
    z-index: 9999;
}

.card-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loader {
    position: relative;
    width: 70px;
    height: 40px;
    margin: 0 auto 10px auto;
    &:before {
        border: 2px solid #8b3b98;
        box-sizing: content-box;
        content: '';
        height: 0;
        left: 50%;
        position: absolute;
        top: 50%;
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        width: 0;
    }
}

.spin {
    animation: spin 2.25s linear infinite;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 13px;
    left: 28px;
}

.spin:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 3px solid #8b3b98;
    transform: translate(-50%, -50%) rotate(45deg);
}

.bounce {
    animation: bounce 2.25s linear infinite;
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
}

.bounce:after,
.bounce:before {
    content: '';

    position: absolute;
    top: 13px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    box-sizing: content-box;
}

.bounce:before {
    border-left: 3px solid #8b3b98;
    border-bottom: 3px solid #8b3b98;
    left: 0;
}

.bounce:after {
    border-right: 3px solid #8b3b98;
    border-top: 3px solid #8b3b98;
    right: 0;
}

@keyframes bounce {
    0%, 10%, 45%, 60%, 100% {
        transform: scaleX(1);
        transform-origin: center;
    }
    20%, 35%, 75%, 85% {
        transform: scaleX(0.8);
        transform-origin: center;
    }
}

@-webkit-keyframes bounce {
    0%, 10%, 45%, 60%, 100% {
        -webkit-transform: scaleX(1);
        -webkit-transform-origin: center;
    }
    20%, 35%, 75%, 85% {
        -webkit-transform: scaleX(0.8);
        -webkit-transform-origin: center;
    }
}

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

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