
/* Sfondo nero per il loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Logo sopra il loader */
.loader-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeInLogo 0.5s ease-in;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-progress-wrapper {
    position: relative;
    width: 8rem;
    height: 8rem;
    margin: 0 auto;
}

.loading-progress {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

    .loading-progress circle {
        fill: none;
        stroke: #333333;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #51bb71;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
    width: 100%;
    pointer-events: none;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }
