/* Pipeline progress container — shown above streaming response */
.pipeline-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    transition: opacity 0.3s ease, max-height 0.5s ease;
}

/* Individual step */
.pipeline-step {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInStep 0.2s ease forwards;
}

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

/* Loading spinner icon */
.pipeline-step .icon-loading,
.pipeline-step .icon-search {
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-color, #8b5cf6);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* Check icon */
.pipeline-step .icon-check {
    width: 14px;
    height: 14px;
    color: var(--success-color, #10b981);
    flex-shrink: 0;
}

.pipeline-step .icon-check::after {
    content: "\2713";
    font-size: 12px;
    font-weight: bold;
}

/* Error icon */
.pipeline-step .icon-error {
    color: var(--error-color, #ef4444);
    flex-shrink: 0;
}

.pipeline-step .icon-error::after {
    content: "\2717";
    font-size: 12px;
    font-weight: bold;
}

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

/* Dimmed state — when content starts streaming */
.pipeline-progress.dimmed {
    opacity: 0.5;
    font-size: 11px;
    gap: 2px;
    padding: 8px 12px;
}

/* Collapsed state — optional, hides progress entirely */
.pipeline-progress.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
