.loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    transition: opacity .3s ease, visibility .3s ease;
}

.loader.active {
    opacity: 1;
    visibility: visible;
}

.loader.not-active {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e5e5e5;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}