/* ========================================================================== ZOMBIELAND — C2 Dashboard Professional command-and-control dashboard layout. Uses Bjorn design tokens exclusively (no hardcoded colors). ========================================================================== */ /* ---------------------------------------------------------------- 0) Container & top-level layout ---------------------------------------------------------------- */ .zombieland-container.page-with-sidebar { height: calc(100vh - var(--h-topbar, 56px) - var(--h-bottombar, 56px) - 24px); display: flex; min-height: 0; } /* ---------------------------------------------------------------- 1) Sidebar ---------------------------------------------------------------- */ .zl-sidebar.page-sidebar { width: 270px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--grad-card); border: 1px solid var(--c-border); border-radius: 12px; overflow-y: auto; } .zl-sidebar .sidehead { padding: 12px 14px; border-bottom: 1px solid var(--c-border); } .zl-sidebar .sidecontent { padding: 12px 14px; display: flex; flex-direction: column; gap: 14px; flex: 1; overflow-y: auto; } /* ---------------------------------------------------------------- 2) Stat cards (sidebar) ---------------------------------------------------------------- */ .zl-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .stat-item { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--c-border); padding: 10px 12px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; transition: border-color 0.2s, box-shadow 0.2s; } .stat-item:hover { border-color: var(--c-border-strong); box-shadow: 0 0 12px var(--acid-0f); } /* Make the last stat card (C2 Port) span both columns */ .stat-item:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; } .stat-item .stat-value { font-weight: 800; color: var(--acid); font-size: 1.45rem; font-family: 'Fira Code', 'JetBrains Mono', monospace; line-height: 1.1; letter-spacing: -0.02em; } .stat-item .stat-value.stat-online { color: var(--ok); text-shadow: 0 0 8px rgba(44, 255, 126, 0.4); } .stat-item .stat-value.stat-offline { color: var(--danger); text-shadow: 0 0 8px rgba(255, 59, 59, 0.3); } .stat-item .stat-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; } /* ---------------------------------------------------------------- 3) Sidebar toolbar (buttons) ---------------------------------------------------------------- */ .zl-toolbar { display: flex; flex-direction: column; gap: 6px; } .zl-toolbar .btn { width: 100%; justify-content: flex-start; font-size: 0.8rem; gap: 6px; } /* ---------------------------------------------------------------- 4) Main area ---------------------------------------------------------------- */ .zl-main.page-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; } /* ---------------------------------------------------------------- 5) Main grid — Console (2/3) + Agents (1/3) ---------------------------------------------------------------- */ .zl-main-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; flex: 1; min-height: 0; } /* ---------------------------------------------------------------- 6) Shared panel styles ---------------------------------------------------------------- */ .zl-console-panel, .zl-agents-panel, .zl-logs-panel { border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-panel); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); } .zl-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15)); border-bottom: 1px solid var(--c-border); flex-shrink: 0; gap: 8px; min-height: 40px; } .zl-panel-title { font-weight: 700; font-size: 0.85rem; color: var(--acid); display: flex; align-items: center; gap: 6px; white-space: nowrap; } .zl-panel-title i, .zl-panel-title svg { width: 14px; height: 14px; opacity: 0.7; } /* ---------------------------------------------------------------- 7) Console panel ---------------------------------------------------------------- */ /* Quick command bar */ .zl-quickbar { display: flex; gap: 4px; flex-wrap: wrap; } .quick-cmd { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--c-border-strong); color: var(--muted); font-size: 0.7rem; font-family: 'Fira Code', 'JetBrains Mono', monospace; padding: 3px 8px; border-radius: 4px; cursor: pointer; transition: all 0.15s ease; white-space: nowrap; } .quick-cmd:hover { color: var(--acid); border-color: var(--acid); background: rgba(0, 255, 154, 0.06); box-shadow: 0 0 6px var(--acid-0f); } /* Console output */ .zl-console-output { flex: 1; overflow-y: auto; padding: 12px 14px; font-family: 'Fira Code', 'JetBrains Mono', monospace; font-size: 0.78rem; line-height: 1.5; background: var(--bg); min-height: 0; } /* Console input bar */ .zl-console-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--c-border); background: var(--c-panel-2); flex-shrink: 0; align-items: center; } .zl-target-select { background: var(--bg); color: var(--ink); border: 1px solid var(--c-border-strong); padding: 7px 10px; border-radius: 6px; font-size: 0.78rem; font-family: inherit; min-width: 120px; cursor: pointer; transition: border-color 0.15s; } .zl-target-select:focus { border-color: var(--acid); outline: none; box-shadow: 0 0 0 2px var(--acid-22); } .zl-cmd-input { flex: 1; background: var(--bg); color: var(--ink); border: 1px solid var(--c-border-strong); padding: 7px 12px; border-radius: 6px; font-family: 'Fira Code', 'JetBrains Mono', monospace; font-size: 0.8rem; transition: border-color 0.15s; } .zl-cmd-input::placeholder { color: var(--muted); opacity: 0.5; } .zl-cmd-input:focus { border-color: var(--acid); outline: none; box-shadow: 0 0 0 2px var(--acid-22); } /* Console output items */ .console-line { margin-bottom: 2px; display: flex; gap: 8px; padding: 2px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.02); } .console-line:last-child { border-bottom: none; } .console-time { color: var(--muted); opacity: 0.6; font-size: 0.72rem; white-space: nowrap; flex-shrink: 0; } .console-type { font-weight: 700; font-size: 0.72rem; min-width: 32px; text-align: center; flex-shrink: 0; } .console-type.tx { color: var(--acid); } .console-type.rx { color: var(--acid-2); } .console-type.info { color: var(--ink); opacity: 0.6; } .console-type.error { color: var(--danger); } .console-type.success { color: var(--ok); } .console-target { color: var(--muted); opacity: 0.7; font-size: 0.72rem; flex-shrink: 0; } .console-content { flex: 1; min-width: 0; } .console-content pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-family: inherit; font-size: inherit; color: var(--ink); } /* ---------------------------------------------------------------- 8) Agents panel ---------------------------------------------------------------- */ /* Agent panel header toolbar */ .zl-toolbar-left { display: flex; position: relative; flex: 1; max-width: 180px; margin-left: 8px; } .zl-search-input { width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--c-border-strong); border-radius: 6px; padding: 5px 24px 5px 8px; font-size: 0.75rem; transition: border-color 0.15s; } .zl-search-input::placeholder { color: var(--muted); opacity: 0.5; } .zl-search-input:focus { border-color: var(--acid); outline: none; box-shadow: 0 0 0 2px var(--acid-22); } .zl-search-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--muted); background: none; border: none; cursor: pointer; padding: 2px; line-height: 1; opacity: 0.6; transition: opacity 0.15s; } .zl-search-clear:hover { opacity: 1; color: var(--ink); } /* Agent list container */ .zl-agents-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; } /* Empty state */ .zl-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 0.82rem; opacity: 0.6; text-align: center; padding: 20px; } /* ---------------------------------------------------------------- 9) Agent cards ---------------------------------------------------------------- */ .zl-agent-card { background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2)); border: 1px solid var(--c-border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; transition: all 0.2s ease-out; position: relative; } .zl-agent-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 10px 10px 0 0; background: transparent; transition: background 0.2s; } .zl-agent-card:hover { border-color: var(--c-border-hi); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); } .zl-agent-card.selected { border-color: var(--acid); background: linear-gradient(180deg, rgba(0, 255, 154, 0.04), rgba(0, 255, 154, 0.01)); } .zl-agent-card.selected::before { background: var(--acid); } /* Pulse animation on telemetry */ @keyframes zl-card-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 154, 0.3); } 70% { box-shadow: 0 0 0 6px rgba(0, 255, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 154, 0); } } .zl-agent-card.pulse { animation: zl-card-pulse 0.6s ease-out; } /* Stale / offline visual indicators */ .zl-agent-card.agent-stale-yellow { border-left: 3px solid var(--warning); } .zl-agent-card.agent-stale-orange { border-left: 3px solid #ff8800; } .zl-agent-card.agent-stale-red { border-left: 3px solid var(--danger); opacity: 0.7; } /* Card header */ .zl-card-header { display: flex; align-items: center; gap: 8px; } .zl-card-header .agent-checkbox { flex-shrink: 0; accent-color: var(--acid); cursor: pointer; width: 14px; height: 14px; } .zl-card-identity { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .zl-card-hostname { font-weight: 700; color: var(--ink); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .zl-card-id { font-size: 0.65rem; color: var(--muted); opacity: 0.7; font-family: 'Fira Code', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Status pill */ .zl-pill { padding: 2px 10px; border-radius: 12px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; background: rgba(255, 255, 255, 0.05); color: var(--muted); } .zl-pill.online { color: var(--ok); background: rgba(44, 255, 126, 0.1); box-shadow: 0 0 6px rgba(44, 255, 126, 0.15); } .zl-pill.idle { color: var(--warning); background: rgba(255, 209, 102, 0.1); } .zl-pill.offline { color: var(--danger); background: rgba(255, 59, 59, 0.08); } /* Info row (OS, IP, CPU/RAM) */ .zl-card-info { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.72rem; color: var(--ink); opacity: 0.8; background: rgba(0, 0, 0, 0.2); padding: 5px 8px; border-radius: 6px; } .zl-info-row { display: flex; gap: 4px; white-space: nowrap; } .zl-info-label { color: var(--muted); opacity: 0.6; font-size: 0.68rem; } .zl-info-value { color: var(--ink); font-family: 'Fira Code', monospace; font-size: 0.7rem; } /* ECG heartbeat row */ .zl-ecg-row { display: flex; align-items: center; gap: 8px; } .ecg { width: 100%; height: 22px; max-width: 130px; position: relative; overflow: hidden; background: rgba(0, 0, 0, 0.4); border-radius: 6px; border: 1px solid var(--c-border-muted); } .ecg-wrapper { display: flex; width: 300%; animation: ecg-slide linear infinite; } .ecg svg { width: 33.33%; height: 100%; } .ecg path { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; } .ecg.green path { stroke: var(--ok); filter: drop-shadow(0 0 3px rgba(44, 255, 126, 0.5)); } .ecg.yellow path { stroke: var(--warning); filter: drop-shadow(0 0 3px rgba(255, 209, 102, 0.4)); } .ecg.orange path { stroke: #ff8800; filter: drop-shadow(0 0 3px rgba(255, 136, 0, 0.4)); } .ecg.red path { stroke: var(--danger); filter: drop-shadow(0 0 2px rgba(255, 59, 59, 0.3)); } .ecg.flat .ecg-wrapper { animation: none; } @keyframes ecg-slide { 0% { transform: translateX(0); } 100% { transform: translateX(-33.33%); } } .zl-ecg-counter { font-size: 0.68rem; color: var(--muted); font-family: 'Fira Code', monospace; opacity: 0.7; min-width: 28px; text-align: right; } /* Card action buttons */ .zl-card-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 2px; padding-top: 4px; border-top: 1px solid var(--c-border-muted); } .zl-card-actions .btn { font-size: 0.72rem; } .zl-card-actions .btn-icon { width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; } /* ---------------------------------------------------------------- 10) Logs panel (bottom) ---------------------------------------------------------------- */ .zl-logs-panel { height: 160px; flex-shrink: 0; } .zl-logs-output { flex: 1; overflow-y: auto; padding: 8px 14px; font-family: 'Fira Code', 'JetBrains Mono', monospace; font-size: 0.72rem; line-height: 1.5; background: var(--bg); min-height: 0; } .zl-log-line { display: flex; gap: 8px; margin-bottom: 1px; padding: 1px 0; } .zl-log-text { color: var(--ink); opacity: 0.8; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ---------------------------------------------------------------- 11) Modals ---------------------------------------------------------------- */ .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-content { background: var(--grad-card); border: 1px solid var(--c-border-strong); padding: 24px; border-radius: 14px; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); } .modal-title { color: var(--acid); font-size: 1rem; margin: 0 0 16px 0; } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--c-border); } .form-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; } .form-grid label { font-size: 0.8rem; color: var(--muted); } .grid-col-2 { display: flex; gap: 8px; } .deploy-options { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-border); } .deploy-options h4 { color: var(--ink); font-size: 0.85rem; margin: 0 0 8px 0; } .checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink); cursor: pointer; } .checkbox-label input[type="checkbox"] { accent-color: var(--acid); } .file-browser-nav { display: flex; gap: 8px; margin-bottom: 12px; } .file-browser-nav .input { flex: 1; } .file-list { min-height: 200px; max-height: 400px; overflow-y: auto; background: var(--bg); border: 1px solid var(--c-border); border-radius: 8px; padding: 10px; font-family: 'Fira Code', monospace; font-size: 0.78rem; color: var(--ink); } /* ---------------------------------------------------------------- 12) Utility classes ---------------------------------------------------------------- */ .hidden { display: none !important; } .flex-grow { flex: 1; } /* ---------------------------------------------------------------- 13) Scrollbar styling (scoped to zombieland) ---------------------------------------------------------------- */ .zombieland-container ::-webkit-scrollbar { width: 6px; height: 6px; } .zombieland-container ::-webkit-scrollbar-track { background: transparent; } .zombieland-container ::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 3px; } .zombieland-container ::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hi); } /* ---------------------------------------------------------------- 14) Responsive / mobile ---------------------------------------------------------------- */ @media (max-width: 1200px) { .zl-quickbar { display: none; } } @media (max-width: 900px) { .zombieland-container.page-with-sidebar { height: auto; min-height: calc(100vh - var(--h-topbar, 56px) - var(--h-bottombar, 56px) - 24px); flex-direction: column; } .zombieland-container .zl-sidebar { width: 100%; max-height: none; flex-shrink: 0; border-radius: 10px; } .zl-stats-grid { grid-template-columns: repeat(3, 1fr); } .stat-item:last-child { grid-column: auto; } .zl-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .zl-main-grid { grid-template-columns: 1fr; gap: 12px; } .zl-console-panel { height: 360px; flex: none; } .zl-agents-panel { height: 400px; flex: none; } .zl-logs-panel { height: 180px; } .zl-console-input-row { flex-wrap: wrap; } .zl-target-select { width: 100%; min-width: 0; } .zl-cmd-input { width: 100%; } .zl-card-header { flex-wrap: wrap; } .zl-card-info { flex-direction: column; gap: 2px; } .zl-quickbar { display: flex; } .zl-toolbar-left { max-width: none; margin-left: 0; margin-top: 6px; } } @media (max-width: 600px) { .zl-stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-item .stat-value { font-size: 1.15rem; } .zl-console-panel { height: 300px; } .zl-agents-panel { height: 350px; } .zl-panel-header { flex-wrap: wrap; gap: 6px; padding: 6px 10px; } }