/* Progresso, logs e processamento assíncrono */

.progress-card {
    max-width: 760px;
    margin: 28px auto 0;
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.progress-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.progress-header h2 {
    font-size: 44px;
    margin: 0;
    color: var(--primary-dark);
}

.progress-header span {
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
}

.progress-bar {
    width: 100%;
    height: 18px;
    background: #e9edf5;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.35s ease;
}

.progress-message {
    margin-top: 18px;
    font-size: 15px;
    color: var(--text);
    font-weight: 700;
}

.erro-box {
    margin-top: 18px;
    background: #fff1f0;
    border: 1px solid #fda29b;
    color: #b42318;
    border-radius: 12px;
    padding: 16px;
}

.log-processamento {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.log-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.log-summary-item {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}

.log-summary-item span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.log-summary-item strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
    color: var(--primary-dark);
}

.log-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.log-topo strong {
    font-size: 14px;
}

.log-topo span {
    font-weight: 900;
    font-size: 18px;
}

.log-processamento .progress-bar {
    width: 100%;
    height: 14px;
    background: #e9edf5;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.log-processamento .progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.35s ease;
}

#log-mensagem {
    margin-top: 12px;
    font-weight: 700;
    color: var(--text);
}

#abrir-processamento {
    margin-top: 12px;
}
