/* Modal de Carregamento - OpenAI */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-modal.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    margin: 20px;
}

.loading-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3399ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.loading-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Barra de Progresso REAL */
.progress-container {
    margin: 25px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3399ff, #667eea);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { box-shadow: inset 0 0 10px rgba(255,255,255,0.5); }
    50% { box-shadow: inset 0 0 20px rgba(255,255,255,0.8); }
    100% { box-shadow: inset 0 0 10px rgba(255,255,255,0.5); }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.progress-text {
    color: #555;
    font-weight: 500;
}

.progress-percent {
    color: #3399ff;
    font-weight: 600;
    font-size: 1rem;
}

.dani-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.loading-tip {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #3399ff;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
    text-align: left;
}

.loading-tip strong {
    color: #3399ff;
}

/* Animação de entrada */
.loading-modal.show .loading-content {
    animation: modalEnter 0.5s ease-out;
}

@keyframes modalEnter {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .loading-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .loading-title {
        font-size: 1.2rem;
    }
    
    .loading-subtitle {
        font-size: 0.9rem;
    }
    
    .loading-icon {
        width: 60px;
        height: 60px;
    }
}