﻿
/* Serve per riferimento dimensionale orizzontale */
#app {
    position: relative;
    flex: 1;
}

/* Blur e opacità solo su contenuto interno a #app, escluso il loader */
.app-blurred > :not(#loading-overlay) {
    filter: blur(2px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Loader visibile sopra #app */
#loading-overlay {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

    /* Attivazione overlay */
    #loading-overlay.show {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

/* Loader animazione */
.loader {
    width: 90px;
    height: 90px;
    border: 8px solid transparent;
    border-top: 8px solid #93171B;
    border-bottom: 8px solid #93171B;
    border-radius: 50%;
    animation: spin 0.7s linear infinite, pulseGlow 1.2s ease-in-out infinite;
    box-shadow: 0 0 25px #93171B;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 12px #93171B;
    }

    50% {
        box-shadow: 0 0 30px #93171B;
    }
}

.loader-text {
    margin-top: 24px;
    color: #e2e2e2;
    font-size: 1.4rem;
    animation: flicker 1.4s infinite alternate;
    font-family: monospace;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

    @keyframes flicker {
        0% {
            opacity: 0.7;
        }

        100% {
            opacity: 1;
        }
    }
