/* Loading GIF Animations */

/* Spinner animado */
.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Dots animados */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 1.5rem;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    animation: dotPulse 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

/* Pulse animado */
.loading-pulse {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Wave animado */
.loading-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0 auto 1.5rem;
}

.loading-bar {
    width: 4px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.loading-bar:nth-child(1) { animation-delay: -1.2s; }
.loading-bar:nth-child(2) { animation-delay: -1.1s; }
.loading-bar:nth-child(3) { animation-delay: -1.0s; }
.loading-bar:nth-child(4) { animation-delay: -0.9s; }
.loading-bar:nth-child(5) { animation-delay: -0.8s; }

/* Animações */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

@keyframes wave {
    0%, 40%, 100% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
    }
}

/* Loading overlay melhorado */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease-in;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 300px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
}

.loading-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .loading-content {
        max-width: 280px;
        padding: 1.5rem;
    }
    
    .loading-spinner,
    .loading-pulse {
        width: 60px;
        height: 60px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-subtext {
        font-size: 0.8rem;
    }
} 