Files
compliance-scanner-agent/compliance-dashboard/assets/main.css
Sharang Parnerkar c461faa2fb
All checks were successful
CI / Check (push) Has been skipped
CI / Detect Changes (push) Successful in 7s
CI / Deploy Agent (push) Successful in 2s
CI / Deploy Dashboard (push) Successful in 2s
CI / Deploy Docs (push) Successful in 2s
CI / Deploy MCP (push) Successful in 2s
feat: pentest onboarding — streaming, browser automation, reports, user cleanup (#16)
Complete pentest feature overhaul: SSE streaming, session-persistent browser tool (CDP), AES-256 credential encryption, auto-screenshots in reports, code-level remediation correlation, SAST triage chunking, context window optimization, test user cleanup (Keycloak/Auth0/Okta), wizard dropdowns, attack chain improvements, architecture docs with Mermaid diagrams.

Co-authored-by: Sharang Parnerkar <parnerkarsharang@gmail.com>
Reviewed-on: #16
2026-03-17 20:32:20 +00:00

3648 lines
76 KiB
CSS

/* ═══════════════════════════════════════════════════════════════
OBSIDIAN CONTROL — Compliance Scanner Dashboard
A precision security operations center aesthetic
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');
/* ── Design Tokens ── */
:root {
--sidebar-width: 264px;
--header-height: 56px;
/* Surfaces */
--bg-primary: #060a13;
--bg-secondary: #0b1120;
--bg-card: rgba(12, 20, 38, 0.75);
--bg-card-solid: #0c1426;
--bg-card-hover: #101c34;
--bg-elevated: #111b30;
/* Text */
--text-primary: #e4eaf4;
--text-secondary: #5e7291;
--text-tertiary: #3d506b;
/* Accent */
--accent: #00c8ff;
--accent-hover: #40d8ff;
--accent-muted: rgba(0, 200, 255, 0.12);
--accent-glow: 0 0 20px rgba(0, 200, 255, 0.15);
/* Borders */
--border: #162038;
--border-bright: #1e3050;
--border-accent: rgba(0, 200, 255, 0.2);
/* Status */
--danger: #ff3b5c;
--danger-bg: rgba(255, 59, 92, 0.1);
--warning: #ffb020;
--warning-bg: rgba(255, 176, 32, 0.1);
--success: #00e676;
--success-bg: rgba(0, 230, 118, 0.1);
--info: #448aff;
--info-bg: rgba(68, 138, 255, 0.1);
--orange: #ff8a3d;
--orange-bg: rgba(255, 138, 61, 0.1);
/* Typography */
--font-display: 'Outfit', -apple-system, sans-serif;
--font-body: 'DM Sans', -apple-system, sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
/* Radii */
--radius-sm: 6px;
--radius: 10px;
--radius-lg: 14px;
/* Transitions */
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* ── Reset & Base ── */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
font-family: var(--font-body);
font-size: 14px;
line-height: 1.6;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
}
a {
color: var(--accent);
text-decoration: none;
transition: color 0.15s;
}
a:hover {
color: var(--accent-hover);
}
h1, h2, h3, h4 {
font-family: var(--font-display);
font-weight: 700;
letter-spacing: -0.01em;
line-height: 1.25;
}
code {
font-family: var(--font-mono);
font-size: 0.9em;
}
::selection {
background: var(--accent);
color: var(--bg-primary);
}
/* ── App Shell ── */
.app-shell {
display: flex;
min-height: 100vh;
}
/* ── Sidebar ── */
.sidebar {
width: var(--sidebar-width);
background: var(--bg-secondary);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 40;
overflow-y: auto;
overflow-x: hidden;
transition: width 0.2s ease;
}
.sidebar.collapsed {
width: 60px;
}
.sidebar.collapsed + .main-content {
margin-left: 60px;
}
.sidebar::after {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 1px;
background: linear-gradient(
to bottom,
transparent,
var(--accent-muted) 30%,
var(--accent-muted) 70%,
transparent
);
pointer-events: none;
}
.sidebar-header {
padding: 22px 20px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 12px;
position: relative;
}
.sidebar-header::after {
content: '';
position: absolute;
bottom: -1px;
left: 20px;
right: 20px;
height: 1px;
background: linear-gradient(to right, var(--accent-muted), transparent);
}
.sidebar-header svg {
color: var(--accent);
filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.3));
}
.sidebar-header h1 {
font-family: var(--font-display);
font-size: 15px;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.01em;
}
.sidebar-nav {
padding: 12px 10px;
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
}
.nav-item {
display: flex;
align-items: center;
gap: 11px;
padding: 9px 14px;
border-radius: var(--radius);
color: var(--text-secondary);
text-decoration: none;
font-family: var(--font-body);
font-size: 13.5px;
font-weight: 500;
transition: all 0.2s var(--ease-out);
cursor: pointer;
position: relative;
border: 1px solid transparent;
}
.nav-item svg {
opacity: 0.6;
transition: opacity 0.2s;
flex-shrink: 0;
}
.nav-item:hover {
background: rgba(0, 200, 255, 0.06);
color: var(--text-primary);
border-color: var(--border);
}
.nav-item:hover svg {
opacity: 0.9;
}
.nav-item.active {
background: var(--accent-muted);
color: var(--accent);
border-color: var(--border-accent);
font-weight: 600;
}
.nav-item.active::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 18px;
background: var(--accent);
border-radius: 0 4px 4px 0;
box-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
}
.nav-item.active svg {
opacity: 1;
color: var(--accent);
}
.sidebar-spacer {
flex: 1;
}
.sidebar-user {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border-top: 1px solid var(--border);
}
.sidebar.collapsed .sidebar-user {
justify-content: center;
flex-direction: column;
gap: 6px;
padding: 12px 8px;
}
.user-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.15));
border: 2px solid rgba(56, 189, 248, 0.2);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: border-color 0.2s;
}
.user-avatar:hover {
border-color: rgba(56, 189, 248, 0.4);
}
.avatar-initials {
font-size: 14px;
font-weight: 700;
color: var(--accent);
line-height: 1;
text-transform: uppercase;
}
.avatar-img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
}
.user-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.user-name {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.logout-link {
font-size: 11px;
color: var(--text-tertiary);
text-decoration: none;
transition: color 0.15s;
}
.logout-link:hover {
color: #fca5a5;
}
.logout-btn-icon {
display: flex;
align-items: center;
justify-content: center;
color: var(--text-tertiary);
text-decoration: none;
transition: color 0.15s;
}
.logout-btn-icon:hover {
color: #fca5a5;
}
.sidebar-legal {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px 16px 14px;
font-size: 11px;
}
.sidebar-legal a {
color: var(--text-tertiary);
text-decoration: none;
transition: color 0.15s;
}
.sidebar-legal a:hover {
color: var(--text-secondary);
}
.legal-dot {
color: var(--text-tertiary);
opacity: 0.5;
}
.sidebar-toggle {
background: none;
border: none;
border-top: 1px solid var(--border);
color: var(--text-tertiary);
padding: 12px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s, background 0.2s;
}
.sidebar-toggle:hover {
color: var(--accent);
background: rgba(0, 200, 255, 0.06);
}
.sidebar.collapsed .sidebar-header {
padding: 22px 0;
justify-content: center;
}
.sidebar.collapsed .sidebar-nav {
padding: 12px 6px;
}
.sidebar.collapsed .nav-item {
justify-content: center;
padding: 9px;
}
.sidebar.collapsed .nav-item.active::before {
left: 0;
}
/* ── Main Content ── */
.main-content {
margin-left: var(--sidebar-width);
flex: 1;
padding: 28px 36px;
transition: margin-left 0.2s ease;
min-height: 100vh;
background-image: radial-gradient(circle at 1px 1px, rgba(22, 32, 56, 0.5) 1px, transparent 0);
background-size: 28px 28px;
position: relative;
}
/* ── Page Header ── */
/* ── Back Navigation ── */
.back-nav {
margin-bottom: 12px;
}
.btn-back {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
padding: 6px 12px;
color: var(--text-secondary);
}
.btn-back:hover {
color: var(--text-primary);
}
.page-header {
margin-bottom: 28px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border);
position: relative;
}
.page-header::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 80px;
height: 2px;
background: var(--accent);
border-radius: 1px;
box-shadow: var(--accent-glow);
}
.page-header h2 {
font-family: var(--font-display);
font-size: 26px;
font-weight: 800;
color: var(--text-primary);
letter-spacing: -0.02em;
}
.page-header p {
color: var(--text-secondary);
margin-top: 5px;
font-size: 14px;
}
/* ── Stat Cards ── */
.stat-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
gap: 14px;
margin-bottom: 28px;
}
.stat-card {
background: var(--bg-card);
backdrop-filter: blur(12px);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px 22px;
position: relative;
overflow: hidden;
transition: all 0.25s var(--ease-out);
}
.stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, var(--accent), transparent);
opacity: 0.5;
}
.stat-card:hover {
border-color: var(--border-bright);
transform: translateY(-1px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.stat-card .label,
.stat-card .stat-label {
font-family: var(--font-body);
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-secondary);
margin-bottom: 8px;
}
.stat-card .value,
.stat-card .stat-value {
font-family: var(--font-mono);
font-size: 30px;
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1;
}
/* ── Cards ── */
.card {
background: var(--bg-card);
backdrop-filter: blur(12px);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 22px;
margin-bottom: 16px;
position: relative;
transition: border-color 0.2s;
}
.card:hover {
border-color: var(--border-bright);
}
.card-header {
font-family: var(--font-display);
font-size: 15px;
font-weight: 600;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
color: var(--text-primary);
letter-spacing: -0.01em;
}
/* ── Tables ── */
.table-wrapper {
overflow-x: auto;
margin: -2px;
padding: 2px;
}
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
}
thead tr {
position: relative;
}
th {
text-align: left;
padding: 10px 16px;
font-family: var(--font-body);
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-tertiary);
border-bottom: 1px solid var(--border-bright);
white-space: nowrap;
position: sticky;
top: 0;
background: var(--bg-card-solid);
}
td {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
font-size: 13.5px;
color: var(--text-primary);
vertical-align: middle;
}
tbody tr {
transition: background-color 0.15s;
position: relative;
}
tbody tr:hover {
background: rgba(0, 200, 255, 0.03);
}
tbody tr:last-child td {
border-bottom: none;
}
/* ── Badges ── */
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
border-radius: 6px;
font-family: var(--font-mono);
font-size: 11px;
font-weight: 500;
letter-spacing: 0.02em;
white-space: nowrap;
border: 1px solid transparent;
}
.badge-critical {
background: var(--danger-bg);
color: #ff6b82;
border-color: rgba(255, 59, 92, 0.25);
box-shadow: 0 0 10px rgba(255, 59, 92, 0.08);
}
.badge-high {
background: var(--orange-bg);
color: #ffaa6b;
border-color: rgba(255, 138, 61, 0.25);
}
.badge-medium {
background: var(--warning-bg);
color: #ffc85c;
border-color: rgba(255, 176, 32, 0.2);
}
.badge-low {
background: var(--success-bg);
color: #5cffaa;
border-color: rgba(0, 230, 118, 0.2);
}
.badge-info {
background: var(--info-bg);
color: #7aabff;
border-color: rgba(68, 138, 255, 0.2);
}
.badge-danger {
background: var(--danger-bg);
color: #ff6b82;
border-color: rgba(255, 59, 92, 0.25);
}
.badge-success {
background: var(--success-bg);
color: #5cffaa;
border-color: rgba(0, 230, 118, 0.2);
}
/* ── Buttons ── */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 8px 18px;
border-radius: var(--radius);
font-family: var(--font-body);
font-size: 13px;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.2s var(--ease-out);
white-space: nowrap;
position: relative;
letter-spacing: 0.01em;
}
.btn-primary {
background: var(--accent);
color: var(--bg-primary);
box-shadow: 0 0 16px rgba(0, 200, 255, 0.2);
}
.btn-primary:hover {
background: var(--accent-hover);
box-shadow: 0 0 24px rgba(0, 200, 255, 0.3);
transform: translateY(-1px);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
color: var(--text-primary);
border-color: var(--accent);
background: var(--accent-muted);
}
.btn-ghost-danger:hover {
color: var(--danger);
border-color: var(--danger);
background: var(--danger-bg);
}
.btn-scanning {
opacity: 0.7;
cursor: not-allowed;
display: inline-flex;
align-items: center;
gap: 6px;
}
.btn-icon {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 8px;
min-width: 32px;
}
/* ── Overview Cards Grid ── */
.overview-section {
margin-top: 28px;
}
.overview-section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.overview-section-header h3 {
font-family: var(--font-display);
font-size: 18px;
font-weight: 700;
color: var(--text-primary);
}
.overview-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 14px;
}
.overview-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
transition: border-color 0.2s, box-shadow 0.2s;
text-decoration: none;
color: inherit;
display: flex;
align-items: center;
gap: 12px;
}
.overview-card:hover {
border-color: var(--accent);
box-shadow: 0 0 16px rgba(0, 200, 255, 0.06);
}
.overview-card-icon {
color: var(--accent);
flex-shrink: 0;
}
.overview-card-body {
min-width: 0;
}
.overview-card-title {
font-weight: 600;
font-size: 14px;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.overview-card-sub {
font-size: 12px;
color: var(--text-secondary);
margin-top: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.mcp-status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.mcp-status-dot.running { background: var(--success); }
.mcp-status-dot.stopped { background: var(--text-tertiary); }
.mcp-status-dot.error { background: var(--danger); }
/* ── MCP Server Cards ── */
.mcp-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
gap: 16px;
}
.mcp-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
transition: border-color 0.2s;
}
.mcp-card:hover {
border-color: var(--border-bright);
}
.mcp-card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.mcp-card-title {
display: flex;
align-items: center;
gap: 10px;
}
.mcp-card-title h3 {
font-family: var(--font-display);
font-size: 16px;
font-weight: 600;
margin: 0;
color: var(--text-primary);
}
.mcp-card-status {
font-size: 11px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 2px 8px;
border-radius: 10px;
}
.mcp-card-status.running {
color: var(--success);
background: var(--success-bg);
}
.mcp-card-status.stopped {
color: var(--text-secondary);
background: var(--bg-secondary);
}
.mcp-card-status.error {
color: var(--danger);
background: var(--danger-bg);
}
.mcp-card-desc {
font-size: 13px;
color: var(--text-secondary);
margin: 0 0 16px;
line-height: 1.4;
}
.mcp-card-details {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 16px;
padding: 12px;
background: var(--bg-secondary);
border-radius: var(--radius-md);
}
.mcp-detail-row {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--text-secondary);
}
.mcp-detail-label {
font-size: 12px;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 6px;
min-width: 80px;
flex-shrink: 0;
}
.mcp-detail-value {
font-family: var(--font-mono);
font-size: 12px;
color: var(--text-primary);
word-break: break-all;
}
.mcp-card-tools {
margin-bottom: 16px;
}
.mcp-tools-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
}
.mcp-tool-chip {
font-family: var(--font-mono);
font-size: 11px;
padding: 3px 10px;
background: var(--accent-muted);
color: var(--accent);
border-radius: 12px;
border: 1px solid var(--border-accent);
}
.mcp-card-token {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px;
background: var(--bg-secondary);
border-radius: var(--radius-md);
margin-bottom: 12px;
}
.mcp-token-display {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex: 1;
color: var(--text-secondary);
}
.mcp-token-code {
font-family: var(--font-mono);
font-size: 12px;
color: var(--text-primary);
word-break: break-all;
}
.mcp-token-actions {
display: flex;
gap: 4px;
flex-shrink: 0;
}
.mcp-card-footer {
font-size: 11px;
color: var(--text-tertiary);
}
/* ── DAST Stat Cards ── */
.stat-card-item {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
text-align: center;
}
.stat-card-value {
font-family: var(--font-display);
font-size: 28px;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 6px;
}
.stat-card-label {
font-size: 13px;
color: var(--text-secondary);
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
/* ── Button active state ── */
.btn-active,
.btn.btn-active {
background: var(--accent-muted);
border-color: var(--accent);
color: var(--accent);
}
.spinner {
display: inline-block;
width: 14px;
height: 14px;
border: 2px solid var(--border-bright);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.btn-danger {
background: var(--danger);
color: #fff;
border: 1px solid var(--danger);
}
.btn-danger:hover {
background: #e0334f;
box-shadow: 0 0 12px rgba(255, 59, 92, 0.3);
}
/* ── Modal ── */
.modal-overlay {
position: fixed;
inset: 0;
z-index: 1000;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
}
.modal-dialog {
background: var(--bg-card-solid);
border: 1px solid var(--border-bright);
border-radius: var(--radius-lg);
padding: 24px 28px;
max-width: 460px;
width: 90%;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.modal-dialog h3 {
font-family: var(--font-display);
font-size: 18px;
font-weight: 600;
margin-bottom: 12px;
}
.modal-dialog p {
font-size: 14px;
color: var(--text-secondary);
line-height: 1.5;
margin-bottom: 8px;
}
.modal-warning {
color: var(--danger) !important;
font-size: 13px !important;
background: var(--danger-bg);
border-radius: var(--radius-sm);
padding: 10px 12px;
margin-top: 4px;
}
.modal-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 20px;
}
.btn-secondary {
background: transparent;
color: var(--accent);
border: 1px solid var(--border-accent);
}
.btn-secondary:hover {
background: var(--accent-muted);
border-color: var(--accent);
}
.btn-sm {
padding: 5px 12px;
font-size: 12px;
border-radius: var(--radius-sm);
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border-bright);
}
.btn-sm:hover {
color: var(--accent);
border-color: var(--accent);
background: var(--accent-muted);
}
.btn:active {
transform: scale(0.97);
}
.btn:disabled {
opacity: 0.45;
cursor: not-allowed;
pointer-events: none;
}
/* ── Code Blocks ── */
.code-block {
background: #050a12;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 18px;
font-family: var(--font-mono);
font-size: 12.5px;
line-height: 1.7;
overflow-x: auto;
white-space: pre;
color: var(--text-primary);
}
/* ── Pagination ── */
.pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin-top: 18px;
padding-top: 14px;
border-top: 1px solid var(--border);
}
.pagination span {
font-family: var(--font-mono);
font-size: 12px;
color: var(--text-tertiary);
letter-spacing: 0.02em;
}
/* ── Filter Bar ── */
.filter-bar {
display: flex;
gap: 10px;
margin-bottom: 18px;
flex-wrap: wrap;
}
.filter-bar select,
.filter-bar input {
background: var(--bg-card-solid);
border: 1px solid var(--border-bright);
border-radius: var(--radius);
padding: 8px 14px;
color: var(--text-primary);
font-family: var(--font-body);
font-size: 13px;
transition: border-color 0.2s;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
}
.filter-bar select {
padding-right: 32px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e7291' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
}
.filter-bar select:hover,
.filter-bar input:hover,
.filter-bar select:focus,
.filter-bar input:focus {
border-color: var(--accent);
outline: none;
}
/* ── Forms ── */
.form-group {
margin-bottom: 18px;
}
.form-group label {
display: block;
font-family: var(--font-body);
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 7px;
color: var(--text-secondary);
}
.form-group input,
.form-group select {
width: 100%;
background: var(--bg-primary);
border: 1px solid var(--border-bright);
border-radius: var(--radius);
padding: 10px 14px;
color: var(--text-primary);
font-family: var(--font-body);
font-size: 14px;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
border-color: var(--accent);
outline: none;
box-shadow: 0 0 0 3px var(--accent-muted);
}
.form-group input::placeholder {
color: var(--text-tertiary);
}
/* ── Loading State ── */
.loading {
display: flex;
align-items: center;
justify-content: center;
padding: 48px;
font-family: var(--font-mono);
font-size: 13px;
color: var(--text-tertiary);
letter-spacing: 0.03em;
}
.loading::before {
content: '';
width: 16px;
height: 16px;
border: 2px solid var(--border-bright);
border-top-color: var(--accent);
border-radius: 50%;
margin-right: 12px;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ── Severity Chart ── */
.severity-chart {
display: flex;
gap: 8px;
align-items: flex-end;
height: 200px;
padding: 16px 0;
}
.severity-bar {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
height: 100%;
justify-content: flex-end;
}
.severity-bar-count {
font-family: var(--font-mono);
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
}
.severity-bar-fill {
width: 100%;
border-radius: 4px 4px 0 0;
min-height: 4px;
transition: height 0.6s var(--ease-out);
position: relative;
}
.severity-bar-fill::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(to top, transparent, rgba(255,255,255,0.1));
}
.severity-bar-label {
font-family: var(--font-body);
font-size: 11px;
font-weight: 500;
color: var(--text-tertiary);
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* ── Toast Notifications ── */
.toast-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 50;
display: flex;
flex-direction: column;
gap: 8px;
pointer-events: none;
}
.toast {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-width: 300px;
max-width: 440px;
padding: 12px 16px;
border-radius: var(--radius);
font-family: var(--font-body);
font-size: 13px;
font-weight: 500;
pointer-events: auto;
animation: toast-in 0.35s var(--ease-spring);
backdrop-filter: blur(16px);
}
.toast-success {
background: rgba(0, 230, 118, 0.1);
border: 1px solid rgba(0, 230, 118, 0.3);
color: #5cffaa;
box-shadow: 0 4px 20px rgba(0, 230, 118, 0.08);
}
.toast-error {
background: rgba(255, 59, 92, 0.1);
border: 1px solid rgba(255, 59, 92, 0.3);
color: #ff6b82;
box-shadow: 0 4px 20px rgba(255, 59, 92, 0.08);
}
.toast-info {
background: rgba(68, 138, 255, 0.1);
border: 1px solid rgba(68, 138, 255, 0.3);
color: #7aabff;
box-shadow: 0 4px 20px rgba(68, 138, 255, 0.08);
}
.toast-dismiss {
background: none;
border: none;
color: inherit;
font-size: 18px;
cursor: pointer;
opacity: 0.5;
padding: 0 4px;
line-height: 1;
transition: opacity 0.15s;
}
.toast-dismiss:hover {
opacity: 1;
}
@keyframes toast-in {
from {
transform: translateX(100%) scale(0.95);
opacity: 0;
}
to {
transform: translateX(0) scale(1);
opacity: 1;
}
}
/* ── Stagger Animation for Cards ── */
.stat-cards > .stat-card {
animation: card-in 0.5s var(--ease-out) both;
}
.stat-cards > .stat-card:nth-child(1) { animation-delay: 0s; }
.stat-cards > .stat-card:nth-child(2) { animation-delay: 0.04s; }
.stat-cards > .stat-card:nth-child(3) { animation-delay: 0.08s; }
.stat-cards > .stat-card:nth-child(4) { animation-delay: 0.12s; }
.stat-cards > .stat-card:nth-child(5) { animation-delay: 0.16s; }
.stat-cards > .stat-card:nth-child(6) { animation-delay: 0.20s; }
.stat-cards > .stat-card:nth-child(7) { animation-delay: 0.24s; }
.stat-cards > .stat-card:nth-child(8) { animation-delay: 0.28s; }
.stat-cards > .stat-card:nth-child(9) { animation-delay: 0.32s; }
@keyframes card-in {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ── Scrollbar ── */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border-bright);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-tertiary);
}
/* ── Graph Explorer ── */
.graph-toolbar {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
flex-wrap: wrap;
}
.graph-search-bar {
flex: 1;
max-width: 400px;
}
.graph-search-bar input {
width: 100%;
background: var(--bg-card-solid);
border: 1px solid var(--border-bright);
border-radius: var(--radius);
padding: 8px 14px;
color: var(--text-primary);
font-family: var(--font-body);
font-size: 13px;
transition: border-color 0.2s;
}
.graph-search-bar input:focus {
border-color: var(--accent);
outline: none;
box-shadow: 0 0 0 3px var(--accent-muted);
}
.graph-search-bar input::placeholder {
color: var(--text-tertiary);
}
.graph-explorer-layout {
display: grid;
grid-template-columns: 250px 1fr;
gap: 0;
height: calc(100vh - 200px);
min-height: 500px;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
background: var(--bg-card);
}
.graph-explorer-layout.inspector-open {
grid-template-columns: 250px 550px 1fr;
}
/* File Tree Panel */
.file-tree-panel {
background: var(--bg-secondary);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
}
.file-tree-header {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
}
.file-tree-header h4 {
font-family: var(--font-display);
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-secondary);
}
.file-tree-search {
padding: 8px 10px;
border-bottom: 1px solid var(--border);
}
.file-tree-search input {
width: 100%;
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 5px 10px;
color: var(--text-primary);
font-family: var(--font-body);
font-size: 12px;
transition: border-color 0.2s;
}
.file-tree-search input:focus {
border-color: var(--accent);
outline: none;
}
.file-tree-search input::placeholder {
color: var(--text-tertiary);
}
.file-tree-content {
flex: 1;
overflow-y: auto;
padding: 4px 0;
}
.file-tree-empty {
padding: 20px 16px;
color: var(--text-tertiary);
font-size: 12px;
text-align: center;
}
.file-tree-item {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
cursor: pointer;
font-size: 12px;
color: var(--text-secondary);
transition: all 0.15s;
user-select: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.file-tree-item:hover {
background: rgba(0, 200, 255, 0.06);
color: var(--text-primary);
}
.file-tree-icon {
flex-shrink: 0;
width: 14px;
text-align: center;
font-size: 10px;
color: var(--text-tertiary);
}
.file-tree-dir .file-tree-icon {
color: var(--accent);
}
.file-tree-file .file-tree-icon {
color: var(--text-tertiary);
font-size: 8px;
}
.file-tree-name {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
}
.file-tree-dir .file-tree-name {
font-weight: 500;
color: var(--text-primary);
}
.file-tree-badge {
flex-shrink: 0;
background: var(--accent-muted);
color: var(--accent);
font-family: var(--font-mono);
font-size: 10px;
font-weight: 500;
padding: 1px 5px;
border-radius: 4px;
}
/* Graph Canvas Panel */
.graph-canvas-panel {
display: flex;
flex-direction: column;
background: var(--bg-primary);
position: relative;
overflow: hidden;
}
.graph-canvas {
flex: 1;
width: 100%;
min-height: 0;
}
/* ── Graph Stabilization Overlay ── */
.graph-stab-overlay {
position: absolute;
inset: 0;
z-index: 20;
display: flex;
align-items: center;
justify-content: center;
background: radial-gradient(ellipse at center, rgba(6, 10, 19, 0.88) 0%, rgba(6, 10, 19, 0.96) 100%);
backdrop-filter: blur(6px);
transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}
.graph-stab-overlay.graph-stab-fade-out {
opacity: 0;
pointer-events: none;
}
.graph-stab-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
}
/* Orbital rings */
.graph-stab-rings {
position: relative;
width: 120px;
height: 120px;
}
.graph-stab-ring {
position: absolute;
inset: 0;
border-radius: 50%;
border: 1px solid transparent;
}
.graph-stab-ring-1 {
border-top-color: rgba(0, 200, 255, 0.6);
border-right-color: rgba(0, 200, 255, 0.15);
animation: stab-orbit 2.4s linear infinite;
filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.3));
}
.graph-stab-ring-2 {
inset: 14px;
border-bottom-color: rgba(224, 64, 251, 0.5);
border-left-color: rgba(224, 64, 251, 0.1);
animation: stab-orbit 1.8s linear infinite reverse;
filter: drop-shadow(0 0 6px rgba(224, 64, 251, 0.25));
}
.graph-stab-ring-3 {
inset: 30px;
border-top-color: rgba(0, 230, 118, 0.4);
border-right-color: rgba(0, 230, 118, 0.08);
animation: stab-orbit 3.2s linear infinite;
filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.2));
}
.graph-stab-core {
position: absolute;
top: 50%;
left: 50%;
width: 10px;
height: 10px;
transform: translate(-50%, -50%);
background: var(--accent);
border-radius: 50%;
box-shadow:
0 0 12px rgba(0, 200, 255, 0.6),
0 0 40px rgba(0, 200, 255, 0.2);
animation: stab-pulse 1.6s ease-in-out infinite;
}
@keyframes stab-orbit {
to { transform: rotate(360deg); }
}
@keyframes stab-pulse {
0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
50% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.6; }
}
/* Text */
.graph-stab-text {
text-align: center;
}
.graph-stab-title {
font-family: var(--font-display);
font-size: 16px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-primary);
margin-bottom: 4px;
}
.graph-stab-subtitle {
font-family: var(--font-mono);
font-size: 12px;
color: var(--text-secondary);
letter-spacing: 0.03em;
}
/* Progress bar */
.graph-stab-progress {
width: 200px;
height: 3px;
background: var(--border);
border-radius: 2px;
overflow: hidden;
position: relative;
}
.graph-stab-progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--accent), #e040fb);
border-radius: 2px;
transition: width 0.3s ease-out;
box-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
position: relative;
}
.graph-stab-progress-fill::after {
content: '';
position: absolute;
right: 0;
top: -2px;
width: 7px;
height: 7px;
background: #fff;
border-radius: 50%;
box-shadow: 0 0 6px rgba(0, 200, 255, 0.8);
}
.graph-stab-pct {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-tertiary);
letter-spacing: 0.04em;
}
.graph-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
color: var(--text-tertiary);
gap: 8px;
}
.graph-empty-icon {
font-size: 48px;
opacity: 0.3;
}
.graph-empty-state h3 {
font-family: var(--font-display);
font-size: 16px;
color: var(--text-secondary);
}
.graph-empty-state p {
font-size: 13px;
}
/* Stats Bar */
.graph-stats-bar {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: var(--bg-secondary);
border-top: 1px solid var(--border);
font-family: var(--font-mono);
font-size: 11px;
flex-shrink: 0;
}
.graph-stat {
display: inline-flex;
align-items: center;
}
.graph-stat-value {
color: var(--accent);
font-weight: 600;
}
.graph-stat-label {
color: var(--text-tertiary);
}
.graph-stat-divider {
color: var(--border-bright);
}
/* Node Kind Badges */
.node-label-badge {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 4px;
font-family: var(--font-mono);
font-size: 10px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.node-kind-function, .node-kind-method {
background: rgba(0, 200, 255, 0.12);
color: #00c8ff;
border: 1px solid rgba(0, 200, 255, 0.2);
}
.node-kind-struct, .node-kind-class {
background: rgba(224, 64, 251, 0.12);
color: #e040fb;
border: 1px solid rgba(224, 64, 251, 0.2);
}
.node-kind-enum {
background: rgba(255, 176, 32, 0.12);
color: #ffb020;
border: 1px solid rgba(255, 176, 32, 0.2);
}
.node-kind-interface, .node-kind-trait {
background: rgba(124, 77, 255, 0.12);
color: #7c4dff;
border: 1px solid rgba(124, 77, 255, 0.2);
}
.node-kind-module {
background: rgba(255, 138, 61, 0.12);
color: #ff8a3d;
border: 1px solid rgba(255, 138, 61, 0.2);
}
.node-kind-file {
background: rgba(0, 230, 118, 0.12);
color: #00e676;
border: 1px solid rgba(0, 230, 118, 0.2);
}
/* Code Inspector Panel */
.code-inspector-panel {
background: var(--bg-secondary);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
}
.code-inspector-header {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 6px;
position: relative;
}
.code-inspector-title {
display: flex;
align-items: center;
gap: 8px;
overflow: hidden;
}
.code-inspector-file-name {
font-family: var(--font-mono);
font-size: 12px;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.code-inspector-meta {
display: flex;
align-items: center;
gap: 8px;
}
.code-inspector-node-name {
font-family: var(--font-mono);
font-size: 12px;
font-weight: 600;
color: var(--accent);
}
.code-inspector-lines {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-tertiary);
}
.code-inspector-close {
position: absolute;
top: 10px;
right: 10px;
}
.code-inspector-body {
flex: 1;
overflow-y: auto;
}
.code-inspector-code {
font-family: var(--font-mono);
font-size: 12px;
line-height: 1.7;
padding: 0;
}
.code-line {
display: flex;
padding: 0 12px 0 0;
transition: background-color 0.15s;
}
.code-line:hover {
background: rgba(0, 200, 255, 0.03);
}
.code-line-highlight {
background: rgba(0, 200, 255, 0.08);
border-left: 2px solid var(--accent);
}
.code-line-highlight:hover {
background: rgba(0, 200, 255, 0.12);
}
.code-line-number {
display: inline-block;
width: 48px;
text-align: right;
padding-right: 12px;
color: var(--text-tertiary);
user-select: none;
flex-shrink: 0;
font-size: 11px;
}
.code-line-content {
white-space: pre;
color: var(--text-primary);
overflow-x: auto;
}
.code-inspector-empty {
padding: 20px 16px;
color: var(--text-tertiary);
font-size: 12px;
text-align: center;
}
/* ── Responsive ── */
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
transition: transform 0.3s var(--ease-out);
}
.sidebar.open {
transform: translateX(0);
}
.main-content {
margin-left: 0;
padding: 16px;
}
.stat-cards {
grid-template-columns: repeat(2, 1fr);
}
.graph-explorer-layout {
grid-template-columns: 1fr;
height: auto;
}
.graph-explorer-layout.inspector-open {
grid-template-columns: 1fr;
}
.file-tree-panel {
max-height: 200px;
border-right: none;
border-bottom: 1px solid var(--border);
}
.graph-canvas-panel {
min-height: 400px;
}
.code-inspector-panel {
border-right: none;
border-top: 1px solid var(--border);
max-height: 300px;
}
}
@media (max-width: 480px) {
.stat-cards {
grid-template-columns: 1fr;
}
}
/* ── Graph Index Repo Cards ── */
.graph-index-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 16px;
}
.graph-repo-card {
display: block;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
text-decoration: none;
color: var(--text-primary);
transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.graph-repo-card:hover {
border-color: var(--border-accent);
background: var(--bg-card-hover);
box-shadow: var(--accent-glow);
}
.graph-repo-card-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.graph-repo-card-icon {
font-size: 20px;
color: var(--accent);
line-height: 1;
}
.graph-repo-card-name {
font-family: var(--font-display);
font-size: 16px;
font-weight: 600;
margin: 0;
}
.graph-repo-card-url {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-secondary);
margin: 0 0 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.graph-repo-card-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.graph-repo-card-tag {
font-size: 11px;
color: var(--text-secondary);
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 2px 8px;
}
.graph-repo-card-tag-findings {
color: var(--accent);
border-color: var(--border-accent);
background: var(--accent-muted);
}
/* ── Search Suggestions ── */
.graph-search-bar {
position: relative;
}
.search-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 100;
background: var(--bg-elevated);
border: 1px solid var(--border-bright);
border-radius: 0 0 var(--radius) var(--radius);
max-height: 300px;
overflow-y: auto;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.search-suggestion-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
cursor: pointer;
border-bottom: 1px solid var(--border);
transition: background 0.15s;
}
.search-suggestion-item:last-child {
border-bottom: none;
}
.search-suggestion-item:hover {
background: var(--bg-card-hover);
}
.search-suggestion-name {
font-size: 13px;
font-weight: 500;
color: var(--text-primary);
flex-shrink: 0;
}
.search-suggestion-kind {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--accent);
background: var(--accent-muted);
border-radius: var(--radius-sm);
padding: 1px 6px;
flex-shrink: 0;
}
.search-suggestion-path {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-tertiary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-left: auto;
}
/* ── AI Chat ── */
.chat-embedding-banner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 20px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 16px;
font-size: 13px;
color: var(--text-secondary);
}
.chat-embedding-building {
border-color: var(--border-accent);
background: rgba(0, 200, 255, 0.04);
}
.chat-embedding-status {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
}
.chat-spinner {
width: 16px;
height: 16px;
border: 2px solid var(--border-bright);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
flex-shrink: 0;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.chat-progress-bar {
width: 120px;
height: 6px;
background: var(--bg-secondary);
border-radius: 3px;
overflow: hidden;
flex-shrink: 0;
}
.chat-progress-fill {
height: 100%;
background: var(--accent);
border-radius: 3px;
transition: width 0.5s var(--ease-out);
min-width: 2%;
}
.chat-embedding-banner .btn-sm {
padding: 6px 14px;
font-size: 12px;
background: var(--accent-muted);
color: var(--accent);
border: 1px solid var(--border-accent);
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.2s var(--ease-out);
}
.chat-embedding-banner .btn-sm:hover:not(:disabled) {
background: var(--accent);
color: var(--bg-primary);
}
.chat-embedding-banner .btn-sm:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.chat-container {
display: flex;
flex-direction: column;
height: calc(100vh - 240px);
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
.chat-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
color: var(--text-tertiary);
text-align: center;
}
.chat-empty h3 {
font-family: var(--font-display);
font-size: 18px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8px;
}
.chat-empty p {
font-size: 13px;
max-width: 400px;
}
.chat-message {
max-width: 80%;
padding: 12px 16px;
border-radius: var(--radius);
font-size: 14px;
line-height: 1.6;
}
.chat-message-user {
align-self: flex-end;
background: var(--accent-muted);
border: 1px solid var(--border-accent);
color: var(--text-primary);
}
.chat-message-assistant {
align-self: flex-start;
background: var(--bg-elevated);
border: 1px solid var(--border);
color: var(--text-primary);
}
.chat-message-role {
font-family: var(--font-display);
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-tertiary);
margin-bottom: 6px;
}
.chat-message-content {
white-space: pre-wrap;
word-break: break-word;
}
.chat-typing {
color: var(--text-tertiary);
font-style: italic;
}
.chat-sources {
margin-top: 12px;
border-top: 1px solid var(--border);
padding-top: 10px;
}
.chat-sources-label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-tertiary);
display: block;
margin-bottom: 8px;
}
.chat-source-card {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 10px 12px;
margin-bottom: 6px;
}
.chat-source-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 6px;
}
.chat-source-name {
font-family: var(--font-mono);
font-size: 12px;
font-weight: 500;
color: var(--accent);
}
.chat-source-location {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-tertiary);
}
.chat-source-snippet {
margin: 0;
padding: 8px;
background: var(--bg-primary);
border-radius: 4px;
overflow-x: auto;
max-height: 120px;
}
.chat-source-snippet code {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-secondary);
white-space: pre;
}
.chat-input-area {
display: flex;
gap: 10px;
padding: 16px 20px;
border-top: 1px solid var(--border);
background: var(--bg-secondary);
}
.chat-input {
flex: 1;
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: var(--font-body);
font-size: 14px;
padding: 10px 14px;
resize: none;
min-height: 42px;
max-height: 120px;
outline: none;
transition: border-color 0.2s var(--ease-out);
}
.chat-input:focus {
border-color: var(--accent);
}
.chat-input:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.chat-send-btn {
padding: 10px 20px;
background: var(--accent);
color: var(--bg-primary);
border: none;
border-radius: var(--radius-sm);
font-family: var(--font-display);
font-weight: 600;
font-size: 13px;
cursor: pointer;
transition: all 0.2s var(--ease-out);
align-self: flex-end;
}
.chat-send-btn:hover:not(:disabled) {
background: var(--accent-hover);
box-shadow: var(--accent-glow);
}
.chat-send-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* ── SBOM Enhancements ── */
.sbom-tab-bar {
display: flex;
gap: 4px;
margin-bottom: 20px;
border-bottom: 1px solid var(--border);
padding-bottom: 0;
}
.sbom-tab {
padding: 10px 20px;
background: none;
border: none;
border-bottom: 2px solid transparent;
color: var(--text-secondary);
font-family: var(--font-display);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s var(--ease-out);
}
.sbom-tab:hover {
color: var(--text-primary);
}
.sbom-tab.active {
color: var(--accent);
border-bottom-color: var(--accent);
}
.sbom-filter-bar {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 16px;
align-items: center;
}
.sbom-filter-select {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: var(--font-body);
font-size: 13px;
padding: 8px 12px;
outline: none;
transition: border-color 0.2s var(--ease-out);
min-width: 140px;
}
.sbom-filter-select:focus {
border-color: var(--accent);
}
.sbom-filter-input {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: var(--font-body);
font-size: 13px;
padding: 8px 14px;
outline: none;
min-width: 200px;
transition: border-color 0.2s var(--ease-out);
}
.sbom-filter-input:focus {
border-color: var(--accent);
}
.sbom-filter-input::placeholder {
color: var(--text-tertiary);
}
.sbom-result-count {
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 12px;
}
/* Export */
.sbom-export-wrapper {
position: relative;
margin-left: auto;
}
.sbom-export-btn {
font-size: 13px;
}
.sbom-export-dropdown {
position: absolute;
top: 100%;
right: 0;
z-index: 50;
background: var(--bg-elevated);
border: 1px solid var(--border-bright);
border-radius: var(--radius);
padding: 12px;
display: flex;
flex-direction: column;
gap: 8px;
min-width: 200px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
margin-top: 4px;
}
.sbom-export-hint {
font-size: 11px;
color: var(--text-tertiary);
}
.sbom-export-result {
margin-bottom: 16px;
}
.sbom-export-result-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
/* Vulnerability drill-down */
.sbom-vuln-toggle {
cursor: pointer;
user-select: none;
}
.sbom-vuln-detail-row td {
padding: 0 !important;
background: var(--bg-secondary);
}
.sbom-vuln-detail {
padding: 12px 16px;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.sbom-vuln-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 10px 14px;
min-width: 240px;
flex: 1;
max-width: 400px;
}
.sbom-vuln-card-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
flex-wrap: wrap;
}
.sbom-vuln-id {
font-family: var(--font-mono);
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
}
.sbom-vuln-source {
font-size: 11px;
color: var(--text-tertiary);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.sbom-vuln-link {
font-size: 12px;
color: var(--accent);
text-decoration: none;
transition: color 0.15s;
}
.sbom-vuln-link:hover {
color: var(--accent-hover);
text-decoration: underline;
}
/* License compliance */
.sbom-license-badge {
font-size: 12px;
padding: 2px 8px;
border-radius: var(--radius-sm);
font-weight: 500;
white-space: nowrap;
}
.license-permissive {
background: var(--success-bg);
color: var(--success);
border: 1px solid rgba(0, 230, 118, 0.2);
}
.license-weak-copyleft {
background: var(--warning-bg);
color: var(--warning);
border: 1px solid rgba(255, 176, 32, 0.2);
}
.license-copyleft {
background: var(--danger-bg);
color: var(--danger);
border: 1px solid rgba(255, 59, 92, 0.2);
}
.license-copyleft-warning {
background: var(--danger-bg);
border: 1px solid rgba(255, 59, 92, 0.3);
border-radius: var(--radius);
padding: 16px 20px;
margin-bottom: 16px;
}
.license-copyleft-warning strong {
color: var(--danger);
font-size: 15px;
display: block;
margin-bottom: 6px;
}
.license-copyleft-warning p {
color: var(--text-secondary);
font-size: 13px;
margin-bottom: 10px;
}
.license-copyleft-item {
padding: 6px 0;
font-size: 13px;
color: var(--text-secondary);
}
.license-pkg-list {
font-family: var(--font-mono);
font-size: 12px;
color: var(--text-tertiary);
}
.license-bar-chart {
display: flex;
flex-direction: column;
gap: 8px;
}
.license-bar-row {
display: flex;
align-items: center;
gap: 12px;
}
.license-bar-label {
font-size: 13px;
color: var(--text-secondary);
min-width: 120px;
text-align: right;
flex-shrink: 0;
}
.license-bar-track {
flex: 1;
height: 20px;
background: var(--bg-secondary);
border-radius: var(--radius-sm);
overflow: hidden;
}
.license-bar {
height: 100%;
border-radius: var(--radius-sm);
transition: width 0.3s var(--ease-out);
}
.license-bar.license-permissive {
background: var(--success);
border: none;
}
.license-bar.license-copyleft {
background: var(--danger);
border: none;
}
.license-bar-count {
font-family: var(--font-mono);
font-size: 12px;
color: var(--text-tertiary);
min-width: 32px;
}
/* SBOM Diff */
.sbom-diff-controls {
display: flex;
gap: 16px;
flex-wrap: wrap;
}
.sbom-diff-select-group {
display: flex;
flex-direction: column;
gap: 6px;
flex: 1;
min-width: 200px;
}
.sbom-diff-select-group label {
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.sbom-diff-summary {
display: flex;
gap: 12px;
margin: 16px 0;
flex-wrap: wrap;
}
.sbom-diff-stat {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 20px;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
flex: 1;
min-width: 100px;
text-align: center;
font-size: 12px;
color: var(--text-secondary);
}
.sbom-diff-stat-num {
font-family: var(--font-display);
font-size: 24px;
font-weight: 700;
color: var(--text-primary);
}
.sbom-diff-added .sbom-diff-stat-num {
color: var(--success);
}
.sbom-diff-removed .sbom-diff-stat-num {
color: var(--danger);
}
.sbom-diff-changed .sbom-diff-stat-num {
color: var(--warning);
}
.sbom-diff-row-added {
border-left: 3px solid var(--success);
}
.sbom-diff-row-removed {
border-left: 3px solid var(--danger);
}
.sbom-diff-row-changed {
border-left: 3px solid var(--warning);
}
/* ═══════════════════════════════════
ATTACK CHAIN VISUALIZATION
═══════════════════════════════════ */
/* KPI bar */
.ac-kpi-bar {
display: flex;
gap: 2px;
margin-bottom: 16px;
}
.ac-kpi-card {
flex: 1;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
padding: 12px 14px;
position: relative;
overflow: hidden;
}
.ac-kpi-card:first-child { border-radius: 10px 0 0 10px; }
.ac-kpi-card:last-child { border-radius: 0 10px 10px 0; }
.ac-kpi-card::before {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
}
.ac-kpi-card:nth-child(1)::before { background: var(--accent, #3b82f6); opacity: 0.4; }
.ac-kpi-card:nth-child(2)::before { background: var(--danger, #dc2626); opacity: 0.5; }
.ac-kpi-card:nth-child(3)::before { background: var(--success, #16a34a); opacity: 0.4; }
.ac-kpi-card:nth-child(4)::before { background: var(--warning, #d97706); opacity: 0.4; }
.ac-kpi-value {
font-family: var(--font-display);
font-size: 24px;
font-weight: 800;
line-height: 1;
letter-spacing: -0.03em;
}
.ac-kpi-label {
font-family: var(--font-mono, monospace);
font-size: 9px;
color: var(--text-tertiary, #6b7280);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-top: 4px;
}
/* Phase progress rail */
.ac-phase-rail {
display: flex;
align-items: flex-start;
margin-bottom: 14px;
position: relative;
padding: 0 8px;
}
.ac-phase-rail::before {
content: '';
position: absolute;
top: 7px;
left: 8px;
right: 8px;
height: 2px;
background: var(--border-color);
z-index: 0;
}
.ac-rail-node {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
z-index: 1;
cursor: pointer;
min-width: 56px;
flex: 1;
transition: all 0.15s;
}
.ac-rail-node:hover .ac-rail-dot { transform: scale(1.25); }
.ac-rail-node.active .ac-rail-label { color: var(--accent, #3b82f6); }
.ac-rail-node.active .ac-rail-dot { box-shadow: 0 0 0 3px rgba(59,130,246,0.2), 0 0 12px rgba(59,130,246,0.15); }
.ac-rail-dot {
width: 14px;
height: 14px;
border-radius: 50%;
border: 2.5px solid var(--bg-primary, #0f172a);
transition: transform 0.2s cubic-bezier(0.16,1,0.3,1);
flex-shrink: 0;
}
.ac-rail-dot.done { background: var(--success, #16a34a); box-shadow: 0 0 8px rgba(22,163,74,0.25); }
.ac-rail-dot.running { background: var(--warning, #d97706); box-shadow: 0 0 10px rgba(217,119,6,0.35); animation: ac-dot-pulse 2s ease-in-out infinite; }
.ac-rail-dot.pending { background: var(--text-tertiary, #6b7280); opacity: 0.5; }
.ac-rail-dot.mixed { background: conic-gradient(var(--success, #16a34a) 0deg 270deg, var(--danger, #dc2626) 270deg 360deg); box-shadow: 0 0 8px rgba(22,163,74,0.2); }
@keyframes ac-dot-pulse {
0%, 100% { box-shadow: 0 0 8px rgba(217,119,6,0.35); }
50% { box-shadow: 0 0 18px rgba(217,119,6,0.55); }
}
.ac-rail-label {
font-family: var(--font-mono, monospace);
font-size: 9px;
color: var(--text-tertiary, #6b7280);
margin-top: 5px;
letter-spacing: 0.04em;
text-transform: uppercase;
white-space: nowrap;
transition: color 0.15s;
}
.ac-rail-findings {
font-family: var(--font-mono, monospace);
font-size: 9px;
font-weight: 600;
margin-top: 1px;
}
.ac-rail-findings.has { color: var(--danger, #dc2626); }
.ac-rail-findings.none { color: var(--text-tertiary, #6b7280); opacity: 0.4; }
.ac-rail-heatmap {
display: flex;
gap: 2px;
margin-top: 3px;
}
.ac-hm-cell {
width: 7px;
height: 7px;
border-radius: 1.5px;
}
.ac-hm-cell.ok { background: var(--success, #16a34a); opacity: 0.5; }
.ac-hm-cell.fail { background: var(--danger, #dc2626); opacity: 0.65; }
.ac-hm-cell.run { background: var(--warning, #d97706); opacity: 0.5; animation: ac-pulse 1.5s ease-in-out infinite; }
.ac-hm-cell.wait { background: var(--text-tertiary, #6b7280); opacity: 0.15; }
.ac-rail-bar {
flex: 1;
height: 2px;
margin-top: 7px;
position: relative;
z-index: 1;
}
.ac-rail-bar-inner {
height: 100%;
border-radius: 1px;
}
.ac-rail-bar-inner.done { background: var(--success, #16a34a); opacity: 0.35; }
.ac-rail-bar-inner.running { background: linear-gradient(to right, var(--success, #16a34a), var(--warning, #d97706)); opacity: 0.35; }
/* Progress track */
.ac-progress-track {
height: 3px;
background: var(--border-color);
border-radius: 2px;
overflow: hidden;
margin-bottom: 10px;
}
.ac-progress-fill {
height: 100%;
border-radius: 2px;
background: linear-gradient(90deg, var(--success, #16a34a) 0%, var(--accent, #3b82f6) 100%);
transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
/* Expand all controls */
.ac-controls {
display: flex;
justify-content: flex-end;
margin-bottom: 6px;
}
.ac-btn-toggle {
font-family: var(--font-body);
font-size: 11px;
color: var(--accent, #3b82f6);
background: none;
border: 1px solid transparent;
cursor: pointer;
padding: 3px 10px;
border-radius: 4px;
transition: all 0.15s;
}
.ac-btn-toggle:hover {
background: rgba(59,130,246,0.08);
border-color: rgba(59,130,246,0.12);
}
/* Phase accordion */
.ac-phases {
display: flex;
flex-direction: column;
gap: 2px;
}
.ac-phase {
animation: ac-phase-in 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes ac-phase-in {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.ac-phase-header {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 14px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 10px;
cursor: pointer;
user-select: none;
transition: background 0.15s;
}
.ac-phase.open .ac-phase-header {
border-radius: 10px 10px 0 0;
}
.ac-phase-header:hover {
background: var(--bg-tertiary);
}
.ac-phase-num {
font-family: var(--font-mono, monospace);
font-size: 10px;
font-weight: 600;
color: var(--accent, #3b82f6);
background: rgba(59,130,246,0.08);
padding: 2px 8px;
border-radius: 4px;
letter-spacing: 0.04em;
white-space: nowrap;
border: 1px solid rgba(59,130,246,0.1);
}
.ac-phase-title {
font-family: var(--font-display);
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
flex: 1;
}
.ac-phase-dots {
display: flex;
gap: 3px;
align-items: center;
}
.ac-phase-dot {
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
}
.ac-phase-dot.completed { background: var(--success, #16a34a); }
.ac-phase-dot.failed { background: var(--danger, #dc2626); }
.ac-phase-dot.running { background: var(--warning, #d97706); animation: ac-pulse 1.5s ease-in-out infinite; }
.ac-phase-dot.pending { background: var(--text-tertiary, #6b7280); opacity: 0.4; }
@keyframes ac-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
.ac-phase-meta {
display: flex;
align-items: center;
gap: 12px;
font-family: var(--font-mono, monospace);
font-size: 11px;
color: var(--text-secondary);
}
.ac-phase-meta .findings-ct { color: var(--danger, #dc2626); font-weight: 600; }
.ac-phase-meta .running-ct { color: var(--warning, #d97706); font-weight: 500; }
.ac-phase-chevron {
color: var(--text-tertiary, #6b7280);
font-size: 11px;
transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
width: 14px;
text-align: center;
}
.ac-phase.open .ac-phase-chevron {
transform: rotate(90deg);
}
.ac-phase-body {
max-height: 0;
overflow: hidden;
transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1);
background: var(--bg-secondary);
border-left: 1px solid var(--border-color);
border-right: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
border-radius: 0 0 10px 10px;
}
.ac-phase.open .ac-phase-body {
max-height: 2000px;
}
.ac-phase-body-inner {
padding: 4px 6px;
display: flex;
flex-direction: column;
gap: 1px;
}
/* Tool rows */
.ac-tool-row {
display: grid;
grid-template-columns: 5px 26px 1fr auto auto auto;
align-items: center;
gap: 8px;
padding: 7px 10px;
border-radius: 6px;
cursor: pointer;
transition: background 0.12s;
}
.ac-tool-row:hover {
background: rgba(255,255,255,0.02);
}
.ac-tool-row.expanded {
background: rgba(59,130,246,0.03);
}
.ac-tool-row.is-pending {
opacity: 0.45;
cursor: default;
}
.ac-status-bar {
width: 4px;
height: 26px;
border-radius: 2px;
flex-shrink: 0;
}
.ac-status-bar.completed { background: var(--success, #16a34a); }
.ac-status-bar.failed { background: var(--danger, #dc2626); }
.ac-status-bar.running { background: var(--warning, #d97706); animation: ac-pulse 1.5s ease-in-out infinite; }
.ac-status-bar.pending { background: var(--text-tertiary, #6b7280); opacity: 0.25; }
.ac-tool-icon {
font-size: 17px;
text-align: center;
line-height: 1;
}
.ac-tool-info { min-width: 0; }
.ac-tool-name {
font-size: 12.5px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Category chips */
.ac-cat-chip {
font-family: var(--font-mono, monospace);
font-size: 9px;
font-weight: 500;
padding: 1px 6px;
border-radius: 3px;
display: inline-block;
letter-spacing: 0.02em;
}
.ac-cat-chip.recon { color: #38bdf8; background: rgba(56,189,248,0.1); }
.ac-cat-chip.api { color: #818cf8; background: rgba(129,140,248,0.1); }
.ac-cat-chip.headers { color: #06b6d4; background: rgba(6,182,212,0.1); }
.ac-cat-chip.csp { color: #d946ef; background: rgba(217,70,239,0.1); }
.ac-cat-chip.cookies { color: #f59e0b; background: rgba(245,158,11,0.1); }
.ac-cat-chip.logs { color: #78716c; background: rgba(120,113,108,0.1); }
.ac-cat-chip.ratelimit { color: #64748b; background: rgba(100,116,139,0.1); }
.ac-cat-chip.cors { color: #8b5cf6; background: rgba(139,92,246,0.1); }
.ac-cat-chip.tls { color: #14b8a6; background: rgba(20,184,166,0.1); }
.ac-cat-chip.redirect { color: #fb923c; background: rgba(251,146,60,0.1); }
.ac-cat-chip.email { color: #0ea5e9; background: rgba(14,165,233,0.1); }
.ac-cat-chip.auth { color: #f43f5e; background: rgba(244,63,94,0.1); }
.ac-cat-chip.xss { color: #f97316; background: rgba(249,115,22,0.1); }
.ac-cat-chip.sqli { color: #ef4444; background: rgba(239,68,68,0.1); }
.ac-cat-chip.ssrf { color: #a855f7; background: rgba(168,85,247,0.1); }
.ac-cat-chip.idor { color: #ec4899; background: rgba(236,72,153,0.1); }
.ac-cat-chip.fuzzer { color: #a78bfa; background: rgba(167,139,250,0.1); }
.ac-cat-chip.cve { color: #dc2626; background: rgba(220,38,38,0.1); }
.ac-cat-chip.default { color: #94a3b8; background: rgba(148,163,184,0.1); }
.ac-tool-duration {
font-family: var(--font-mono, monospace);
font-size: 10px;
color: var(--text-tertiary, #6b7280);
white-space: nowrap;
min-width: 48px;
text-align: right;
}
.ac-tool-duration.running-text {
color: var(--warning, #d97706);
font-weight: 500;
}
.ac-findings-pill {
font-family: var(--font-mono, monospace);
font-size: 10px;
font-weight: 700;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
padding: 1px 7px;
border-radius: 9px;
line-height: 1.4;
text-align: center;
}
.ac-findings-pill.has { background: rgba(220,38,38,0.12); color: var(--danger, #dc2626); }
.ac-findings-pill.zero { background: transparent; color: var(--text-tertiary, #6b7280); font-weight: 400; opacity: 0.5; }
.ac-risk-val {
font-family: var(--font-mono, monospace);
font-size: 10px;
font-weight: 700;
min-width: 32px;
text-align: right;
}
.ac-risk-val.high { color: var(--danger, #dc2626); }
.ac-risk-val.medium { color: var(--warning, #d97706); }
.ac-risk-val.low { color: var(--text-secondary); }
.ac-risk-val.none { color: transparent; }
/* Tool detail (expanded) */
.ac-tool-detail {
max-height: 0;
overflow: hidden;
transition: max-height 0.28s cubic-bezier(0.16,1,0.3,1);
}
.ac-tool-detail.open {
max-height: 800px;
}
.ac-tool-detail-inner {
padding: 6px 10px 10px 49px;
font-size: 12px;
line-height: 1.55;
color: var(--text-secondary);
}
.ac-reasoning-block {
background: rgba(59,130,246,0.03);
border-left: 2px solid var(--accent, #3b82f6);
padding: 7px 12px;
border-radius: 0 6px 6px 0;
font-style: italic;
margin-bottom: 8px;
color: var(--text-secondary);
}
.ac-detail-grid {
display: grid;
grid-template-columns: auto 1fr;
gap: 3px 14px;
font-family: var(--font-mono, monospace);
font-size: 10px;
}
.ac-detail-label {
color: var(--text-tertiary, #6b7280);
text-transform: uppercase;
font-size: 9px;
letter-spacing: 0.04em;
}
.ac-detail-value {
color: var(--text-secondary);
}
/* Running node pulse animation */
.ac-node-running {
animation: ac-pulse 2s ease-in-out infinite;
}
@keyframes ac-pulse {
0%, 100% { box-shadow: inset 0 0 0 transparent; }
50% { box-shadow: inset 0 0 12px rgba(217, 119, 6, 0.15); }
}
/* Tool input/output data blocks */
.ac-data-section {
margin-top: 8px;
}
.ac-data-label {
color: var(--text-tertiary, #6b7280);
text-transform: uppercase;
font-size: 9px;
letter-spacing: 0.04em;
margin-bottom: 3px;
}
.ac-data-block {
background: rgba(0, 0, 0, 0.25);
border: 1px solid var(--border, #162038);
border-radius: 6px;
padding: 8px 10px;
font-family: var(--font-mono, monospace);
font-size: 10px;
line-height: 1.5;
color: var(--text-secondary);
white-space: pre-wrap;
word-break: break-all;
max-height: 200px;
overflow-y: auto;
margin: 0;
}
/* ═══════════════════════════════════════════════════
Pentest Wizard
═══════════════════════════════════════════════════ */
.wizard-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.wizard-dialog {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
width: 600px;
max-width: 92vw;
max-height: 90vh;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
}
/* Close button (top-right corner, always visible) */
.wizard-close-btn {
position: absolute;
top: 12px;
right: 12px;
z-index: 10;
background: none;
border: 1px solid transparent;
border-radius: 6px;
color: var(--text-secondary);
cursor: pointer;
padding: 4px 6px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.15s, border-color 0.15s;
}
.wizard-close-btn:hover {
color: var(--text-primary);
border-color: var(--border-color);
}
/* Dropdown for existing targets/repos */
.wizard-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 20;
background: var(--bg-elevated, var(--bg-secondary));
border: 1px solid var(--border-color);
border-radius: 0 0 8px 8px;
max-height: 200px;
overflow-y: auto;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.wizard-dropdown-item {
padding: 8px 12px;
cursor: pointer;
transition: background 0.1s;
border-bottom: 1px solid var(--border-color);
}
.wizard-dropdown-item:last-child {
border-bottom: none;
}
.wizard-dropdown-item:hover {
background: var(--bg-card-hover, rgba(255,255,255,0.04));
}
/* SSH key display */
.wizard-ssh-key {
margin-top: 8px;
padding: 10px 12px;
background: rgba(0, 200, 255, 0.04);
border: 1px solid var(--border-accent, rgba(0,200,255,0.15));
border-radius: 8px;
}
.wizard-ssh-key-box {
padding: 8px 10px;
background: var(--bg-primary);
border-radius: 4px;
font-family: var(--font-mono, monospace);
font-size: 10px;
word-break: break-all;
user-select: all;
color: var(--text-secondary);
line-height: 1.4;
}
.wizard-steps {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 16px 24px;
border-bottom: 1px solid var(--border-color);
background: var(--bg-primary);
}
.wizard-step {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.8rem;
color: var(--text-tertiary);
position: relative;
}
.wizard-step + .wizard-step::before {
content: '';
display: block;
width: 24px;
height: 1px;
background: var(--border-color);
margin-right: 4px;
}
.wizard-step.active {
color: var(--accent);
}
.wizard-step.completed {
color: var(--status-success);
}
.wizard-step-dot {
width: 22px;
height: 22px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.7rem;
font-weight: 700;
background: var(--bg-tertiary);
color: var(--text-tertiary);
flex-shrink: 0;
}
.wizard-step.active .wizard-step-dot {
background: var(--accent);
color: var(--bg-primary);
}
.wizard-step.completed .wizard-step-dot {
background: var(--status-success);
color: var(--bg-primary);
}
.wizard-step-label {
display: none;
}
@media (min-width: 480px) {
.wizard-step-label {
display: inline;
}
}
.wizard-body {
padding: 20px 24px;
min-height: 300px;
overflow-y: auto;
flex: 1;
}
.wizard-body h3 {
font-size: 1.05rem;
font-weight: 600;
color: var(--text-primary);
}
.wizard-field {
margin-bottom: 12px;
}
.wizard-field label {
display: block;
font-size: 0.82rem;
color: var(--text-secondary);
margin-bottom: 4px;
font-weight: 500;
}
.wizard-field .chat-input,
.wizard-field select {
width: 100%;
}
.wizard-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 24px;
border-top: 1px solid var(--border-color);
background: var(--bg-primary);
}
.wizard-disclaimer {
background: rgba(255, 176, 32, 0.08);
border: 1px solid rgba(255, 176, 32, 0.25);
border-radius: var(--radius);
padding: 16px;
margin-top: 16px;
color: var(--text-primary);
font-size: 0.85rem;
line-height: 1.55;
}
.wizard-summary {
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: var(--radius);
padding: 16px;
}
.wizard-summary dl {
display: grid;
grid-template-columns: auto 1fr;
gap: 6px 16px;
margin: 0;
font-size: 0.85rem;
}
.wizard-summary dt {
color: var(--text-secondary);
font-weight: 500;
}
.wizard-summary dd {
color: var(--text-primary);
margin: 0;
}
.wizard-toggle {
width: 36px;
height: 20px;
background: var(--bg-tertiary);
border-radius: 10px;
cursor: pointer;
position: relative;
transition: background 0.2s;
flex-shrink: 0;
}
.wizard-toggle.active {
background: var(--accent);
}
.wizard-toggle-knob {
width: 16px;
height: 16px;
background: #fff;
border-radius: 50%;
position: absolute;
top: 2px;
left: 2px;
transition: transform 0.2s;
}
.wizard-toggle.active .wizard-toggle-knob {
transform: translateX(16px);
}