﻿
.include-loader {
    position: relative;
}

    .include-loader.isloading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 2px solid #ccc;
        border-top: 2px solid white; /* Replace with your preferred color */
        border-radius: 50%;
        width: 20px;
        height: 20px;
        animation: generic-spinner 1s linear infinite;
    }

    .include-loader:disabled {
        opacity: .5;
    }

.isloading {
    opacity: 0.5; /* Reduce opacity to indicate the button is not clickable */
    cursor: not-allowed; /* Change cursor to indicate no interaction */
    pointer-events: none; /* Disable pointer events to prevent interaction */
}

.ignoreclick{
    pointer-events:none;
}

@keyframes generic-spinner {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loading-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #ccc;
    border-top: 2px solid white; /* Replace with your preferred color */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: generic-spinner 1s linear infinite;
}

.loading {
    opacity: 0.5; /* Reduce opacity to indicate the button is not clickable */
    cursor: not-allowed; /* Change cursor to indicate no interaction */
    pointer-events: none; /* Disable pointer events to prevent interaction */
}

.loading-button {
    position: relative;
}