﻿.live-stream-overlay {
    margin-top: 1rem;
}

.live-stream-overlay.active {
    transition: opacity 0.2s ease-in-out;
}

.live-stream-card {
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid transparent;
    background: #f9fafb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.live-stream-card .live-stream-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.live-stream-card .live-stream-body {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.4;
}

.live-stream-card.live-stream-yes {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #065f46;
}

.live-stream-card.live-stream-no {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

/* ── Activity Sidebar ─────────────────────────────────────────────────────── */

.activity-sidebar {
    position: fixed;
    right: -300px;
    top: 60px;
    width: 300px;
    height: calc(100vh - 60px);
    background: var(--bg-secondary, #fff);
    border-left: 1px solid var(--border-color, #e5e7eb);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
    z-index: 500;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.activity-sidebar.activity-sidebar--expanded {
    right: 0;
}

.activity-sidebar__toggle {
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 56px;
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-right: none;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.06);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text-secondary, #6b7280);
}

.activity-sidebar__toggle:hover {
    background: var(--bg-tertiary, #f9fafb);
    color: var(--text-primary, #374151);
}

.activity-sidebar__header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-primary, #111827);
    flex-shrink: 0;
}

.activity-sidebar__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* ── Log Entries ─────────────────────────────────────────────────────────── */

.activity-log-entry {
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.activity-log-entry--status {
    background: var(--bg-tertiary, #f3f4f6);
    border-left-color: var(--text-muted, #6b7280);
    color: var(--text-secondary, #374151);
}

.activity-log-entry--round {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.activity-log-entry--error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.activity-log-entry--streaming[data-agent="yes"],
.activity-log-entry--done[data-agent="yes"] {
    background: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}

.activity-log-entry--streaming[data-agent="no"],
.activity-log-entry--done[data-agent="no"] {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.activity-log-entry--done {
    opacity: 0.65;
}

.activity-log-time {
    color: var(--text-muted, #9ca3af);
    font-size: 10px;
    margin-right: 6px;
    font-variant-numeric: tabular-nums;
}

.activity-log-agent {
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 6px;
}

.activity-log-preview {
    display: block;
    margin-top: 2px;
    font-style: italic;
}

/* ── Dark mode overrides ─────────────────────────────────────────────────── */

[data-theme="dark"] .activity-log-entry--round {
    background: #1e3a5f;
    color: #93c5fd;
}

[data-theme="dark"] .activity-log-entry--error {
    background: #1a0505;
    color: #fca5a5;
}

[data-theme="dark"] .activity-log-entry--streaming[data-agent="yes"],
[data-theme="dark"] .activity-log-entry--done[data-agent="yes"] {
    background: #052e16;
    color: #6ee7b7;
}

[data-theme="dark"] .activity-log-entry--streaming[data-agent="no"],
[data-theme="dark"] .activity-log-entry--done[data-agent="no"] {
    background: #1a0505;
    color: #fca5a5;
}
