/* =================================================================
   AI/TECH LOADER - Modern AI Processing Animation
   ================================================================= */

.ai-loading-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    text-align: center;
}

/* Container Visual do Processador */
.ai-processor-visual {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

/* O Ícone Central (Chip/CPU) */
.ai-core-icon {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #FF8C00, #3b82f6);
    /* Laranja para Azul */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    animation: corePulse 2s ease-in-out infinite;
}

/* As Ondas (Ripples) que expandem */
.ai-ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    inset: 0;
    margin: auto;
    width: 60px;
    height: 60px;
    animation: rippleEffect 3s linear infinite;
    opacity: 0;
}

/* Cores diferentes para as ondas */
.ai-ripple.r1 {
    border-color: rgba(255, 140, 0, 0.6);
    animation-delay: 0s;
}

.ai-ripple.r2 {
    border-color: rgba(59, 130, 246, 0.6);
    animation-delay: 1s;
}

.ai-ripple.r3 {
    border-color: rgba(16, 185, 129, 0.6);
    animation-delay: 2s;
}

/* Container de Status */
.ai-status-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Textos */
.ai-status-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    min-height: 1.5em;
    /* Reserva espaço para não pular quando o texto mudar */
    transition: opacity 0.3s ease;
}

.ai-subtext {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Animações */
@keyframes corePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(255, 140, 0, 0.4);
    }
}

@keyframes rippleEffect {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Classe utilitária para o JS usar na troca de texto */
.fade-out-text {
    opacity: 0;
}