/* ============================================
   ArtSell Dashboard — Тёмная тема
   ============================================ */

/* --- Базовые переменные --- */
:root {
    --bg-primary: #020617;       /* Slate-950 */
    --bg-secondary: #0f172a;     /* Slate-900 */
    --bg-card: #1e293b;          /* Slate-800 */
    --bg-hover: #334155;         /* Slate-700 */
    --border-color: #334155;     /* Slate-700 */

    --text-primary: #f1f5f9;     /* Slate-100 */
    --text-secondary: #94a3b8;   /* Slate-400 */
    --text-muted: #64748b;       /* Slate-500 */

    --accent-cyan: #22d3ee;      /* Cyan-400 */
    --accent-emerald: #34d399;   /* Emerald-400 */
    --accent-violet: #8b5cf6;    /* Violet-500 */
    --accent-amber: #fbbf24;     /* Amber-400 */
    --accent-rose: #f43f5e;      /* Rose-500 */
    --accent-blue: #3b82f6;      /* Blue-500 */

    --success: #34d399;
    --warning: #fbbf24;
    --error: #f43f5e;
    --info: #22d3ee;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);

    --transition: 0.2s ease;
    --transition-slow: 0.35s ease;
}

/* --- Сброс и основа --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

/* --- Кастомный скроллбар --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Боковая панель --- */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition-slow);
}

.sidebar-logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.sidebar-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.sidebar-nav .nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* --- Основной контент --- */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 32px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Карточки --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* --- Статистические карточки --- */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.cyan .stat-value { color: var(--accent-cyan); }
.stat-card.emerald .stat-value { color: var(--accent-emerald); }
.stat-card.violet .stat-value { color: var(--accent-violet); }
.stat-card.amber .stat-value { color: var(--accent-amber); }

/* --- Кнопки --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
    color: #000;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: #000;
}

.btn-success:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-amber), #d97706);
    color: #000;
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-rose), #e11d48);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- Формы --- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-inline {
    display: flex;
    gap: 12px;
    align-items: end;
}

.form-inline .form-group {
    margin-bottom: 0;
    flex: 1;
}

/* --- Таблицы --- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead {
    background: var(--bg-secondary);
}

th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: rgba(34, 211, 238, 0.03);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* --- Бейджи статусов --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-error {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-info {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.badge-violet {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-violet);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* --- Зона загрузки --- */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-secondary);
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
}

.upload-zone .upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.upload-zone p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-zone .upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upload-preview {
    margin-top: 16px;
    display: none;
}

.upload-preview.active {
    display: block;
}

.upload-preview img {
    max-width: 300px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* --- Сетка миниатюр фото --- */
.upload-preview-grid {
    margin-top: 16px;
    display: none;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-preview-grid.active {
    display: flex;
}

.photo-thumb {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: border-color 0.2s;
}

.photo-thumb:hover {
    border-color: var(--accent-cyan);
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: var(--accent-rose);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-thumb:hover .photo-remove {
    opacity: 1;
}

.photo-label {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0,0,0,0.7);
    color: var(--text-primary);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- PDF зона --- */
.upload-zone-pdf {
    border-color: var(--accent-amber);
}

.upload-zone-pdf:hover, .upload-zone-pdf.drag-over {
    border-color: var(--accent-amber);
    background: rgba(251, 191, 36, 0.05);
}

.pdf-preview {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid var(--accent-amber);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-icon {
    font-size: 1.5rem;
}

/* --- Заголовок анализа --- */
.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* --- Результат анализа --- */
.analysis-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
}

.analysis-card h4 {
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.valuation-big {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-emerald);
    font-family: var(--font-mono);
}

/* --- Индикатор загрузки --- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

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

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay.active {
    display: flex;
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Поиск и фильтры --- */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.search-bar .form-input {
    max-width: 400px;
}

/* --- Модальное окно --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.8);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.modal-close {
    float: right;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* --- Tabs (внутренние) --- */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

/* --- Пустое состояние --- */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 1rem;
}

/* --- Сообщения --- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    z-index: 10000;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    box-shadow: var(--shadow-lg);
}

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

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.toast-success { background: #059669; }
.toast-error { background: var(--accent-rose); }
.toast-info { background: #0e7490; }

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        padding: 12px;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .card-grid, .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar .form-input {
        max-width: 100%;
    }
}

/* --- Чекбоксы --- */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-label:hover {
    border-color: var(--accent-cyan);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-cyan);
    width: 18px;
    height: 18px;
}

/* --- Цепочка писем --- */
.thread-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thread-message {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--border-color);
}

