/* Base container for the loading animation */
.loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(0deg 0% 0% / 10%);
    width: 100%;
    height: 100%;
}

/* Spinner animation */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top: 4px solid #6200ee;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Progress bar animation */
.progress-bar {
    width: 0;
    height: 2px;
    background: #6200ee;
    animation: progress 1.5s infinite;
    position: absolute;
    top: 0px;
}

@keyframes progress {
    0% {
        width: 0;
    }
    50% {
        width: 50%;
    }
    100% {
        width: 100%;
    }
}

/* Dots animation */
.dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #6200ee;
    border-radius: 50%;
    animation: dots 1.2s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dots {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}
