Spaces:
Runtime error
Runtime error
Download static/styles.css from hengds2f/researchradar: direct link, hf CLI and curl.
- Browser
- Download file 31.9 kB
-
https://huggingface.co/spaces/hengds2f/researchradar/resolve/main/static/styles.css
- Command line
-
hf download hf://spaces/hengds2f/researchradar/static/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/hengds2f/researchradar/resolve/main/static/styles.css
31.9 kB
:root {
--bg-dark: #0f172a;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--primary: #3b82f6;
--primary-hover: #2563eb;
--accent: #8b5cf6;
--glass-bg: rgba(30, 41, 59, 0.7);
--glass-border: rgba(255, 255, 255, 0.1);
--surface: #1e293b;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
/* Background Gradients */
.background-accents {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
.accent-blob {
position: absolute;
border-radius: 50%;
filter: blur(100px);
opacity: 0.15;
}
.blob-1 {
width: 600px;
height: 600px;
background: var(--primary);
top: -100px;
left: -100px;
animation: float 10s ease-in-out infinite alternate;
}
.blob-2 {
width: 500px;
height: 500px;
background: var(--accent);
bottom: -100px;
right: -100px;
animation: float 12s ease-in-out infinite alternate-reverse;
}
@keyframes float {
0% { transform: translateY(0px) translateX(0px); }
100% { transform: translateY(50px) translateX(50px); }
}
/* Navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 3rem;
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--glass-border);
position: sticky;
top: 0;
z-index: 100;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 700;
font-size: 1.25rem;
}
.logo svg {
color: var(--primary);
}
nav button {
background: none;
border: none;
color: var(--text-muted);
font-size: 1rem;
font-weight: 500;
cursor: pointer;
margin-left: 2rem;
transition: color 0.2s;
font-family: inherit;
}
nav button:hover, nav button.active {
color: var(--text-main);
}
nav button.active {
position: relative;
}
nav button.active::after {
content: '';
position: absolute;
bottom: -0.5rem;
left: 0;
width: 100%;
height: 2px;
background: var(--primary);
border-radius: 2px;
}
/* Layout */
.container {
padding: 2rem 3rem;
max-width: 1400px;
margin: 0 auto;
}
.view-section {
animation: fadeIn 0.4s ease-out;
}
.view-section.hidden {
display: none;
}
.hidden {
display: none !important;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.two-col-layout {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 2rem;
}
/* Glass Panels */
.glass-panel {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: 1rem;
padding: 2rem;
backdrop-filter: blur(16px);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.full-width {
width: 100%;
min-height: 80vh;
display: flex;
flex-direction: column;
}
/* Typography elements */
h2 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.subtitle {
color: var(--text-muted);
font-size: 0.9rem;
margin-bottom: 1.5rem;
}
h3 {
font-size: 1.1rem;
margin-bottom: 1rem;
font-weight: 500;
}
/* Upload zone */
.upload-zone {
border: 2px dashed rgba(255, 255, 255, 0.2);
border-radius: 0.75rem;
padding: 2rem;
text-align: center;
cursor: pointer;
transition: all 0.2s;
background: rgba(255, 255, 255, 0.02);
margin-bottom: 2rem;
}
.upload-zone:hover, .upload-zone.dragover {
border-color: var(--primary);
background: rgba(59, 130, 246, 0.05);
}
.upload-zone svg {
color: var(--text-muted);
margin-bottom: 1rem;
}
.upload-zone p {
color: var(--text-muted);
font-size: 0.9rem;
}
/* List */
.uploaded-list ul {
list-style: none;
}
.uploaded-list-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.uploaded-list-header h3 {
margin-bottom: 0;
}
.uploaded-list li {
background: rgba(0, 0, 0, 0.2);
padding: 0.75rem 1rem;
border-radius: 0.5rem;
margin-bottom: 0.5rem;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 0.5rem;
justify-content: space-between;
}
.uploaded-list li::before {
content: '📄';
flex-shrink: 0;
}
.paper-list-info {
flex: 1;
min-width: 0;
}
.btn-delete-paper {
background: none;
border: 1px solid rgba(239, 68, 68, 0.4);
color: #f87171;
border-radius: 0.35rem;
padding: 0.2rem 0.5rem;
font-size: 0.8rem;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
flex-shrink: 0;
font-family: inherit;
}
.btn-delete-paper:hover {
background: rgba(239, 68, 68, 0.15);
border-color: #f87171;
}
.btn-danger-outline {
background: none;
border: 1px solid rgba(239, 68, 68, 0.5);
color: #f87171;
border-radius: 0.4rem;
padding: 0.35rem 0.85rem;
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
font-family: inherit;
}
.btn-danger-outline:hover {
background: rgba(239, 68, 68, 0.15);
border-color: #f87171;
}
.empty-state {
color: var(--text-muted);
font-style: italic;
background: none !important;
padding: 0 !important;
}
.empty-state::before {
content: '' !important;
}
/* Forms */
.form-group {
margin-bottom: 1.5rem;
}
label {
display: block;
margin-bottom: 0.5rem;
font-size: 0.9rem;
color: var(--text-muted);
}
.styled-select, textarea {
width: 100%;
background: rgba(0,0,0,0.2);
border: 1px solid var(--glass-border);
color: var(--text-main);
padding: 0.75rem 1rem;
border-radius: 0.5rem;
font-family: inherit;
font-size: 1rem;
outline: none;
transition: border-color 0.2s;
}
.styled-select:focus, textarea:focus {
border-color: var(--primary);
}
textarea {
resize: vertical;
min-height: 100px;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary), var(--accent));
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
font-weight: 500;
font-size: 1rem;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
font-family: inherit;
display: inline-block;
width: auto;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary:active {
transform: translateY(0);
}
/* Results */
.result-area {
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid var(--glass-border);
}
.spinner {
width: 24px;
height: 24px;
border: 3px solid rgba(255,255,255,0.1);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
.loading-state {
display: flex;
align-items: center;
gap: 1rem;
color: var(--text-muted);
}
@keyframes spin {
100% { transform: rotate(360deg); }
}
.markdown-body {
font-size: 0.95rem;
color: #e2e8f0;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
margin-top: 1.5rem;
margin-bottom: 0.75rem;
color: #fff;
}
.markdown-body p {
margin-bottom: 1rem;
}
.markdown-body ul, .markdown-body ol {
margin-bottom: 1rem;
padding-left: 1.5rem;
}
.markdown-body table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1rem;
}
.markdown-body th, .markdown-body td {
border: 1px solid var(--glass-border);
padding: 0.75rem;
text-align: left;
}
.markdown-body th {
background: rgba(0,0,0,0.3);
}
/* D3 Canvas */
.d3-canvas {
flex: 1;
background: rgba(0,0,0,0.2);
border-radius: 0.75rem;
margin-top: 1rem;
overflow: hidden;
min-height: 500px;
}
/* Smaller chart variant for analysis view */
.chart-medium {
min-height: 200px;
flex: none;
}
.node circle {
stroke: #fff;
stroke-width: 1.5px;
}
.node text {
font-size: 12px;
font-family: inherit;
fill: var(--text-main);
pointer-events: none;
}
.link {
stroke: var(--glass-border);
stroke-opacity: 0.6;
}
/* ------------------------------------------------------------------ */
/* Paper Analysis View styles */
/* ------------------------------------------------------------------ */
.chart-container {
margin-bottom: 2rem;
}
.analysis-subpanel {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid var(--glass-border);
}
/* Section classification table */
.sections-list {
margin-top: 1.25rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
max-height: 420px;
overflow-y: auto;
padding-right: 4px;
}
.section-row {
background: rgba(0,0,0,0.25);
border-radius: 0.5rem;
padding: 0.75rem 1rem;
}
.section-meta {
display: flex;
gap: 0.4rem;
margin-bottom: 0.4rem;
flex-wrap: wrap;
}
.tag {
font-size: 0.7rem;
font-weight: 600;
padding: 0.15rem 0.5rem;
border-radius: 999px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.tag-raw {
background: rgba(148,163,184,0.2);
color: #94a3b8;
}
.tag-ml {
background: rgba(59,130,246,0.25);
color: #93c5fd;
}
.confidence-bar-wrap {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.35rem;
}
.confidence-bar {
height: 4px;
border-radius: 2px;
background: linear-gradient(90deg, var(--primary), var(--accent));
transition: width 0.3s ease;
min-width: 2px;
}
.confidence-label {
font-size: 0.75rem;
color: var(--text-muted);
white-space: nowrap;
}
.section-preview {
font-size: 0.78rem;
color: var(--text-muted);
margin: 0;
line-height: 1.5;
}
/* Limitations list */
.limitations-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.limitation-item {
display: flex;
gap: 0.6rem;
align-items: flex-start;
background: rgba(239,68,68,0.07);
border-left: 3px solid rgba(239,68,68,0.4);
padding: 0.6rem 0.75rem;
border-radius: 0 0.4rem 0.4rem 0;
font-size: 0.85rem;
line-height: 1.5;
}
.badge {
font-size: 0.65rem;
font-weight: 700;
padding: 0.1rem 0.4rem;
border-radius: 3px;
text-transform: uppercase;
letter-spacing: 0.05em;
flex-shrink: 0;
margin-top: 0.1rem;
}
.badge-pattern {
background: rgba(59,130,246,0.3);
color: #93c5fd;
}
.badge-llm {
background: rgba(139,92,246,0.3);
color: #c4b5fd;
}
/* Section summaries */
.summaries-content {
display: flex;
flex-direction: column;
gap: 1rem;
}
.summary-block {
background: rgba(0,0,0,0.2);
border-radius: 0.5rem;
padding: 0.9rem 1rem;
}
.summary-label {
display: block;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--primary);
margin-bottom: 0.4rem;
}
.summary-block p {
font-size: 0.875rem;
color: var(--text-muted);
margin: 0;
line-height: 1.6;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.two-col-layout {
grid-template-columns: 1fr;
}
.container {
padding: 1rem;
}
.navbar {
flex-direction: column;
padding: 1rem;
gap: 1rem;
}
nav button {
margin: 0 0.5rem;
}
.glass-panel {
padding: 1.25rem;
}
}
/* ================================================================== */
/* Agent Workflow View */
/* ================================================================== */
/* Pipeline visualisation */
.agent-pipeline {
margin-top: 2rem;
display: flex;
flex-direction: column;
gap: 0;
}
.pipeline-step {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0;
}
.pipeline-connector {
width: 2px;
height: 20px;
background: var(--glass-border);
margin-left: 9px;
}
.step-dot {
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid var(--glass-border);
background: var(--surface);
flex-shrink: 0;
transition: all 0.3s ease;
}
.step-dot-pending { border-color: rgba(148,163,184,0.4); background: var(--surface); }
.step-dot-running { border-color: var(--primary); background: rgba(59,130,246,0.3); animation: pulse-dot 1s infinite; }
.step-dot-completed { border-color: #10b981; background: rgba(16,185,129,0.3); }
.step-dot-failed { border-color: #ef4444; background: rgba(239,68,68,0.3); }
.step-dot-skipped { border-color: #f59e0b; background: rgba(245,158,11,0.2); }
@keyframes pulse-dot {
0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
50% { box-shadow: 0 0 0 6px rgba(59,130,246,0); }
}
.step-info {
display: flex;
flex-direction: column;
line-height: 1.3;
}
.step-name {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-main);
}
.step-status {
font-size: 0.72rem;
color: var(--text-muted);
text-transform: capitalize;
}
/* Critique panel */
.agent-critique {
background: rgba(0,0,0,0.25);
border: 1px solid var(--glass-border);
border-radius: 0.75rem;
padding: 0.9rem 1rem;
margin-bottom: 1.25rem;
}
.critique-header {
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
margin-bottom: 0.6rem;
}
.confidence-badge {
font-size: 0.75rem;
font-weight: 600;
padding: 0.2rem 0.6rem;
border-radius: 999px;
background: rgba(148,163,184,0.2);
color: var(--text-muted);
}
.confidence-high { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.confidence-medium { background: rgba(245,158,11,0.2); color: #fcd34d; }
.confidence-low { background: rgba(239,68,68,0.2); color: #fca5a5; }
.quality-score {
font-size: 0.78rem;
color: var(--text-muted);
}
.provenance-hash {
font-size: 0.72rem;
font-family: monospace;
color: #8b5cf6;
cursor: help;
margin-left: auto;
}
.critique-details {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 0.4rem;
}
.critique-tag {
font-size: 0.72rem;
padding: 0.2rem 0.5rem;
border-radius: 0.3rem;
display: inline-block;
}
.tag-weak { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.tag-missing { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.tag-gap { background: rgba(6,182,212,0.12); color: #67e8f9; border: 1px solid rgba(6,182,212,0.25); }
/* ================================================================== */
/* Provenance View */
/* ================================================================== */
.chain-status {
margin-top: 1.5rem;
padding: 1rem;
background: rgba(0,0,0,0.2);
border-radius: 0.75rem;
border: 1px solid var(--glass-border);
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.chain-status-indicator {
width: 12px;
height: 12px;
border-radius: 50%;
display: inline-block;
margin-right: 0.5rem;
}
.chain-valid { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.chain-invalid { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.chain-status-text {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.chain-status-text strong {
font-size: 0.9rem;
}
.chain-status-text span {
font-size: 0.8rem;
color: var(--text-muted);
}
.chain-meta {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-top: 0.25rem;
}
.mode-badge {
font-size: 0.68rem;
font-weight: 600;
padding: 0.15rem 0.5rem;
border-radius: 999px;
background: rgba(139,92,246,0.2);
color: #c4b5fd;
text-transform: capitalize;
}
/* Provenance timeline */
.provenance-timeline {
display: flex;
flex-direction: column;
gap: 1rem;
max-height: 600px;
overflow-y: auto;
padding-right: 4px;
}
.provenance-card {
border-radius: 0.75rem;
padding: 1rem;
background: rgba(0,0,0,0.2);
border: 1px solid var(--glass-border);
transition: border-color 0.2s;
}
.provenance-card:hover { border-color: rgba(255,255,255,0.2); }
.provenance-upload { border-left: 3px solid #3b82f6; }
.provenance-summary { border-left: 3px solid #10b981; }
.provenance-agent_output { border-left: 3px solid #8b5cf6; }
.prov-card-header {
display: flex;
align-items: center;
gap: 0.6rem;
margin-bottom: 0.75rem;
}
.prov-type-icon { font-size: 1.1rem; }
.prov-type-label {
font-weight: 600;
font-size: 0.875rem;
flex: 1;
}
.prov-timestamp {
font-size: 0.72rem;
color: var(--text-muted);
white-space: nowrap;
}
.prov-card-body {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.prov-hash-row {
display: flex;
align-items: center;
gap: 0.6rem;
font-size: 0.78rem;
}
.prov-hash-label {
color: var(--text-muted);
min-width: 100px;
flex-shrink: 0;
}
.prov-hash {
font-family: 'Courier New', monospace;
font-size: 0.72rem;
color: #93c5fd;
background: rgba(59,130,246,0.1);
padding: 0.1rem 0.4rem;
border-radius: 3px;
cursor: help;
word-break: break-all;
}
.prov-tx { color: #6ee7b7; background: rgba(16,185,129,0.1); }
.prov-ipfs { color: #c4b5fd; background: rgba(139,92,246,0.1); }
.prov-copy-btn {
flex-shrink: 0;
margin-left: auto;
background: none;
border: 1px solid rgba(255,255,255,0.12);
border-radius: 4px;
color: var(--text-muted);
font-size: 0.8rem;
line-height: 1;
padding: 0.15rem 0.35rem;
cursor: pointer;
opacity: 0;
transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
.prov-hash-row:hover .prov-copy-btn {
opacity: 1;
}
.prov-copy-btn:hover {
color: var(--text-main);
border-color: rgba(255,255,255,0.3);
}
.prov-copy-btn--copied {
opacity: 1 !important;
color: #4ade80 !important;
border-color: #4ade80 !important;
}
.prov-meta {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 0.4rem;
padding-top: 0.5rem;
border-top: 1px solid rgba(255,255,255,0.06);
}
.prov-meta-item {
font-size: 0.7rem;
color: var(--text-muted);
background: rgba(255,255,255,0.05);
padding: 0.1rem 0.5rem;
border-radius: 999px;
}
/* ================================================================== */
/* Tool Descriptions */
/* ================================================================== */
.tool-info {
background: rgba(59, 130, 246, 0.05);
border: 1px solid rgba(59, 130, 246, 0.18);
border-radius: 0.65rem;
margin-bottom: 1.5rem;
font-size: 0.85rem;
overflow: hidden;
}
.tool-info summary {
cursor: pointer;
padding: 0.65rem 1rem;
color: #93c5fd;
font-weight: 500;
list-style: none;
display: flex;
align-items: center;
gap: 0.4rem;
user-select: none;
outline: none;
}
.tool-info summary::-webkit-details-marker { display: none; }
.tool-info summary::before {
content: '▶';
font-size: 0.65rem;
transition: transform 0.2s;
display: inline-block;
}
.tool-info[open] summary::before {
transform: rotate(90deg);
}
.tool-info-body {
padding: 0 1rem 0.85rem 1rem;
color: var(--text-muted);
line-height: 1.7;
border-top: 1px solid rgba(59, 130, 246, 0.12);
}
.tool-info-body p {
margin-bottom: 0.5rem;
}
.tool-info-body ul {
list-style: none;
padding: 0;
margin: 0;
}
.tool-info-body ul li {
padding: 0.2rem 0 0.2rem 1.4rem;
position: relative;
font-size: 0.83rem;
background: none !important;
border: none !important;
}
.tool-info-body ul li::before {
content: '→';
position: absolute;
left: 0;
color: #3b82f6;
font-size: 0.8rem;
}
.tool-info-body .agent-row {
display: flex;
align-items: flex-start;
gap: 0.5rem;
padding: 0.25rem 0;
font-size: 0.83rem;
}
.tool-info-body .agent-row strong {
color: var(--text-main);
white-space: nowrap;
}
/* ================================================================== */
/* Activity / Live Status Log */
/* ================================================================== */
.activity-log {
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 0.65rem;
padding: 0.6rem 0.85rem;
margin-top: 0.85rem;
max-height: 220px;
overflow-y: auto;
scroll-behavior: smooth;
}
.log-entry {
display: grid;
grid-template-columns: 1.2rem 3.8rem 1fr;
align-items: start;
gap: 0.4rem;
padding: 0.28rem 0;
border-bottom: 1px solid rgba(255,255,255,0.03);
animation: fadeInLog 0.25s ease-out;
line-height: 1.45;
}
.log-entry:last-child { border-bottom: none; }
@keyframes fadeInLog {
from { opacity: 0; transform: translateX(-6px); }
to { opacity: 1; transform: translateX(0); }
}
.log-icon {
text-align: center;
font-size: 0.8rem;
}
.log-time {
font-size: 0.68rem;
color: rgba(148, 163, 184, 0.45);
padding-top: 0.05rem;
font-family: monospace;
}
.log-msg {
font-size: 0.8rem;
flex: 1;
}
.log-info .log-msg { color: #93c5fd; }
.log-success .log-msg { color: #6ee7b7; }
.log-error .log-msg { color: #fca5a5; }
.log-warning .log-msg { color: #fcd34d; }
.log-muted .log-msg { color: var(--text-muted); }
/* Agent pipeline step descriptions */
.step-desc {
font-size: 0.7rem;
color: rgba(148, 163, 184, 0.6);
line-height: 1.35;
margin-top: 0.1rem;
max-width: 220px;
}
/* Live status bar (shown during operations) */
.live-status-bar {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.5rem 0.85rem;
background: rgba(59, 130, 246, 0.08);
border: 1px solid rgba(59, 130, 246, 0.2);
border-radius: 0.5rem;
margin-top: 0.75rem;
font-size: 0.82rem;
color: #93c5fd;
}
.live-status-bar .spinner {
width: 14px;
height: 14px;
border-width: 2px;
flex-shrink: 0;
}
/* ================================================================== */
/* Secondary button */
/* ================================================================== */
.btn-secondary {
background: rgba(255, 255, 255, 0.06);
color: var(--text-main);
border: 1px solid var(--glass-border);
padding: 0.6rem 1.1rem;
border-radius: 0.5rem;
font-weight: 500;
font-size: 0.875rem;
cursor: pointer;
transition: background 0.2s, border-color 0.2s, transform 0.15s;
font-family: inherit;
display: inline-block;
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.11);
border-color: rgba(255, 255, 255, 0.22);
transform: translateY(-1px);
}
.btn-secondary:active {
transform: translateY(0);
}
/* ================================================================== */
/* Provenance — export / proof actions */
/* ================================================================== */
.provenance-actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
margin-top: 1rem;
}
/* Styled text input (used in verify-hash panel) */
.styled-input {
width: 100%;
background: rgba(0,0,0,0.2);
border: 1px solid var(--glass-border);
color: var(--text-main);
padding: 0.75rem 1rem;
border-radius: 0.5rem;
font-family: 'Courier New', monospace;
font-size: 0.875rem;
outline: none;
transition: border-color 0.2s;
}
.styled-input:focus {
border-color: var(--primary);
}
/* Provenance — mock badge shown next to hash labels */
.prov-mock-badge {
font-size: 0.62rem;
font-weight: 600;
background: rgba(148,163,184,0.15);
color: #94a3b8;
padding: 0.05rem 0.35rem;
border-radius: 3px;
text-transform: uppercase;
letter-spacing: 0.04em;
vertical-align: middle;
margin-left: 0.25rem;
}
/* Provenance — live link in timeline cards */
.prov-link {
text-decoration: none;
transition: opacity 0.15s;
display: inline-flex;
align-items: center;
gap: 0.15rem;
}
.prov-link:hover {
opacity: 0.8;
text-decoration: underline;
}
/* ================================================================== */
/* Provenance — verify hash tool */
/* ================================================================== */
.verify-hash-panel {
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid var(--glass-border);
}
.verify-hash-row {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
margin-bottom: 1rem;
}
.verify-scope-note {
font-size: 0.78rem;
color: var(--text-muted);
font-style: italic;
}
.verify-result {
padding: 0.85rem 1rem;
border-radius: 0.65rem;
font-size: 0.875rem;
margin-top: 0.5rem;
animation: fadeIn 0.25s ease-out;
}
.verify-result--found {
background: rgba(16, 185, 129, 0.08);
border: 1px solid rgba(16, 185, 129, 0.3);
color: #a7f3d0;
}
.verify-result--notfound {
background: rgba(239, 68, 68, 0.07);
border: 1px solid rgba(239, 68, 68, 0.25);
color: #fca5a5;
}
.verify-result--error {
background: rgba(245, 158, 11, 0.07);
border: 1px solid rgba(245, 158, 11, 0.25);
color: #fcd34d;
}
.verify-found-title {
font-weight: 600;
margin-bottom: 0.6rem;
color: #6ee7b7;
}
.verify-match {
display: flex;
gap: 0.6rem;
align-items: flex-start;
padding: 0.4rem 0;
border-top: 1px solid rgba(16, 185, 129, 0.12);
}
.verify-match-icon {
color: #4ade80;
font-size: 0.85rem;
flex-shrink: 0;
margin-top: 0.1rem;
}
.verify-match strong {
display: block;
font-size: 0.85rem;
color: #e2e8f0;
margin-bottom: 0.15rem;
}
.verify-match-meta {
font-size: 0.75rem;
color: #94a3b8;
font-family: monospace;
}
/* ==========================================================================
Semantic Clustering Map
========================================================================== */
.cluster-layout {
display: grid;
grid-template-columns: 300px 1fr;
gap: 1.5rem;
align-items: start;
}
/* Sidebar */
.cluster-sidebar {
display: flex;
flex-direction: column;
gap: 1.25rem;
position: sticky;
top: 5rem;
max-height: calc(100vh - 8rem);
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: rgba(255,255,255,0.1) transparent;
}
/* Stats bar */
.cluster-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.6rem;
}
.stat-card {
background: rgba(0,0,0,0.25);
border: 1px solid rgba(255,255,255,0.07);
border-radius: 0.6rem;
padding: 0.65rem 0.75rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.15rem;
}
.stat-value {
font-size: 1.35rem;
font-weight: 700;
color: var(--text-main);
line-height: 1;
}
.stat-label {
font-size: 0.7rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.06em;
}
/* Filters */
.cluster-filters {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.cluster-filters .form-group {
margin-bottom: 0;
}
.styled-select--sm,
.styled-input {
width: 100%;
background: rgba(0,0,0,0.2);
border: 1px solid var(--glass-border);
color: var(--text-main);
padding: 0.5rem 0.75rem;
border-radius: 0.4rem;
font-family: inherit;
font-size: 0.875rem;
outline: none;
transition: border-color 0.2s;
}
.styled-select--sm:focus,
.styled-input:focus {
border-color: var(--primary);
}
/* Toggles */
.cluster-toggles {
display: flex;
flex-direction: column;
gap: 0.5rem;
border-top: 1px solid var(--glass-border);
padding-top: 1rem;
}
.toggle-row {
display: flex;
align-items: center;
gap: 0.6rem;
font-size: 0.875rem;
color: var(--text-muted);
cursor: pointer;
user-select: none;
}
.toggle-row input[type="checkbox"] {
width: 15px;
height: 15px;
accent-color: var(--primary);
cursor: pointer;
}
.toggle-row:hover {
color: var(--text-main);
}
/* Method badge */
.cluster-method-badge {
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
background: rgba(139,92,246,0.12);
border: 1px solid rgba(139,92,246,0.25);
border-radius: 2rem;
padding: 0.3rem 0.75rem;
text-align: center;
align-self: flex-start;
}
/* Detail panel */
.cluster-detail {
border-top: 1px solid var(--glass-border);
padding-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
animation: fadeIn 0.2s ease-out;
}
.detail-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.5rem;
}
.detail-header h3 {
font-size: 0.9rem;
font-weight: 600;
color: var(--text-main);
margin: 0;
line-height: 1.4;
word-break: break-word;
}
.detail-close {
background: none;
border: 1px solid rgba(255,255,255,0.15);
color: var(--text-muted);
border-radius: 0.3rem;
padding: 0.15rem 0.4rem;
font-size: 0.75rem;
cursor: pointer;
flex-shrink: 0;
transition: color 0.15s, border-color 0.15s;
font-family: inherit;
}
.detail-close:hover {
color: var(--text-main);
border-color: rgba(255,255,255,0.3);
}
.detail-meta {
display: grid;
grid-template-columns: auto 1fr;
gap: 0.3rem 0.75rem;
font-size: 0.8rem;
}
.detail-meta dt {
color: var(--text-muted);
font-weight: 500;
}
.detail-meta dd {
color: var(--text-main);
margin: 0;
word-break: break-word;
}
.btn-secondary {
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.15);
color: var(--text-main);
border-radius: 0.4rem;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
font-family: inherit;
width: 100%;
text-align: center;
}
.btn-secondary:hover {
background: rgba(255,255,255,0.1);
border-color: rgba(255,255,255,0.25);
}
.btn-sm {
padding: 0.35rem 0.75rem;
font-size: 0.8rem;
}
/* Chart area */
.cluster-chart-wrap {
position: relative;
min-height: 600px;
display: flex;
flex-direction: column;
padding: 1rem;
}
.cluster-chart {
width: 100%;
flex: 1;
min-height: 560px;
}
/* Empty state */
.cluster-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
min-height: 400px;
color: var(--text-muted);
text-align: center;
padding: 2rem;
}
.cluster-empty-state svg {
opacity: 0.4;
}
.cluster-empty-state p {
font-size: 0.95rem;
max-width: 320px;
}
/* Loading overlay */
.cluster-loading {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
padding: 3rem;
color: var(--text-muted);
font-size: 0.9rem;
}
/* Responsive */
@media (max-width: 900px) {
.cluster-layout {
grid-template-columns: 1fr;
}
.cluster-sidebar {
position: static;
max-height: none;
}
.cluster-stats {
grid-template-columns: repeat(4, 1fr);
}
}
:root {
--bg-dark: #0f172a;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--primary: #3b82f6;
--primary-hover: #2563eb;
--accent: #8b5cf6;
--glass-bg: rgba(30, 41, 59, 0.7);
--glass-border: rgba(255, 255, 255, 0.1);
--surface: #1e293b;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
/* Background Gradients */
.background-accents {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
.accent-blob {
position: absolute;
border-radius: 50%;
filter: blur(100px);
opacity: 0.15;
}
.blob-1 {
width: 600px;
height: 600px;
background: var(--primary);
top: -100px;
left: -100px;
animation: float 10s ease-in-out infinite alternate;
}
.blob-2 {
width: 500px;
height: 500px;
background: var(--accent);
bottom: -100px;
right: -100px;
animation: float 12s ease-in-out infinite alternate-reverse;
}
@keyframes float {
0% { transform: translateY(0px) translateX(0px); }
100% { transform: translateY(50px) translateX(50px); }
}
/* Navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 3rem;
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--glass-border);
position: sticky;
top: 0;
z-index: 100;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 700;
font-size: 1.25rem;
}
.logo svg {
color: var(--primary);
}
nav button {
background: none;
border: none;
color: var(--text-muted);
font-size: 1rem;