:root {
    --bg-dark: #0a0e17;
    --bg-panel: #111827;
    --border: #1f2937;
    --accent: #38bdf8;
    --text: #f3f4f6;
    --text-dim: #9ca3af;
    --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Courier New', Courier, monospace, system-ui; }

body { background: var(--bg-dark); color: var(--text); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.navbar { height: 60px; background: var(--bg-panel); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo h1 { font-size: 1.1rem; letter-spacing: 2px; color: var(--text); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px #10b981; }
.badge { background: #064e3b; color: #34d399; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; border: 1px solid #059669; }

.metrics { display: flex; gap: 20px; }
.metric-card { text-align: center; }
.metric-card span { font-size: 1.2rem; font-weight: bold; color: var(--accent); }
.metric-card span.alert { color: var(--danger); }
.metric-card label { display: block; font-size: 0.65rem; color: var(--text-dim); }

.controls { display: flex; gap: 10px; }
button { padding: 6px 14px; border: none; border-radius: 4px; cursor: pointer; font-size: 0.8rem; font-weight: bold; }
.btn-primary { background: var(--accent); color: #000; }
.btn-secondary { background: var(--border); color: var(--text); }

.container { display: flex; flex: 1; position: relative; height: calc(100vh - 60px); }

.sidebar-left { width: 320px; background: var(--bg-panel); border-right: 1px solid var(--border); padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.input-search, .select-kc { width: 100%; padding: 8px; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text); border-radius: 4px; font-size: 0.85rem; }

.legend { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 0.75rem; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.cp-list { list-style: none; margin-top: 5px; font-size: 0.8rem; }
.cp-list li { padding: 6px; background: var(--bg-dark); margin-bottom: 5px; border-left: 3px solid #10b981; border-radius: 2px; cursor: pointer; }

.network-viewport { flex: 1; height: 100%; background: #07090e; }

.sidebar-right { position: absolute; right: 0; top: 0; width: 380px; height: 100%; background: var(--bg-panel); border-left: 1px solid var(--border); padding: 20px; box-shadow: -5px 0 20px rgba(0,0,0,0.5); z-index: 10; display: flex; flex-direction: column; }
.sidebar-right.hidden { display: none; }
.inspector-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.btn-close { background: none; border: none; color: var(--text-dim); font-size: 1.5rem; cursor: pointer; }
.inspector-body { margin-top: 15px; overflow-y: auto; font-size: 0.85rem; line-height: 1.5; }
