/* ══ Tabbr — Tab Panel Styles ════════════════════════════════════════════════
   Extends Streamr's style.css with Guitar/Tab-specific components.
   All variables are inherited from style.css.
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── Guitar Sidebar Panel ─────────────────────────────────────────────────── */
#guitar-panel {
    background: linear-gradient(135deg, rgba(30,0,60,0.3) 0%, rgba(0,0,0,0) 100%);
    border-top: 1px solid rgba(124,58,237,0.2);
    padding-bottom: 12px;
}

.tab-heading {
    color: var(--accent-primary) !important;
    letter-spacing: 0.08em;
}

.tab-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 10px 0 4px;
}

.tab-select {
    margin-bottom: 0;
}

/* ─── Camera Previews ──────────────────────────────────────────────────────── */
.tab-cam-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 10px 0;
}

.tab-cam-preview {
    position: relative;
    background: rgba(0,0,0,0.5);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.tab-cam-preview canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tab-cam-label {
    position: absolute;
    bottom: 4px;
    left: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    background: rgba(0,0,0,0.5);
    padding: 1px 5px;
    border-radius: 3px;
}

/* Camera pipeline status badge — shown inline below each camera select.
   States: — (off) | ◌ Initializing… | ● Active | ⚠ error text */
.cam-status-badge {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 3px 0 0;
    min-height: 14px;
    transition: color .2s;
    letter-spacing: 0.02em;
}

/* ─── Tab Controls ─────────────────────────────────────────────────────────── */
.tab-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.tab-rec-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ef4444;
    animation: tab-blink 1.2s step-end infinite;
}

.tab-rec-indicator::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: tab-blink 0.8s ease-in-out infinite;
}

@keyframes tab-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* ─── Live Tab Strip ───────────────────────────────────────────────────────── */
.tab-strip {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(124,58,237,0.25);
    margin-bottom: 8px;
}

.tab-strip-header {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(124,58,237,0.1);
    border-bottom: 1px solid rgba(124,58,237,0.2);
}

.tab-strip-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent-primary, #7c3aed);
    text-transform: uppercase;
}

.tab-canvas-wrap {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: #000;
}

#tab-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ─── Tab Session History (right sidebar) ──────────────────────────────────── */
.tab-history-section {
    max-height: 240px;
    overflow-y: auto;
}

.tab-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tab-session-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
}

.tab-session-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-session-meta {
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tab-session-actions {
    display: flex;
    gap: 6px;
}

.tab-linked {
    color: var(--accent-primary);
}

.tab-empty {
    color: var(--text-muted);
    font-size: 11px;
    font-style: italic;
    padding: 8px 0;
}

/* ─── login.html Tabbr Rebrand ─────────────────────────────────────────────── */
.tabbr-tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
    letter-spacing: 0.04em;
}
