Spaces:
Running
Running
| @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap"); | |
| /* ββ Design tokens βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| :root { | |
| --bg: #0d1117; | |
| --bg-surface: #161b22; | |
| --bg-elevated: #1c2128; | |
| --bg-glass: rgba(22, 27, 34, 0.7); | |
| --border: #30363d; | |
| --border-muted: #21262d; | |
| --border-glow: rgba(88, 166, 255, 0.35); | |
| --text: #e6edf3; | |
| --text-muted: #8b949e; | |
| --text-subtle: #6e7681; | |
| --accent: #58a6ff; | |
| --accent-glow: rgba(88, 166, 255, 0.18); | |
| --accent-dim: rgba(88, 166, 255, 0.08); | |
| --cyan: #39d0d8; | |
| --cyan-dim: rgba(57, 208, 216, 0.12); | |
| --purple: #a855f7; | |
| --purple-dim: rgba(168, 85, 247, 0.12); | |
| --critical: #f85149; | |
| --critical-bg: rgba(248, 81, 73, 0.12); | |
| --high: #f0883e; | |
| --high-bg: rgba(240, 136, 62, 0.12); | |
| --medium: #f0c000; | |
| --medium-bg: rgba(240, 192, 0, 0.12); | |
| --low: #3fb950; | |
| --low-bg: rgba(63, 185, 80, 0.12); | |
| --radius: 8px; | |
| --radius-lg: 14px; | |
| --radius-xl: 20px; | |
| --shadow: 0 4px 24px rgba(0, 0, 0, 0.5); | |
| --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.7); | |
| --sidebar-w: 240px; | |
| } | |
| /* ββ Reset βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } | |
| html { scroll-behavior: smooth; } | |
| body { | |
| background: var(--bg); | |
| color: var(--text); | |
| font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| -webkit-font-smoothing: antialiased; | |
| min-height: 100vh; | |
| } | |
| a { color: var(--accent); text-decoration: none; } | |
| a:hover { text-decoration: underline; } | |
| /* ββ Keyframes ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| @keyframes gradShift { | |
| 0% { background-position: 0% 50%; } | |
| 50% { background-position: 100% 50%; } | |
| 100% { background-position: 0% 50%; } | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| @keyframes fadeSlideUp { | |
| from { opacity: 0; transform: translateY(16px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| @keyframes pulse-glow { | |
| 0%, 100% { box-shadow: 0 0 8px rgba(88,166,255,0.3); } | |
| 50% { box-shadow: 0 0 24px rgba(88,166,255,0.6); } | |
| } | |
| @keyframes shimmer { | |
| from { background-position: -200% center; } | |
| to { background-position: 200% center; } | |
| } | |
| /* ββ Layout shell ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .shell { display: flex; min-height: 100vh; } | |
| /* ββ Sidebar ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .sidebar { | |
| width: var(--sidebar-w); | |
| background: rgba(13, 17, 23, 0.95); | |
| border-right: 1px solid rgba(48, 54, 61, 0.6); | |
| display: flex; | |
| flex-direction: column; | |
| position: fixed; | |
| top: 0; left: 0; bottom: 0; | |
| z-index: 100; | |
| overflow: hidden; | |
| backdrop-filter: blur(20px); | |
| } | |
| .sidebar-brand { | |
| padding: 24px 20px 20px; | |
| border-bottom: 1px solid var(--border-muted); | |
| position: relative; | |
| z-index: 2; | |
| } | |
| .sidebar-brand-title { | |
| font-size: 16px; | |
| font-weight: 800; | |
| letter-spacing: -0.5px; | |
| line-height: 1.2; | |
| background: linear-gradient(135deg, #58a6ff, #39d0d8, #a855f7); | |
| background-size: 200% 200%; | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| animation: gradShift 4s ease infinite; | |
| } | |
| .sidebar-brand-sub { | |
| font-size: 11px; | |
| color: var(--text-subtle); | |
| margin-top: 3px; | |
| font-weight: 400; | |
| } | |
| .sidebar-nav { | |
| padding: 14px 10px; | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 3px; | |
| position: relative; | |
| z-index: 2; | |
| } | |
| .nav-link { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 10px 12px; | |
| border-radius: var(--radius); | |
| color: var(--text-muted); | |
| font-size: 13px; | |
| font-weight: 500; | |
| transition: all 0.18s ease; | |
| cursor: pointer; | |
| position: relative; | |
| border: 1px solid transparent; | |
| } | |
| .nav-link:hover { | |
| background: rgba(255,255,255,0.05); | |
| color: var(--text); | |
| text-decoration: none; | |
| border-color: var(--border-muted); | |
| } | |
| .nav-link.active { | |
| background: var(--accent-dim); | |
| color: var(--accent); | |
| border-color: rgba(88,166,255,0.25); | |
| } | |
| .nav-link.active::before { | |
| content: ""; | |
| position: absolute; | |
| left: 0; top: 20%; bottom: 20%; | |
| width: 3px; | |
| background: var(--accent); | |
| border-radius: 999px; | |
| } | |
| .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; } | |
| .sidebar-footer { | |
| padding: 14px 20px; | |
| border-top: 1px solid var(--border-muted); | |
| position: relative; | |
| z-index: 2; | |
| } | |
| .sidebar-footer p { font-size: 11px; color: var(--text-subtle); line-height: 1.5; } | |
| /* ββ Main content ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; } | |
| .page-header { | |
| padding: 32px 36px 0; | |
| border-bottom: 1px solid var(--border-muted); | |
| padding-bottom: 20px; | |
| margin-bottom: 0; | |
| } | |
| .page-title { | |
| font-size: 26px; | |
| font-weight: 800; | |
| color: var(--text); | |
| letter-spacing: -0.8px; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 5px; } | |
| .page-body { padding: 28px 36px 48px; flex: 1; } | |
| /* ββ Animated Card ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .acard { | |
| background: var(--bg-glass); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| padding: 22px; | |
| backdrop-filter: blur(12px); | |
| transition: border-color 0.2s ease; | |
| } | |
| .acard:hover { border-color: rgba(88,166,255,0.3); } | |
| /* ββ Metrics grid ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .metrics-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); | |
| gap: 16px; | |
| margin-bottom: 24px; | |
| } | |
| .metric-value { | |
| font-size: 30px; | |
| font-weight: 800; | |
| color: var(--text); | |
| line-height: 1; | |
| font-variant-numeric: tabular-nums; | |
| } | |
| .metric-label { font-size: 12px; color: var(--text-subtle); margin-top: 5px; } | |
| .section-grid { display: grid; gap: 20px; } | |
| .section-grid-2 { grid-template-columns: 1fr 1fr; } | |
| /* ββ Section label ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .section-label { | |
| font-size: 11px; | |
| font-weight: 700; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.8px; | |
| margin-bottom: 14px; | |
| } | |
| /* ββ Severity badges βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .badge { | |
| display: inline-flex; align-items: center; gap: 5px; | |
| padding: 3px 10px; border-radius: 999px; | |
| font-size: 11px; font-weight: 700; letter-spacing: 0.4px; | |
| text-transform: uppercase; white-space: nowrap; | |
| } | |
| .badge-critical { background: var(--critical-bg); color: var(--critical); border: 1px solid rgba(248,81,73,0.3); } | |
| .badge-high { background: var(--high-bg); color: var(--high); border: 1px solid rgba(240,136,62,0.3); } | |
| .badge-medium { background: var(--medium-bg); color: var(--medium); border: 1px solid rgba(240,192,0,0.3); } | |
| .badge-low { background: var(--low-bg); color: var(--low); border: 1px solid rgba(63,185,80,0.3); } | |
| /* ββ Shiny button ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .shiny-btn { | |
| display: inline-flex; align-items: center; justify-content: center; | |
| gap: 8px; padding: 10px 20px; border-radius: var(--radius); | |
| font-family: inherit; font-size: 13px; font-weight: 700; | |
| cursor: pointer; border: none; outline: none; | |
| transition: opacity 0.2s, filter 0.2s; | |
| white-space: nowrap; | |
| } | |
| .shiny-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: saturate(0.4); } | |
| /* ββ Form elements βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .input-group { margin-bottom: 18px; } | |
| .input-label { | |
| display: block; font-size: 11px; font-weight: 700; | |
| color: var(--text-muted); margin-bottom: 7px; | |
| text-transform: uppercase; letter-spacing: 0.5px; | |
| } | |
| .input { | |
| width: 100%; background: rgba(13,17,23,0.8); | |
| border: 1px solid var(--border); border-radius: var(--radius); | |
| color: var(--text); font-family: inherit; font-size: 14px; | |
| padding: 10px 14px; | |
| transition: border-color 0.18s, box-shadow 0.18s; outline: none; | |
| } | |
| .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } | |
| .input-mono { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.02em; } | |
| /* ββ Drop zone βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .drop-zone { | |
| border: 2px dashed var(--border); border-radius: var(--radius-lg); | |
| padding: 36px; text-align: center; cursor: pointer; | |
| transition: all 0.22s ease; background: rgba(13,17,23,0.5); | |
| } | |
| .drop-zone:hover, .drop-zone.drag-over { | |
| border-color: var(--accent); background: var(--accent-dim); | |
| box-shadow: 0 0 0 1px var(--accent-glow); | |
| } | |
| .dz-icon { font-size: 40px; margin-bottom: 12px; } | |
| .dz-title { font-size: 14px; font-weight: 700; color: var(--text); } | |
| .dz-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; } | |
| .dz-file { font-size: 12px; color: var(--cyan); margin-top: 10px; font-weight: 600; } | |
| /* ββ Table βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); } | |
| table { width: 100%; border-collapse: collapse; font-size: 13px; } | |
| thead { background: var(--bg-elevated); border-bottom: 1px solid var(--border); } | |
| th { | |
| padding: 11px 14px; text-align: left; | |
| font-size: 11px; font-weight: 700; color: var(--text-muted); | |
| text-transform: uppercase; letter-spacing: 0.6px; white-space: nowrap; | |
| } | |
| td { padding: 11px 14px; border-bottom: 1px solid var(--border-muted); color: var(--text); vertical-align: middle; } | |
| tr:last-child td { border-bottom: none; } | |
| tr:hover td { background: rgba(88,166,255,0.04); } | |
| .cve-id { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--accent); font-weight: 600; } | |
| /* ββ Score bar βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .score-bar-wrap { display: flex; align-items: center; gap: 10px; } | |
| .score-bar-track { flex: 1; height: 5px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; } | |
| .score-bar-fill { height: 100%; border-radius: 999px; transition: width 0.7s cubic-bezier(0.22,1,0.36,1); } | |
| .score-val { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--text); min-width: 40px; text-align: right; } | |
| /* ββ Risk chips ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .chips { display: flex; flex-wrap: wrap; gap: 8px; } | |
| .chip { | |
| display: inline-flex; align-items: center; gap: 5px; | |
| padding: 5px 12px; border-radius: 8px; | |
| font-size: 12px; font-weight: 600; border: 1px solid; | |
| transition: transform 0.15s ease; | |
| } | |
| .chip:hover { transform: translateY(-1px); } | |
| .chip-on { color: var(--critical); background: var(--critical-bg); border-color: rgba(248,81,73,0.3); } | |
| .chip-off { color: var(--text-subtle); background: var(--bg-elevated); border-color: var(--border); } | |
| /* ββ Spinner βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .spinner-wrap { | |
| display: flex; flex-direction: column; align-items: center; | |
| justify-content: center; gap: 16px; padding: 56px; color: var(--text-muted); | |
| } | |
| .spinner { | |
| width: 38px; height: 38px; | |
| border: 3px solid var(--border); | |
| border-top-color: var(--accent); | |
| border-radius: 50%; | |
| animation: spin 0.7s linear infinite; | |
| } | |
| /* ββ State / empty boxes βββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .state-box { | |
| display: flex; flex-direction: column; align-items: center; | |
| justify-content: center; gap: 12px; padding: 56px; text-align: center; | |
| background: var(--bg-glass); border: 1px solid var(--border-muted); | |
| border-radius: var(--radius-lg); backdrop-filter: blur(8px); | |
| margin-top: 24px; | |
| } | |
| .state-icon { font-size: 40px; } | |
| .state-title { font-size: 16px; font-weight: 700; color: var(--text); } | |
| .state-sub { font-size: 13px; color: var(--text-muted); max-width: 400px; } | |
| .error-box { | |
| background: var(--critical-bg); border: 1px solid rgba(248,81,73,0.3); | |
| border-radius: var(--radius); padding: 13px 16px; | |
| color: var(--critical); font-size: 13px; display: flex; gap: 8px; align-items: flex-start; | |
| } | |
| /* ββ Inventory tags ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .inv-tags { display: flex; flex-wrap: wrap; gap: 5px; } | |
| .inv-tag { | |
| background: var(--cyan-dim); color: var(--cyan); | |
| border: 1px solid rgba(57,208,216,0.3); border-radius: 5px; | |
| padding: 2px 8px; font-size: 11px; font-weight: 600; | |
| transition: background 0.15s ease; | |
| } | |
| .inv-tag:hover { background: rgba(57,208,216,0.2); } | |
| /* ββ Chart container ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .chart-container { position: relative; height: 200px; } | |
| /* ββ Result card ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .result-header { | |
| display: flex; align-items: flex-start; justify-content: space-between; | |
| gap: 12px; margin-bottom: 18px; flex-wrap: wrap; | |
| } | |
| .result-cve-id { font-family: "JetBrains Mono", monospace; font-size: 22px; font-weight: 700; color: var(--accent); } | |
| .result-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } | |
| .detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 18px 0; } | |
| .di-label { font-size: 11px; color: var(--text-subtle); margin-bottom: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; } | |
| .di-value { font-size: 15px; font-weight: 700; color: var(--text); font-family: "JetBrains Mono", monospace; } | |
| .desc-text { | |
| font-size: 13px; color: var(--text-muted); line-height: 1.75; | |
| border-top: 1px solid var(--border-muted); padding-top: 16px; margin-top: 8px; | |
| } | |
| /* ββ Range βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .range-wrap { display: flex; align-items: center; gap: 12px; } | |
| input[type="range"] { flex: 1; accent-color: var(--accent); cursor: pointer; } | |
| .range-val { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--cyan); min-width: 52px; text-align: right; font-weight: 600; } | |
| /* ββ Divider ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .divider { height: 1px; background: var(--border-muted); margin: 20px 0; } | |
| /* ββ Info box ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .info-box { | |
| background: rgba(57,208,216,0.06); border: 1px solid rgba(57,208,216,0.2); | |
| border-radius: var(--radius); padding: 12px 16px; font-size: 12px; | |
| color: var(--cyan); line-height: 1.6; | |
| } | |
| /* ββ Pipeline step ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .pipeline-step { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; } | |
| .pipeline-step + .pipeline-step { border-top: 1px solid var(--border-muted); } | |
| .pipeline-icon { font-size: 22px; flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--border-muted); border-radius: 8px; } | |
| .pipeline-title { font-size: 13px; font-weight: 700; color: var(--text); } | |
| .pipeline-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; } | |
| /* ββ Status dot ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .status-dot { | |
| width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; | |
| display: inline-block; | |
| } | |
| .status-dot.online { background: var(--low); box-shadow: 0 0 0 2px rgba(63,185,80,0.3); animation: pulse-glow 2s ease infinite; } | |
| .status-dot.offline { background: var(--critical); } | |
| .status-dot.pending { background: var(--text-subtle); } | |
| /* ββ Responsive βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| @media (max-width: 768px) { | |
| .sidebar { display: none; } | |
| .main { margin-left: 0; } | |
| .page-body { padding: 16px; } | |
| .section-grid-2 { grid-template-columns: 1fr; } | |
| .page-header { padding: 20px 16px 16px; } | |
| } |