Files
compliance-scanner-agent/compliance-dashboard/assets/main.css
Sharang Parnerkar 46bf9de549
Some checks failed
CI / Format (push) Successful in 3s
CI / Clippy (push) Successful in 4m3s
CI / Security Audit (push) Successful in 1m38s
CI / Tests (push) Successful in 4m44s
CI / Detect Changes (push) Successful in 2s
CI / Deploy Agent (push) Successful in 2s
CI / Deploy Dashboard (push) Successful in 2s
CI / Deploy Docs (push) Has been skipped
CI / Deploy MCP (push) Failing after 2s
feat: findings refinement, new scanners, and deployment tooling (#6)
2026-03-09 12:53:12 +00:00

2458 lines
49 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-footer {
padding: 14px 20px;
border-top: 1px solid var(--border);
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-tertiary);
letter-spacing: 0.02em;
}
.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 ── */
.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: 11px 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;
padding: 3px 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;
}
.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);
}