espilon-source/tools/C3PO/hp_dashboard/static/hp/css/honeypot.css
Eun0us 79c2a4d4bf c3po: full server rewrite with modular routes and honeypot dashboard
Replace monolithic CLI and web server with route-based Flask API.
New routes: api_commands, api_build, api_can, api_monitor, api_ota,
api_tunnel. Add honeypot security dashboard with real-time SSE,
MITRE ATT&CK mapping, kill chain analysis.

New TUI with commander/help modules. Add session management,
tunnel proxy core, CAN bus data store. Docker support.
2026-02-28 20:12:27 +01:00

791 lines
41 KiB
CSS

/* ================================================================
ESPILON HONEYPOT DASHBOARD — Stylesheet
Adapted for new C3PO design system (SQL viewer theme)
Uses CSS variables from main.css
================================================================ */
/* Variable compatibility layer — map old names used by HP JS modules
to the new design system variables defined in main.css */
.hp-page {
--bg-primary: var(--bg-base);
--bg-secondary: var(--bg-surface);
--bg-tertiary: var(--bg-elevated);
--border-color: var(--border);
--border-medium: var(--border);
--border-subtle: var(--border-subtle);
--accent-primary: var(--accent);
--accent-primary-hover:var(--accent-hover);
--accent-secondary: var(--accent);
--btn-primary: var(--accent);
--btn-primary-hover: var(--accent-hover);
--status-online: var(--ok);
--status-success: var(--ok);
--status-error: var(--err);
--sev-med: var(--sev-medium);
--font-sans: var(--font-sans);
--font-mono: var(--font-mono);
--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 24px rgba(0,0,0,0.5);
--bg-hover: rgba(255,255,255,0.03);
--glass: rgba(255,255,255,0.05);
}
/* Page layout — fill the content area from base.html */
.hp-page {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
}
/* ── Header ────────────────────────────────────────────── */
.hp-header {
height: 32px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--sp-3);
gap: var(--sp-3);
background: var(--bg-surface);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.hp-header-kpis { display: flex; align-items: center; gap: var(--sp-2); }
.hp-header-kpi {
display: flex;
align-items: center;
gap: var(--sp-1);
background: var(--bg-elevated);
border-radius: var(--radius);
padding: 2px 8px;
border: 1px solid var(--border-subtle);
}
.hp-header-kpi-val { font-size: var(--fs-sm); font-weight: 700; font-family: var(--font-mono); }
.hp-header-kpi-label { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; }
.hp-header-controls { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
/* ── Sub-Nav Bar ───────────────────────────────────────── */
.hp-nav {
display: flex;
align-items: center;
justify-content: space-between;
height: 28px;
padding: 0 var(--sp-3);
background: var(--bg-base);
border-bottom: 1px solid var(--border-subtle);
position: relative;
flex-shrink: 0;
}
.hp-nav-tabs { display: flex; align-items: center; gap: 0; overflow-x: auto; }
.hp-nav-actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: var(--sp-3); flex-shrink: 0; }
.nav-btn {
display: flex;
align-items: center;
gap: var(--sp-1);
padding: 4px 10px;
font-size: var(--fs-xs);
font-weight: 500;
color: var(--text-secondary);
border: none;
border-bottom: 2px solid transparent;
background: transparent;
cursor: pointer;
white-space: nowrap;
transition: color 150ms;
}
.nav-btn:hover { color: var(--text-primary); }
.nav-btn.active { color: var(--accent-hover); border-bottom-color: var(--accent); }
.nav-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 16px;
height: 16px;
font-size: 10px;
font-weight: 600;
background: var(--err);
color: #fff;
border-radius: 8px;
padding: 0 4px;
}
.hp-nav-hamburger { display: none; }
/* ── Layout ────────────────────────────────────────────── */
.hp-layout {
display: grid;
grid-template-columns: 1fr;
flex: 1;
min-height: 0;
overflow: hidden;
}
.hp-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.hp-main-content { flex: 1; overflow-y: auto; padding: var(--sp-3); }
/* ── Search & Filters ──────────────────────────────────── */
.hp-search-bar {
display: none;
align-items: center;
gap: var(--sp-2);
padding: var(--sp-2) var(--sp-3);
border-bottom: 1px solid var(--border-subtle);
background: var(--bg-surface);
flex-shrink: 0;
}
.hp-search-icon { color: var(--text-muted); flex-shrink: 0; }
.hp-search-wrap { position: relative; display: flex; align-items: center; flex: 1; }
.hp-search-input {
width: 100%;
background: transparent;
border: none;
font-size: var(--fs-base);
color: var(--text-primary);
outline: none;
font-family: var(--font-mono);
}
.hp-search-input::placeholder { color: var(--text-muted); }
.hp-search-clear {
position: absolute;
right: 4px;
color: var(--text-muted);
font-size: 14px;
background: transparent;
border: none;
cursor: pointer;
display: none;
}
.hp-search-clear:hover { color: var(--text-primary); }
.filter-panel {
display: none;
align-items: center;
gap: var(--sp-2);
padding: var(--sp-2) var(--sp-3);
border-bottom: 1px solid var(--border-subtle);
background: var(--bg-surface);
flex-shrink: 0;
}
.filter-panel.active { display: flex; }
/* ── HP Sidebar ───────────────────────────────────────── */
.hp-sidebar {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: 280px;
z-index: 600;
transform: translateX(100%);
transition: transform 200ms;
background: var(--bg-surface);
border-left: 1px solid var(--border);
overflow-y: auto;
}
.hp-sidebar.sidebar-open { transform: translateX(0); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 590; }
.sidebar-overlay.active { display: block; }
.sb-section { border-bottom: 1px solid var(--border-subtle); }
.sb-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px var(--sp-3);
font-size: var(--fs-xs);
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
cursor: pointer;
user-select: none;
}
.sb-body { padding: 0 var(--sp-3) var(--sp-2); }
.sb-chevron { transition: transform 200ms; }
.sb-section.collapsed .sb-body { display: none; }
.sb-section.collapsed .sb-chevron { transform: rotate(-90deg); }
.sb-body-scroll { max-height: 200px; overflow-y: auto; }
.sb-body-scroll-sm { max-height: 140px; overflow-y: auto; }
/* ── HP Forms ─────────────────────────────────────────── */
.hp-select {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 3px 8px;
font-size: var(--fs-xs);
color: var(--text-primary);
cursor: pointer;
outline: none;
}
.hp-select:focus { border-color: var(--accent-border); }
.hp-input {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 3px 8px;
font-size: var(--fs-xs);
color: var(--text-primary);
font-family: var(--font-mono);
outline: none;
}
.hp-input::placeholder { color: var(--text-muted); }
.hp-input:focus { border-color: var(--accent-border); }
/* ── HP Buttons ───────────────────────────────────────── */
.hp-page .icon-btn {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius);
color: var(--text-secondary);
cursor: pointer;
border: none;
background: transparent;
transition: color 100ms, background 100ms;
}
.hp-page .icon-btn:hover { color: var(--text-primary); background: var(--bg-elevated); }
.btn-start { background: rgba(78,201,176,0.2); color: var(--ok); border: 1px solid rgba(78,201,176,0.3); }
.btn-start:hover { background: rgba(78,201,176,0.3); }
.btn-stop { background: rgba(244,71,71,0.2); color: var(--err); border: 1px solid rgba(244,71,71,0.3); }
.btn-stop:hover { background: rgba(244,71,71,0.3); }
.btn-ghost { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border-subtle); }
.btn-ack { font-size: 10px; padding: 2px 6px; background: var(--accent-bg); color: var(--accent-hover); border-radius: var(--radius-sm); cursor: pointer; border: none; }
.btn-ack:hover { background: rgba(86,156,214,0.25); }
.btn-refresh { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.btn-refresh:hover { background: var(--border-subtle); }
.btn-save { background: var(--accent-bg); color: var(--accent-hover); border: 1px solid var(--accent-border); }
.btn-save:hover { background: rgba(86,156,214,0.25); }
.btn-reset { background: var(--err-bg); color: var(--err); border: 1px solid rgba(244,71,71,0.3); }
.btn-reset:hover { background: rgba(244,71,71,0.25); }
/* ── Connection ────────────────────────────────────────── */
.conn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); display: inline-block; transition: background 150ms; }
.conn-dot.connected { background: var(--ok); }
.conn-indicator { display: flex; align-items: center; gap: 4px; }
.conn-label { font-size: var(--fs-xs); color: var(--text-muted); }
/* ── Alert Banner ──────────────────────────────────────── */
.alert-banner {
display: none;
align-items: center;
gap: var(--sp-2);
padding: var(--sp-1) var(--sp-3);
font-size: var(--fs-xs);
font-weight: 500;
color: #fecdd3;
cursor: pointer;
background: var(--err-bg);
border-bottom: 1px solid rgba(244,71,71,0.2);
flex-shrink: 0;
animation: alertPulse 2s ease-in-out infinite;
}
.alert-banner.active { display: flex; }
.alert-banner-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-banner-count { color: var(--err); font-family: var(--font-mono); }
.alert-banner-dismiss { margin-left: auto; color: rgba(244,71,71,0.6); cursor: pointer; font-size: 14px; background: transparent; border: none; line-height: 1; }
.alert-banner-dismiss:hover { color: var(--err); }
/* ── Event Rows ────────────────────────────────────────── */
.session-list { display: flex; flex-direction: column; }
.ev-row { padding: 6px var(--sp-3); border-bottom: 1px solid var(--border-subtle); cursor: pointer; transition: background 100ms; }
.ev-row:hover { background: var(--bg-hover); }
.ev-row.flash { animation: flashIn 1s ease-out; }
.ev-row-line1 { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-base); }
.ev-row-line2 { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; }
.ev-time { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-xs); flex-shrink: 0; }
.ev-layer { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; flex-shrink: 0; }
.ev-service { color: var(--text-primary); flex-shrink: 0; }
.ev-type { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-severity { font-size: var(--fs-xs); font-weight: 600; padding: 1px 4px; border-radius: var(--radius-sm); flex-shrink: 0; }
.ev-ip { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ok); flex-shrink: 0; cursor: pointer; }
.ev-ip:hover { text-decoration: underline; }
.ev-detail { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-mitre { display: flex; gap: 4px; flex-shrink: 0; }
/* ── Severity Colors ──────────────────────────────────── */
.sev-critical { color: var(--sev-crit); font-weight: 600; }
.sev-high { color: var(--sev-high); font-weight: 600; }
.sev-medium { color: var(--sev-medium); font-weight: 500; }
.sev-low { color: var(--sev-low); }
/* ── Tables ────────────────────────────────────────────── */
.ov-table { width: 100%; font-size: var(--fs-sm); border-collapse: collapse; }
.ov-table th { text-align: left; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }
.ov-table td { padding: 4px 0; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); }
.ov-table tr.clickable { cursor: pointer; }
.ov-table tr.clickable:hover { background: var(--bg-hover); }
/* ── Overview ──────────────────────────────────────────── */
.overview-grid { display: flex; flex-direction: column; gap: var(--sp-3); }
.ov-kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); }
.ov-kpi-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: var(--sp-3);
text-align: center;
}
.ov-kpi-val { font-size: 18px; font-weight: 700; }
.ov-kpi-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.ov-section {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius);
padding: var(--sp-3);
}
.ov-section-title { font-size: var(--fs-xs); font-weight: 600; color: var(--text-secondary); margin-bottom: var(--sp-2); text-transform: uppercase; }
.ov-chart-row { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-3); }
.ov-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.ov-devices-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
/* ── Device Cards ──────────────────────────────────────── */
.device-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: border-color 200ms;
}
.device-card:hover { border-color: var(--accent-border); }
.dev-card-header { display: flex; gap: var(--sp-2); padding: var(--sp-2); }
.dev-card-thumb {
position: relative;
width: 32px;
height: 32px;
border-radius: var(--radius);
background: var(--bg-elevated);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
}
.dev-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dev-card-dot { position: absolute; bottom: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg-surface); }
.dev-card-info { flex: 1; min-width: 0; }
.dev-card-name { font-size: var(--fs-base); font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-card-ip { font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--text-secondary); }
.dev-card-status { display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 2px; }
.dev-card-status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dev-card-lastseen { font-size: 10px; color: var(--text-muted); }
.dev-card-stats { display: flex; border-top: 1px solid var(--border-subtle); }
.dev-card-stats > * + * { border-left: 1px solid var(--border-subtle); }
.dev-card-stat { flex: 1; padding: 4px 0; text-align: center; }
.dev-card-stat-val { font-size: var(--fs-base); font-weight: 600; color: var(--text-primary); }
.dev-card-stat-label { font-size: 10px; color: var(--text-muted); }
.dev-card-severity-bar { display: flex; height: 3px; border-radius: 2px; overflow: hidden; }
/* ── Service Grid ──────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-1); }
.svc-card {
display: flex;
align-items: center;
gap: 4px;
background: var(--bg-elevated);
border-radius: var(--radius);
padding: 3px 6px;
font-size: var(--fs-xs);
}
.svc-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.svc-indicator.on { background: var(--ok); }
.svc-indicator.off { background: var(--text-muted); }
.svc-name { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-port { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.svc-toggle {
margin-left: auto;
padding: 1px 6px;
font-size: 10px;
border: 1px solid var(--border-subtle);
border-radius: 3px;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
flex-shrink: 0;
transition: all 0.15s;
}
.svc-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
.svc-toggle:disabled { opacity: 0.5; cursor: default; }
.svc-toggle-start { border-color: var(--ok); color: var(--ok); }
.svc-toggle-stop { border-color: var(--sev-high); color: var(--sev-high); }
.ev-load-more { text-align: center; padding: var(--sp-3) 0; }
/* ── Kill Chain ────────────────────────────────────────── */
.kc-row { display: flex; align-items: center; gap: var(--sp-2); padding: 4px var(--sp-3); border-bottom: 1px solid var(--border-subtle); }
.kc-row-header { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.kc-row-ip { width: 8rem; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-primary); flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
.kc-row-score { width: 3rem; font-size: var(--fs-sm); font-weight: 700; text-align: right; flex-shrink: 0; }
.kc-phases { flex: 1; display: flex; gap: 2px; }
.kc-phase-label { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.kc-bar { flex: 1; height: 16px; border-radius: var(--radius-sm); }
.kc-bar.empty { background: var(--bg-elevated); }
.kc-row-events { width: 3.5rem; font-size: var(--fs-sm); color: var(--text-secondary); text-align: right; flex-shrink: 0; }
.kc-row-dur { width: 4rem; font-size: var(--fs-sm); color: var(--text-muted); text-align: right; flex-shrink: 0; }
.kc-full-chain-badge { color: var(--sev-medium); margin-right: 4px; }
.kc-mitre-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.kc-detail-content > * + * { margin-top: var(--sp-3); }
.kc-detail-header { display: flex; align-items: center; justify-content: space-between; }
.kc-detail-ip { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 600; color: var(--text-primary); }
.kc-detail-score { font-size: 16px; font-weight: 700; }
.kc-detail-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-secondary); }
.kc-detail-bar { display: flex; gap: 2px; height: 8px; }
.kc-detail-phase { padding-left: var(--sp-2); padding-top: var(--sp-2); padding-bottom: var(--sp-2); border-left: 2px solid; }
.kc-detail-phase.inactive { opacity: 0.4; }
.kc-detail-phase-header { display: flex; align-items: center; justify-content: space-between; }
.kc-detail-phase-name { font-size: var(--fs-sm); font-weight: 600; color: var(--text-primary); }
.kc-detail-phase-info { font-size: var(--fs-xs); color: var(--text-muted); }
/* ── Toasts ────────────────────────────────────────────── */
.toast-container { position: fixed; top: var(--sp-3); right: var(--sp-3); z-index: 9999; display: flex; flex-direction: column; gap: var(--sp-2); pointer-events: none; }
.toast {
pointer-events: auto;
display: flex;
align-items: flex-start;
gap: var(--sp-2);
padding: var(--sp-2) var(--sp-3);
border-radius: var(--radius);
background: var(--bg-surface);
border: 1px solid var(--border);
box-shadow: var(--shadow-lg);
font-size: var(--fs-sm);
min-width: 240px;
max-width: 340px;
transform: translateX(120%);
opacity: 0;
transition: all 200ms;
position: relative;
overflow: hidden;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-icon { font-size: 14px; line-height: 1; margin-top: 1px; flex-shrink: 0; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; color: var(--text-primary); font-size: var(--fs-xs); }
.toast-text { color: var(--text-secondary); font-size: var(--fs-xs); margin-top: 1px; }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 2px; animation: toastProgress 4s linear forwards; }
/* ── Detail Panel ──────────────────────────────────────── */
.detail-panel {
position: fixed;
top: 0;
right: 0;
height: 100%;
width: 400px;
max-width: 100%;
z-index: 500;
background: var(--bg-surface);
border-left: 1px solid var(--border);
transform: translateX(100%);
transition: transform 200ms ease-out;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-lg);
}
.detail-panel.open { transform: translateX(0); }
.detail-hdr { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3); border-bottom: 1px solid var(--border); }
.detail-hdr h3 { font-size: var(--fs-base); font-weight: 600; color: var(--text-primary); }
.detail-close {
width: 24px; height: 24px;
display: flex; align-items: center; justify-content: center;
border-radius: var(--radius); color: var(--text-secondary);
cursor: pointer; font-size: 14px; border: none; background: transparent;
}
.detail-close:hover { color: var(--text-primary); background: var(--bg-elevated); }
.detail-body { flex: 1; overflow-y: auto; padding: var(--sp-3); }
.detail-body > * + * { margin-top: var(--sp-3); }
.detail-group > * + * { margin-top: var(--sp-2); }
.detail-group-title { font-size: var(--fs-xs); font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
.detail-field > * + * { margin-top: 2px; }
.detail-field-col { grid-column: span 1; }
.detail-field-full { grid-column: span 2; }
.detail-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.025em; }
.detail-value { display: block; font-size: var(--fs-sm); color: var(--text-primary); font-family: var(--font-mono); }
.detail-value.clickable { color: var(--accent-hover); cursor: pointer; }
.detail-value.clickable:hover { text-decoration: underline; }
.detail-copy-row { margin-top: var(--sp-3); text-align: right; }
/* ── Attacker Modal ────────────────────────────────────── */
.hp-page .modal-overlay {
position: fixed;
inset: 0;
z-index: 700;
background: rgba(0,0,0,0.6);
display: none;
align-items: center;
justify-content: center;
padding: var(--sp-3);
}
.hp-page .modal-overlay.open { display: flex; }
.modal-content {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
width: 100%;
max-width: 42rem;
max-height: 85vh;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-lg);
animation: scaleIn 0.15s ease-out;
}
.modal-hdr { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); }
.modal-hdr h2 { font-size: var(--fs-lg); font-weight: 600; color: var(--text-primary); font-family: var(--font-mono); }
.modal-close {
width: 24px; height: 24px;
display: flex; align-items: center; justify-content: center;
border-radius: var(--radius); color: var(--text-secondary);
cursor: pointer; font-size: 16px; border: none; background: transparent;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-elevated); }
.modal-body { flex: 1; overflow-y: auto; padding: var(--sp-4); }
.modal-body > * + * { margin-top: var(--sp-3); }
.modal-header-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.modal-header-ip { font-family: var(--font-mono); font-size: var(--fs-lg); color: var(--text-primary); font-weight: 600; }
.modal-header-vendor { font-size: var(--fs-xs); background: var(--bg-elevated); color: var(--text-secondary); padding: 1px 6px; border-radius: var(--radius); }
.modal-header-country { font-size: var(--fs-xs); color: var(--text-secondary); }
.modal-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.modal-stat-card { background: var(--bg-elevated); border-radius: var(--radius); padding: var(--sp-2); text-align: center; border: 1px solid var(--border-subtle); }
.modal-stat-val { font-size: 16px; font-weight: 700; color: var(--accent-hover); }
.modal-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.modal-info-block { background: var(--bg-elevated); border-radius: var(--radius); padding: var(--sp-2); margin-bottom: var(--sp-2); }
.modal-info-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.modal-info-row { font-size: var(--fs-sm); color: var(--text-primary); padding: 1px 0; }
.modal-tabs-bar { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: var(--sp-2); }
.modal-tab-btn {
padding: 4px 8px;
font-size: var(--fs-xs);
color: var(--text-secondary);
border: none;
border-bottom: 2px solid transparent;
cursor: pointer;
background: transparent;
transition: color 100ms;
}
.modal-tab-btn:hover { color: var(--text-primary); }
.modal-tab-btn.active { color: var(--accent-hover); border-bottom-color: var(--accent); }
.modal-session-card { padding: var(--sp-2); background: var(--bg-elevated); border-radius: var(--radius); margin-bottom: var(--sp-1); cursor: pointer; transition: background 100ms; }
.modal-session-card:hover { background: var(--border-subtle); }
.modal-session-card-top { display: flex; align-items: center; justify-content: space-between; }
.modal-session-card-time { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.modal-ev-sev { font-size: var(--fs-xs); margin-right: var(--sp-2); flex-shrink: 0; }
.modal-ev-type { font-size: var(--fs-sm); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-ev-time { font-size: var(--fs-sm); color: var(--text-muted); margin-left: auto; flex-shrink: 0; }
/* ── Replay Modal ──────────────────────────────────────── */
.replay-overlay { position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; padding: var(--sp-3); }
.replay-overlay.open { display: flex; }
.replay-content {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
width: 100%;
max-width: 48rem;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-lg);
animation: scaleIn 0.15s ease-out;
}
.replay-hdr { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); }
.replay-hdr-info { display: flex; align-items: center; gap: var(--sp-2); }
.replay-hdr-info h3 { font-size: var(--fs-base); font-weight: 600; color: var(--text-primary); }
.replay-hdr-info span { font-size: var(--fs-sm); color: var(--text-muted); font-family: var(--font-mono); }
.replay-close {
width: 24px; height: 24px;
display: flex; align-items: center; justify-content: center;
border-radius: var(--radius); color: var(--text-secondary);
cursor: pointer; font-size: 14px; border: none; background: transparent;
}
.replay-close:hover { color: var(--text-primary); background: var(--bg-elevated); }
.replay-controls {
display: flex; align-items: center; gap: var(--sp-2);
padding: var(--sp-2) var(--sp-3);
border-bottom: 1px solid var(--border);
background: var(--bg-base);
}
.replay-btn {
padding: 2px 8px; font-size: var(--fs-xs); font-weight: 500;
border-radius: var(--radius); background: var(--bg-elevated);
color: var(--text-primary); cursor: pointer;
border: 1px solid var(--border); transition: background 100ms;
}
.replay-btn:hover { background: var(--border-subtle); }
.replay-speed {
background: var(--bg-input); color: var(--text-primary);
font-size: var(--fs-xs); border: 1px solid var(--border);
border-radius: var(--radius); padding: 2px 6px; cursor: pointer;
}
.replay-progress { flex: 1; height: 4px; background: var(--bg-elevated); border-radius: 2px; cursor: pointer; position: relative; overflow: hidden; }
.replay-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 150ms; }
.replay-counter { font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-mono); flex-shrink: 0; }
.replay-terminal {
height: 16rem; overflow-y: auto; padding: var(--sp-3);
font-family: var(--font-mono); font-size: var(--fs-sm);
background: var(--bg-base); margin: var(--sp-3);
border-radius: var(--radius); border: 1px solid var(--border-subtle);
}
.replay-line { padding: 1px 0; color: var(--text-secondary); }
.replay-line-connect { color: var(--ok); }
.replay-line-auth-ok { color: var(--ok); }
.replay-line-auth-fail { color: var(--err); }
.replay-line-cmd { color: var(--accent-hover); }
.replay-line-http { color: var(--sev-medium); }
/* ── Charts ────────────────────────────────────────────── */
.chart-container { display: flex; align-items: center; justify-content: center; }
.chart-donut-wrapper { display: flex; align-items: center; gap: var(--sp-3); }
.chart-donut-ring { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chart-donut-center { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-base); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.chart-donut-total { font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary); }
.chart-donut-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; }
.chart-legend { display: flex; flex-direction: column; gap: 4px; }
.chart-legend-item { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.chart-legend-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.chart-legend-label { color: var(--text-secondary); width: 4rem; }
.chart-timeline { display: flex; align-items: flex-end; gap: 2px; width: 100%; }
.chart-bar-col { display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.chart-bar-crit { background: var(--sev-crit); border-top-left-radius: 1px; border-top-right-radius: 1px; }
.chart-bar-high { background: var(--sev-high); }
.chart-bar-med { background: var(--sev-medium); }
.chart-bar-low { background: var(--sev-low); border-bottom-left-radius: 1px; border-bottom-right-radius: 1px; }
.chart-time-label { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--text-muted); white-space: nowrap; }
/* ── Sidebar Stats ─────────────────────────────────────── */
.sev-stat-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 0; font-size: var(--fs-sm); }
.sev-stat-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: var(--sp-2); }
.sev-stat-count { font-family: var(--font-mono); font-weight: 600; color: var(--text-primary); }
.layer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-1); }
.layer-box { background: var(--bg-elevated); border-radius: var(--radius); padding: var(--sp-2); text-align: center; border-top: 2px solid; }
.layer-box-val { font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary); }
.layer-box-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.atk-row { padding: 4px 6px; cursor: pointer; border-radius: var(--radius); margin: 0 -6px; transition: background 100ms; }
.atk-row:hover { background: var(--bg-hover); }
.atk-row-top { display: flex; align-items: center; justify-content: space-between; }
.atk-row-ip { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-primary); }
.atk-row-count { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-hover); }
.atk-row-vendor { font-size: 10px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atk-row-bar { height: 3px; background: var(--bg-elevated); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.atk-row-bar-fill { height: 100%; background: var(--accent-bg); border-radius: 2px; }
.alert-item { background: var(--bg-elevated); border-radius: var(--radius); padding: 6px; margin-bottom: var(--sp-1); border-left: 2px solid; }
.alert-item.acked { opacity: 0.5; }
.alert-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-2); }
.alert-item-msg { font-size: var(--fs-sm); color: var(--text-primary); line-height: 1.5; }
.alert-item-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.hist-item { display: flex; align-items: center; gap: var(--sp-2); padding: 2px 0; font-size: var(--fs-sm); }
.hist-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.hist-cmd { font-family: var(--font-mono); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-time { color: var(--text-muted); margin-left: auto; flex-shrink: 0; font-size: 10px; }
/* ── MITRE Tags ────────────────────────────────────────── */
.mitre-tag {
display: inline-block;
padding: 1px 4px;
font-size: 10px;
font-family: var(--font-mono);
font-weight: 500;
background: var(--accent-bg);
color: var(--accent-hover);
border: 1px solid var(--accent-border);
border-radius: var(--radius-sm);
}
.mitre-tag-malware { background: var(--err-bg); color: var(--err); border-color: rgba(244,71,71,0.3); }
/* ── Empty States & Skeletons ──────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 0; color: var(--text-muted); }
.empty-state-icon { font-size: 28px; margin-bottom: var(--sp-2); opacity: 0.4; }
.empty-state-title { font-size: var(--fs-base); font-weight: 500; color: var(--text-secondary); }
.empty-state-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; }
.skeleton + .skeleton { margin-top: var(--sp-2); }
.skeleton-row {
height: 32px; border-radius: var(--radius);
background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--border-subtle) 50%, var(--bg-elevated) 100%);
background-size: 200% 100%;
animation: shimmer 2s ease-in-out infinite;
}
.loading-spinner { width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin: 2rem auto; animation: spin 0.8s linear infinite; }
/* ── HP Status Footer ─────────────────────────────────── */
.hp-statusbar {
height: 22px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--sp-3);
background: var(--bg-base);
border-top: 1px solid var(--border-subtle);
font-size: var(--fs-xs);
flex-shrink: 0;
}
.hp-statusbar-left, .hp-statusbar-right { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-muted); }
.hp-statusbar-sep { color: var(--border); }
/* ── Utility Classes ──────────────────────────────────── */
.text-accent { color: var(--accent-hover); }
.text-crit { color: var(--sev-crit); }
.text-error { color: var(--err); }
.font-mono { font-family: var(--font-mono); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.clickable { cursor: pointer; }
/* ── MITRE ATT&CK Matrix ─────────────────────────────── */
.mitre-summary { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.mitre-stat { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); text-align: center; flex: 1; min-width: 80px; }
.mitre-stat-val { display: block; font-size: 18px; font-weight: 700; }
.mitre-stat-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.mitre-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-2); }
.mitre-col { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mitre-col.active { border-color: var(--accent); }
.mitre-tactic-header { padding: 6px 8px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.mitre-tactic-name { font-size: var(--fs-xs); font-weight: 600; color: var(--text-primary); }
.mitre-tactic-count { font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-bg); padding: 1px 5px; border-radius: var(--radius); }
.mitre-technique { padding: 4px 8px; border-bottom: 1px solid var(--border-subtle); cursor: default; transition: background 150ms; }
.mitre-technique:last-child { border-bottom: none; }
.mitre-technique:hover { filter: brightness(1.15); }
.mitre-technique.empty { color: var(--text-muted); font-size: var(--fs-xs); text-align: center; padding: var(--sp-3); font-style: italic; }
.mitre-tech-id { font-size: 10px; color: var(--accent); font-family: var(--font-mono); }
.mitre-tech-name { font-size: var(--fs-xs); color: var(--text-primary); margin-top: 1px; }
.mitre-tech-count { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
/* ── Responsive ────────────────────────────────────────── */
@media (min-width: 640px) {
.ov-devices-grid { grid-template-columns: repeat(2, 1fr); }
.svc-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 768px) {
.hp-nav-tabs { display: flex; }
.hp-nav-hamburger { display: none; }
}
@media (min-width: 1024px) {
.hp-layout { grid-template-columns: 1fr 280px; }
.hp-sidebar {
position: relative;
width: auto;
z-index: auto;
transform: none;
transition: none;
background: var(--bg-surface);
border-left: 1px solid var(--border-subtle);
}
.ov-devices-grid { grid-template-columns: repeat(3, 1fr); }
}
.hp-nav-tabs.nav-open {
display: flex; flex-direction: column;
position: absolute; top: 28px; left: 0; right: 0;
background: var(--bg-surface);
border-bottom: 1px solid var(--border);
box-shadow: var(--shadow-lg);
z-index: 170;
padding: var(--sp-1);
}
/* ── Animations ────────────────────────────────────────── */
@keyframes flashIn { 0% { background: var(--accent-bg); } 100% { background: transparent; } }
@keyframes critFlash { 0%, 100% { background: transparent; } 50% { background: var(--err-bg); } }
@keyframes alertPulse { 0%, 100% { background: var(--err-bg); } 50% { background: rgba(244,71,71,0.18); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }