CapStone / frontend /styles.css
Muizah's picture
First v
d6c005e
Raw
History Blame Contribute Delete
25.3 kB
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 15px;
-webkit-font-smoothing: antialiased;
}
body {
background-color: #03091a;
color: #F0F4FF;
font-family: 'Inter', 'Roboto', 'SF Pro Display', sans-serif;
line-height: 1.6;
min-height: 100vh;
}
/* ── CSS VARIABLES ────────────────────────────────────────────────────────── */
:root {
/* Backgrounds */
--bg-void: #03091a;
--bg-base: #061225;
--bg-surface: #0d2240;
--bg-elevated: #162f52;
--bg-hover: #1e3d66;
--bg-border: #2a4f7c;
/* Brand colors */
--primary: #063B87;
--accent: #1BBEFF;
--accent-hover: #45CFFF;
--accent-dim: #0e6fa8;
--mid: #2a4f7c;
--light: #85C6EB;
--off-white: #F0F4FF;
--accent-glow: rgba(27, 190, 255, 0.2);
/* Text */
--text-primary: #F0F4FF;
--text-secondary: #90BCE0;
--text-muted: #4d7aaa;
--text-accent: #1BBEFF;
/* Status */
--green: #00e676;
--red: #ff4d6a;
/* Fonts */
--font-mono: 'JetBrains Mono', monospace;
--font-display: 'Inter', 'Roboto', 'SF Pro Display', sans-serif;
--font-body: 'Inter', 'Roboto', 'SF Pro Display', sans-serif;
/* Shape */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--border: 1px solid var(--bg-border);
}
/* ── SCROLLBAR ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
/* ── NAVIGATION BAR ───────────────────────────────────────────────────────── */
#navbar {
position: sticky;
top: 0;
z-index: 50;
background: var(--primary);
border-bottom: 2px solid rgba(27, 190, 255, 0.3);
padding: 16px 36px;
display: flex;
align-items: center;
box-shadow: 0 4px 24px rgba(3, 9, 26, 0.6);
}
#nav-left {
display: flex;
align-items: center;
gap: 14px;
}
#nav-dot {
width: 11px;
height: 11px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-glow);
}
#nav-title {
font-size: 1.2rem;
font-weight: 700;
color: #ffffff;
letter-spacing: -0.01em;
}
/* ── MAIN LAYOUT ──────────────────────────────────────────────────────────── */
#app {
max-width: 1600px;
margin: 0 auto;
padding: 36px 28px;
display: flex;
flex-direction: column;
gap: 28px;
}
/* ── BASE PANEL ───────────────────────────────────────────────────────────── */
.panel {
background: var(--bg-surface);
border: 1px solid var(--bg-border);
border-radius: var(--radius-lg);
padding: 30px;
box-shadow: 0 4px 24px rgba(3, 9, 26, 0.4);
}
.panel-accent {
border-color: var(--accent);
box-shadow: 0 0 40px var(--accent-glow),
0 4px 24px rgba(3, 9, 26, 0.4);
}
/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
.heading {
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.02em;
font-size: 1.4rem;
}
.label {
font-family: var(--font-mono);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.14em;
color: var(--light);
}
.data {
font-family: var(--font-mono);
font-size: 1rem;
color: #ffffff;
font-weight: 700;
}
.secondary {
color: var(--text-secondary);
font-size: 0.92rem;
}
.placeholder-text {
color: var(--text-muted);
font-size: 0.85rem;
font-style: italic;
}
/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn-primary {
background: var(--accent);
color: #03091a;
font-weight: 700;
font-size: 0.85rem;
padding: 11px 28px;
border-radius: var(--radius-md);
border: none;
cursor: pointer;
transition: background 0.18s ease,
box-shadow 0.18s ease,
transform 0.1s ease;
box-shadow: 0 4px 20px var(--accent-glow);
white-space: nowrap;
}
.btn-primary:hover {
background: var(--accent-hover);
box-shadow: 0 6px 28px rgba(27, 190, 255, 0.45);
transform: translateY(-1px);
}
.btn-primary:active {
transform: translateY(0);
box-shadow: none;
}
.btn-primary:disabled {
opacity: 0.3;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
font-size: 0.82rem;
padding: 9px 18px;
border-radius: var(--radius-md);
border: 1px solid var(--bg-border);
cursor: pointer;
transition: border-color 0.18s ease,
color 0.18s ease,
background 0.18s ease;
white-space: nowrap;
}
.btn-ghost:hover {
border-color: var(--accent);
color: var(--accent);
background: rgba(27, 190, 255, 0.08);
}
/* ── PROMPT PANEL ─────────────────────────────────────────────────────────── */
#prompt-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 20px;
gap: 16px;
flex-wrap: wrap;
}
#prompt-input {
width: 100%;
background: var(--bg-elevated);
border: 1px solid var(--bg-border);
border-radius: var(--radius-md);
color: var(--text-primary);
font-size: 1rem;
line-height: 1.7;
padding: 16px 20px;
resize: vertical;
outline: none;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#prompt-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
#prompt-input::placeholder {
color: var(--text-muted);
}
#prompt-stats {
display: flex;
gap: 28px;
margin-top: 20px;
flex-wrap: wrap;
align-items: flex-end;
}
.stat-box {
display: flex;
flex-direction: column;
gap: 5px;
}
.data-input {
background: var(--bg-elevated);
border: 1px solid var(--bg-border);
border-radius: var(--radius-sm);
color: var(--text-accent);
font-family: var(--font-mono);
font-size: 1rem;
font-weight: 600;
padding: 4px 10px;
width: 90px;
outline: none;
transition: border-color 0.2s ease;
}
.data-input:focus {
border-color: var(--accent);
}
/* ── GROUP SECTIONS ───────────────────────────────────────────────────────── */
.group-section {
background: var(--bg-surface);
border: 1px solid var(--bg-border);
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
border-radius: var(--radius-lg);
padding: 28px;
display: flex;
flex-direction: column;
gap: 24px;
box-shadow: 0 4px 24px rgba(3, 9, 26, 0.4);
}
.group-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}
.group-header-left {
display: flex;
align-items: flex-start;
gap: 16px;
}
.group-tag {
font-family: var(--font-mono);
font-size: 0.7rem;
font-weight: 700;
color: #ffffff;
background: var(--accent);
padding: 4px 12px;
border-radius: 20px;
white-space: nowrap;
margin-top: 6px;
box-shadow: 0 2px 10px var(--accent-glow);
}
/* ── STRATEGIES CONTAINER ─────────────────────────────────────────────────── */
.strategies-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.strategies-container-4 {
grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
.strategies-container-4 {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.strategies-container,
.strategies-container-4 {
grid-template-columns: 1fr;
}
}
/* ── STRATEGY CARDS ───────────────────────────────────────────────────────── */
.strategy-card {
background: var(--bg-elevated);
border: 1px solid var(--bg-border);
border-radius: var(--radius-md);
overflow: hidden;
display: flex;
flex-direction: column;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.strategy-card.pending {
border: 1px dashed var(--bg-border);
opacity: 0.55;
}
.strategy-card.running {
border: 2px solid var(--accent);
opacity: 1;
animation: card-pulse 1.4s ease-in-out infinite;
box-shadow: 0 0 20px var(--accent-glow),
0 4px 16px rgba(3, 9, 26, 0.4);
}
.strategy-card.done {
border: 1px solid rgba(27, 190, 255, 0.35);
opacity: 1;
animation: none;
box-shadow: 0 2px 12px rgba(3, 9, 26, 0.3);
}
.strategy-card.error {
border: 1px solid var(--red);
opacity: 1;
animation: none;
}
@keyframes card-pulse {
0%, 100% {
box-shadow: 0 0 12px var(--accent-glow);
}
50% {
box-shadow: 0 0 32px rgba(27, 190, 255, 0.45);
}
}
/* ── STRATEGY CARD HEADER ─────────────────────────────────────────────────── */
.strategy-card-header {
padding: 16px 18px;
background: var(--bg-surface);
border-bottom: 1px solid var(--bg-border);
}
.strategy-card-title-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 6px;
gap: 12px;
}
.col-title {
font-size: 0.95rem;
font-weight: 700;
color: var(--text-accent);
}
.col-params {
font-family: var(--font-mono);
font-size: 0.66rem;
color: var(--accent);
background: rgba(27, 190, 255, 0.12);
padding: 3px 10px;
border-radius: 20px;
border: 1px solid rgba(27, 190, 255, 0.25);
white-space: nowrap;
}
.col-description {
font-size: 0.78rem;
color: var(#ffffff);
line-height: 1.5;
margin-top: 4px;
}
.param-row {
display: flex;
gap: 12px;
margin-top: 12px;
flex-wrap: wrap;
}
.col-param-control {
display: flex;
flex-direction: column;
gap: 4px;
}
.param-label {
font-family: var(--font-mono);
font-size: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--off-white);
}
.param-input {
background: var(--bg-void);
border: 1px solid var(--bg-border);
border-radius: var(--radius-sm);
color: var(--text-accent);
font-family: var(--font-mono);
font-size: 0.88rem;
font-weight: 600;
padding: 4px 8px;
width: 72px;
text-align: right;
outline: none;
transition: border-color 0.2s ease;
}
.param-input:focus {
border-color: var(--accent);
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow),
0 0 20px rgba(27, 190, 255, 0.35);
}
/* ── COLUMN STATS ─────────────────────────────────────────────────────────── */
.col-stats {
display: flex;
gap: 14px;
padding: 10px 18px;
background: var(--bg-surface);
border-bottom: 1px solid var(--bg-border);
flex-wrap: wrap;
}
/* ── COLUMN OUTPUT ────────────────────────────────────────────────────────── */
.col-output {
padding: 16px 18px;
flex: 1;
overflow-y: auto;
max-height: 200px;
min-height: 80px;
}
.col-output-text {
font-size: 0.88rem;
color: var(--light);
line-height: 1.8;
}
/* ── GROUP STREAMING VISUALIZER ───────────────────────────────────────────── */
.group-streaming {
background: var(--bg-base);
border: 1px solid var(--bg-border);
border-radius: var(--radius-md);
padding: 20px;
box-shadow: inset 0 2px 8px rgba(3, 9, 26, 0.4);
}
.streaming-cols {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
margin-top: 12px;
}
.streaming-cols-4 {
grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
.streaming-cols-4 {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.streaming-cols,
.streaming-cols-4 {
grid-template-columns: 1fr;
}
}
.streaming-col {
display: flex;
flex-direction: column;
gap: 8px;
}
.streaming-col-label {
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--text-accent);
text-transform: uppercase;
letter-spacing: 0.1em;
}
.streaming-display {
font-family: var(--font-mono);
font-size: 0.82rem;
line-height: 2;
color: var(--text-primary);
min-height: 60px;
word-wrap: break-word;
padding: 12px 14px;
background: var(--bg-void);
border-radius: var(--radius-sm);
border: 1px solid var(--bg-border);
}
/* ── TOKEN FLASH ANIMATION ────────────────────────────────────────────────── */
.token-new {
animation: token-flash 0.8s ease-out forwards;
border-radius: 3px;
padding: 0 2px;
}
@keyframes token-flash {
0% { background: var(--accent); color: #03091a; }
100% { background: transparent; color: var(--text-primary); }
}
/* ── GROUP SIMILARITY ─────────────────────────────────────────────────────── */
.group-similarity {
background: var(--bg-base);
border: 1px solid var(--bg-border);
border-radius: var(--radius-md);
padding: 20px;
box-shadow: inset 0 2px 8px rgba(3, 9, 26, 0.4);
}
.similarity-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 12px;
margin-top: 12px;
}
.similarity-card {
background: var(--bg-elevated);
border: 1px solid var(--bg-border);
border-radius: var(--radius-md);
padding: 16px;
display: flex;
flex-direction: column;
gap: 8px;
box-shadow: 0 2px 8px rgba(3, 9, 26, 0.3);
}
.similarity-pair {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-secondary);
line-height: 1.4;
}
.similarity-score-value {
font-family: var(--font-mono);
font-size: 1.5rem;
font-weight: 700;
color: var(--text-accent);
}
.similarity-bar-track {
height: 4px;
background: var(--bg-border);
border-radius: 2px;
overflow: hidden;
}
.similarity-bar-fill {
height: 100%;
background: var(--accent);
border-radius: 2px;
transition: width 0.6s ease;
}
.similarity-avg {
margin-top: 16px;
font-family: var(--font-mono);
font-size: 0.85rem;
color: var(--text-secondary);
padding: 10px 14px;
background: var(--bg-elevated);
border-radius: var(--radius-sm);
border: 1px solid var(--bg-border);
display: inline-block;
}
/* ── ANALYSIS SECTION ─────────────────────────────────────────────────────── */
.analysis-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 28px;
}
.analysis-block {
background: var(--bg-elevated);
border: 1px solid var(--bg-border);
border-radius: var(--radius-lg);
padding: 24px;
box-shadow: 0 2px 12px rgba(3, 9, 26, 0.35);
display: flex;
flex-direction: column;
gap: 12px;
}
#analysis-section.panel {
display: flex;
flex-direction: column;
gap: 20px;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.analysis-subheading {
font-size: 1.1rem;
font-weight: 700;
color: var(--text-primary);
}
/* ── SECTION DIVIDER ──────────────────────────────────────────────────────── */
.section-divider {
height: 1px;
background: var(--bg-border);
margin: 4px 0;
}
/* ── SELECTOR ROW ─────────────────────────────────────────────────────────── */
.selector-row {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.strategy-select {
background: var(--bg-elevated);
border: 1px solid var(--bg-border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: var(--font-mono);
font-size: 0.82rem;
padding: 7px 12px;
outline: none;
cursor: pointer;
transition: border-color 0.2s ease;
min-width: 200px;
}
.strategy-select:focus {
border-color: var(--accent);
}
/* ── ATTENTION HEATMAP ────────────────────────────────────────────────────── */
#attention-display {
overflow-x: auto;
}
.attention-table {
border-collapse: collapse;
font-family: var(--font-mono);
font-size: 0.72rem;
}
.attention-col-header {
height: 80px;
white-space: nowrap;
vertical-align: bottom;
padding-bottom: 4px;
padding-left: 4px;
}
.attention-col-header span {
display: inline-block;
transform: rotate(-45deg);
transform-origin: left bottom;
color: var(--text-secondary);
}
.attention-row-header {
white-space: nowrap;
padding-right: 10px;
color: var(--text-secondary);
text-align: right;
font-size: 0.72rem;
}
.attention-cell {
width: 22px;
height: 22px;
min-width: 22px;
}
.attn-1 {
background-color: #3b1d00;
}
.attn-2 {
background-color: #7c2d12;
}
.attn-3 {
background-color: #c2410c;
}
.attn-4 {
background-color: #ea580c;
}
.attn-5 {
background-color: #fdba74;
}
/* ── CONSISTENCY TRACKER ──────────────────────────────────────────────────── */
#consistency-display {
display: flex;
flex-direction: column;
gap: 12px;
}
.consistency-run-item {
display: flex;
gap: 12px;
align-items: flex-start;
padding: 10px 14px;
background: var(--bg-surface);
border-radius: var(--radius-md);
border: 1px solid var(--bg-border);
}
.run-number {
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--text-muted);
min-width: 28px;
padding-top: 2px;
}
.run-text {
font-size: 0.88rem;
color: var(--text-secondary);
line-height: 1.6;
}
/* ── TRADEOFF DASHBOARD ───────────────────────────────────────────────────── */
#dashboard-table-wrap {
overflow-x: auto;
}
.dashboard-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.dashboard-table th {
text-align: left;
padding: 11px 18px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
font-size: 0.68rem;
border-bottom: 1px solid var(--bg-border);
white-space: nowrap;
font-family: var(--font-mono);
}
.dashboard-table td {
padding: 13px 18px;
color: var(--text-secondary);
border-bottom: 1px solid rgba(42, 79, 124, 0.3);
}
.dashboard-table tr:last-child td {
border-bottom: none;
}
.dashboard-table td:first-child {
color: var(--text-primary);
font-weight: 700;
}
.dashboard-table td:nth-child(2) {
color: var(--text-muted);
font-size: 0.8rem;
font-family: var(--font-mono);
}
.dashboard-table tr:hover td {
background: var(--bg-hover);
}
/* ── SPINNER ──────────────────────────────────────────────────────────────── */
.spinner {
display: inline-block;
width: 13px;
height: 13px;
border: 2px solid var(--bg-border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.7s linear infinite;
vertical-align: middle;
margin-right: 6px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ── ERROR ────────────────────────────────────────────────────────────────── */
.error-text {
font-family: var(--font-mono);
font-size: 0.82rem;
color: var(--red);
}
/* ── CARD STREAMING ───────────────────────────────────────────────────────── */
.card-streaming {
padding: 14px 18px;
border-top: 1px solid var(--bg-border);
background: var(--bg-void);
flex: 1;
}
.card-streaming-label {
font-family: var(--font-mono);
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--text-muted);
margin-bottom: 8px;
}
/* ── GROUP OUTPUT ─────────────────────────────────────────────────────────── */
.group-output {
background: var(--bg-base);
border: 1px solid var(--bg-border);
border-radius: var(--radius-md);
padding: 20px;
box-shadow: inset 0 2px 8px rgba(3, 9, 26, 0.4);
}
.group-output-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
margin-top: 12px;
}
.group-output-grid-4 {
grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
.group-output-grid-4 {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.group-output-grid,
.group-output-grid-4 {
grid-template-columns: 1fr;
}
}
.group-output-col {
display: flex;
flex-direction: column;
gap: 8px;
}
.group-output-label {
font-family: var(--font-mono);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-accent);
}
.group-output-text {
font-size: 0.88rem;
color: var(--text-secondary);
line-height: 1.8;
padding: 12px 14px;
background: var(--bg-elevated);
border-radius: var(--radius-sm);
border: 1px solid var(--bg-border);
min-height: 80px;
}
/* ── ATTENTION HEATMAP CONTAINER ──────────────────────────────────────────── */
#attention-display {
background: var(--bg-void);
border: 1px solid var(--bg-border);
border-radius: var(--radius-md);
padding: 20px;
overflow-x: auto;
margin-top: 8px;
box-shadow: inset 0 2px 8px rgba(3, 9, 26, 0.5);
}
.attention-table {
border-collapse: collapse;
font-family: var(--font-mono);
font-size: 0.72rem;
min-width: max-content;
}
.attention-col-header {
height: 90px;
white-space: nowrap;
vertical-align: bottom;
padding-bottom: 6px;
padding-left: 4px;
}
.attention-col-header span {
display: inline-block;
transform: rotate(-45deg);
transform-origin: left bottom;
color: var(--text-secondary);
font-size: 0.7rem;
}
.attention-row-header {
white-space: nowrap;
padding-right: 12px;
padding-top: 2px;
color: var(--text-secondary);
text-align: right;
font-size: 0.72rem;
font-family: var(--font-mono);
}
.attention-cell {
width: 24px;
height: 24px;
min-width: 24px;
border: 1px solid rgba(3, 9, 26, 0.3);
}
.attn-0 { background: rgba(13, 34, 64, 0.8); }
.attn-1 { background: rgba(27, 190, 255, 0.15); }
.attn-2 { background: rgba(27, 190, 255, 0.32); }
.attn-3 { background: rgba(27, 190, 255, 0.52); }
.attn-4 { background: rgba(27, 190, 255, 0.74); }
.attn-5 { background: rgba(27, 190, 255, 0.95); color: #03091a; font-weight: 700; }
/* ── ATTENTION HEATMAP GRID ───────────────────────────────────────────────── */
.heatmap-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
margin-top: 8px;
}
@media (max-width: 1100px) {
.heatmap-grid {
grid-template-columns: 1fr;
}
}
.heatmap-block {
background: var(--bg-void);
border: 1px solid var(--bg-border);
border-radius: var(--radius-md);
padding: 16px;
overflow-x: auto;
}
.heatmap-title {
font-family: var(--font-mono);
font-size: 0.78rem;
font-weight: 700;
color: var(--text-accent);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 4px;
}
.heatmap-subtitle {
font-size: 0.75rem;
color: var(--text-muted);
margin-bottom: 14px;
}