/* Progress Bar System - FootHold Style */

.progress_bar_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 26, 0.6);
    z-index: var(--z-modal-backdrop);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.progress_bar_overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.progress_bar_container {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl);
    width: 98%;
    max-width: 960px;
    animation: progressFadeIn var(--transition-slow);
    border: 1px solid var(--color-border);
}

.progress_bar_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

.progress_bar_title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    color: var(--color-text);
    font-family: var(--font-family);
    flex: 1;
}

.progress_bar_metadata {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.progress_bar_badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    font-weight: var(--font-weight-normal);
    font-family: var(--font-family);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.progress_bar_badge.model {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    border-color: var(--color-primary);
}

.progress_bar_badge.word-count {
    background-color: var(--color-bg-alt);
    border-color: var(--color-success);
    color: var(--color-success);
    min-width: 90px;
    justify-content: center;
}

.progress_bar_badge.token-count {
    background-color: var(--color-bg-alt);
    border-color: var(--color-primary-hover);
    color: var(--color-primary-hover);
    min-width: 90px;
    justify-content: center;
}

.progress_bar_badge.elapsed-time {
    background-color: var(--color-bg-alt);
    border-color: var(--color-warning);
    color: var(--color-warning);
    min-width: 75px;
    justify-content: center;
}

.progress_bar_badge-icon {
    margin-right: 6px;
    font-size: 12px;
}

.progress_bar_track {
    width: 100%;
    height: 36px;
    background-color: var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-lg) 0;
}

.progress_bar_fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    width: 0%;
    transition: width var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    font-family: var(--font-family);
}

.progress_bar_text {
    margin-top: var(--space-md);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    min-height: 1.25rem;
    font-family: var(--font-family);
}

@keyframes progressFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Streaming Preview Area */

.progress_streaming_preview {
    margin-top: var(--space-lg);
    height: 200px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    overflow: auto;
    position: relative;
    scroll-behavior: smooth;
}

.progress_streaming_content {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
}

.progress_streaming_line {
    animation: slideUpFadeIn 0.4s ease-out;
    opacity: 0.95;
}

.progress_streaming_line:first-child {
    color: transparent;
    background: linear-gradient(to bottom, transparent, var(--color-text));
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.8;
}

.progress_streaming_line:last-child {
    color: transparent;
    background: linear-gradient(to bottom, var(--color-text), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.8;
}

@keyframes slideUpFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 0.95;
    }
}
