/* =============================================================
   terminal.css — Inode Analyzer v3.8
   Terminal de eventos SSE: container, linhas, badges inline,
   barra de progresso.
   ============================================================= */

/* ── Container do terminal ───────────────────────────────────── */
.term-card {
    background:    var(--term-bg);
    border-radius: 10px;
    overflow:      hidden;
    border:        1px solid var(--border-hi);
    box-shadow:    var(--shadow-md);
}

.term-header {
    background:     var(--bg-elevated);
    padding:        8px 16px;
    display:        flex;
    align-items:    center;
    justify-content: space-between;
    border-bottom:  1px solid var(--border-hi);
}
.term-title {
    font-family: 'JetBrains Mono', monospace;
    font-size:   10px;
    color:       var(--text-3);
}
.term-dots {
    display: flex;
    gap:     5px;
}
.term-dot {
    width:        10px;
    height:       10px;
    border-radius: 50%;
}
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green  { background: #28c840; }

/* ── Área de log ─────────────────────────────────────────────── */
.terminal {
    height:      300px;
    padding:     14px 16px;
    overflow-y:  auto;
    font-family: 'JetBrains Mono', monospace;
    font-size:   11px;
    line-height: 1.5;
    display:     flex;
    flex-direction: column;
    gap:         2px;
    color:       var(--text-1);
}

/* Scrollbar interna do terminal */
.terminal::-webkit-scrollbar       { width: 6px; }
.terminal::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.terminal::-webkit-scrollbar-thumb {
    background:    var(--border-hi);
    border-radius: 3px;
    border:        2px solid var(--term-bg);
}
.terminal::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Linhas do terminal ──────────────────────────────────────── */
.terminal-line {
    display:     flex;
    align-items: baseline;
    gap:         8px;
    padding:     1px 0;
    flex-shrink: 0;
}
.terminal-line.info     { color: #94a3b8; }
.terminal-line.file     { color: var(--term-green); }
.terminal-line.warning  { color: var(--yellow); }
.terminal-line.error    { color: var(--red); }
.terminal-line.done     { color: var(--accent); font-weight: 600; }

.terminal-line .t-size {
    color:       var(--text-3);
    margin-left: auto;
    flex-shrink: 0;
    font-size:   10px;
}
.terminal-line .t-path {
    overflow:      hidden;
    text-overflow: ellipsis;
    white-space:   nowrap;
    flex:          1;
    min-width:     0;
}

/* ── Badges inline (novo v3.8) ───────────────────────────────── */
.badge-inline {
    display:        inline-flex;
    align-items:    center;
    gap:            3px;
    font-size:      8px;
    font-weight:    700;
    padding:        1px 5px;
    border-radius:  3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink:    0;
    line-height:    1.4;
}
.badge-inline.orphan {
    background: var(--badge-orphan-bg);
    color:      var(--badge-orphan-fg);
}
.badge-inline.junk {
    background: var(--badge-junk-bg);
    color:      var(--badge-junk-fg);
}
.badge-inline.pattern {
    background: var(--badge-pattern-bg);
    color:      var(--badge-pattern-fg);
}

/* ── Barra de progresso ──────────────────────────────────────── */
.progress-strip {
    height:     3px;
    background: rgba(255,255,255,0.03);
    position:   relative;
}
.loading-bar-fill {
    position:   absolute;
    left:       0;
    top:        0;
    height:     100%;
    background: var(--accent);
    width:      0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}
