/* retoor <retoor@molodetz.nl> */
.progress-section {
    margin-bottom: var(--spacing-lg);
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    animation: fadeIn var(--transition-normal);
}

.progress-step.indented {
    padding-left: var(--spacing-lg);
}

.progress-step.round-header {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
    margin-top: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--color-border);
}

.progress-step.gap {
    color: var(--color-warning, #f59e0b);
}

.progress-step.gap .icon {
    color: var(--color-warning, #f59e0b);
}

.progress-step .icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.progress-step .icon.resolved {
    animation: iconResolve 0.3s ease-out;
}

.progress-step.active .icon {
    color: var(--color-accent);
}

.progress-step.done .icon {
    color: var(--color-success);
}

.progress-step.error .icon {
    color: var(--color-error);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes iconResolve {
    from { transform: scale(1.4); opacity: 0.5; }
    to { transform: scale(1); opacity: 1; }
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.result-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    animation: fadeIn var(--transition-normal);
}

.result-section h2,
.result-section h3,
.result-section h4 {
    color: var(--color-text);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.result-section h2:first-child,
.result-section h3:first-child,
.result-section h4:first-child {
    margin-top: 0;
}

.result-section p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.result-section ul,
.result-section ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.result-section li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.result-section blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--spacing-md);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.result-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

.result-section th,
.result-section td {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    text-align: left;
}

.result-section th {
    background-color: var(--color-surface-elevated);
    font-weight: 600;
}

.result-section .highlight {
    background-color: var(--color-surface) !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

.error-message {
    color: var(--color-error);
    padding: var(--spacing-md);
    background-color: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.3);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

@media (max-width: 480px) {
    .result-section {
        padding: var(--spacing-md);
    }

    .progress-step.indented {
        padding-left: var(--spacing-md);
    }
}