.thread-message.reply {
    border-left-color: var(--accent-cyan);
}

.thread-message .thread-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.thread-message .thread-body {
    color: var(--text-primary);
    line-height: 1.6;
}

/* --- Чарты (простые шкалы) --- */
.chart-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.chart-bar .chart-label {
    width: 120px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.chart-bar .chart-track {
    flex: 1;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.chart-bar .chart-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.chart-fill.cyan { background: var(--accent-cyan); }
.chart-fill.emerald { background: var(--accent-emerald); }
.chart-fill.violet { background: var(--accent-violet); }
.chart-fill.amber { background: var(--accent-amber); }

/* ============================================
   Временная шкала прогресса анализа
   ============================================ */

.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 20px;
    box-shadow: var(--shadow-md);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* Спиннер */
.progress-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.progress-spinner.done {
    border: 3px solid var(--success);
    border-top-color: var(--success);
    animation: none;
    position: relative;
}

.progress-spinner.done::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--success);
    font-weight: 700;
    font-size: 14px;
    animation: none;
}

.progress-spinner.error {
    border-color: var(--error);
    border-top-color: var(--error);
    animation: none;
}

.progress-spinner.error::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--error);
    font-weight: 700;
    font-size: 14px;
    animation: none;
}

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

/* Шкала шагов */
.progress-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-slow);
    opacity: 0.45;
}

.progress-step.completed {
    opacity: 0.85;
    background: rgba(52, 211, 153, 0.04);
}

.progress-step.active {
    opacity: 1;
    background: rgba(34, 211, 238, 0.08);
    box-shadow: inset 3px 0 0 var(--accent-cyan);
}

.progress-step.error {
    opacity: 1;
    background: rgba(244, 63, 94, 0.08);
    box-shadow: inset 3px 0 0 var(--error);
}

.progress-step-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    transition: all var(--transition-slow);
}

.progress-step.completed .progress-step-icon {
    border-color: var(--success);
    background: rgba(52, 211, 153, 0.1);
}

.progress-step.active .progress-step-icon {
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.12);
    animation: pulse-icon 1.5s ease-in-out infinite;
}

.progress-step.error .progress-step-icon {
    border-color: var(--error);
    background: rgba(244, 63, 94, 0.1);
}

@keyframes pulse-icon {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
}

.progress-step-body {
    flex: 1;
    min-width: 0;
}

.progress-step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-slow);
}

.progress-step.completed .progress-step-label {
    color: var(--text-primary);
}

.progress-step.active .progress-step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.progress-step-detail {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.progress-step-status {
    flex-shrink: 0;
    font-size: 0.75rem;
}

.progress-step-pending {
    color: var(--text-muted);
}

.progress-step-active {
    color: var(--accent-cyan);
    font-weight: 600;
    animation: blink-text 1s ease-in-out infinite;
}

.progress-step-done {
    color: var(--success);
    font-weight: 700;
}

.progress-step-error {
    color: var(--error);
    font-weight: 600;
}

@keyframes blink-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Коннекторы между шагами */
.progress-connector {
    width: 2px;
    height: 14px;
    margin-left: 33px;
    background: var(--border-color);
    transition: background var(--transition-slow);
}

.progress-connector.completed {
    background: var(--success);
}

