reviewlens-ai / static /css /main.css
Darshna21's picture
feat: Add premium UI enhancements, loading checklists, and tuned parameters
8194509
Raw
History Blame Contribute Delete
19.2 kB
/* ─────────────────────────────────────────────────────────────
ReviewLens AI β€” Zinc Dark + Green
JetBrains Mono throughout. Green accent, no purple.
───────────────────────────────────────────────────────────── */
:root {
--bg-base: #0a0a0a;
--bg-surface: #111111;
--bg-raised: #181818;
--bg-elevated: #202020;
--border: rgba(255, 255, 255, 0.06);
--border-hover: rgba(0, 200, 83, 0.25);
--text-primary: #e8e8e8;
--text-secondary:#888888;
--text-muted: #444444;
--accent: #00c853;
--accent-dim: rgba(0, 200, 83, 0.1);
--accent-glow: rgba(0, 200, 83, 0.3);
--positive: #00c853;
--positive-dim: rgba(0, 200, 83, 0.1);
--neutral: #ffd600;
--neutral-dim: rgba(255, 214, 0, 0.1);
--negative: #ff1744;
--negative-dim: rgba(255, 23, 68, 0.1);
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--font-display: 'Playfair Display', Georgia, serif;
--font-main: 'Source Serif 4', Georgia, serif;
--transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
background: var(--bg-base);
color: var(--text-primary);
font-family: var(--font-main);
font-size: 15px;
line-height: 1.65;
min-height: 100vh;
overflow-x: hidden;
}
/* subtle scanline texture β€” very faint */
body::before {
content: '';
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0,0,0,0.03) 2px,
rgba(0,0,0,0.03) 4px
);
}
/* ── Header ── */
.site-header {
position: sticky;
top: 0;
z-index: 100;
background: rgba(10, 10, 10, 0.92);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.header-inner {
max-width: 860px;
margin: 0 auto;
padding: 14px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo-mark {
display: flex;
align-items: center;
gap: 10px;
}
.logo-icon {
display: flex;
gap: 3px;
align-items: flex-end;
}
.logo-dot {
width: 4px;
border-radius: 1px;
background: var(--accent);
animation: bar-idle 2s ease-in-out infinite;
}
.logo-dot:nth-child(1) { height: 8px; animation-delay: 0.0s; }
.logo-dot:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.logo-dot:nth-child(3) { height: 10px; animation-delay: 0.3s; }
@keyframes bar-idle {
0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
50% { opacity: 1; transform: scaleY(1); }
}
.logo-text {
font-family: var(--font-display);
font-weight: 700;
font-size: 16px;
letter-spacing: 0;
color: var(--text-primary);
}
.logo-ai {
color: var(--accent);
}
.header-status {
display: flex;
align-items: center;
gap: 7px;
}
.status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--text-muted);
transition: background var(--transition);
flex-shrink: 0;
}
.status-dot.ready { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.status-dot.partial { background: var(--neutral); box-shadow: 0 0 8px rgba(255,214,0,0.4); }
.status-dot.error { background: var(--negative); box-shadow: 0 0 8px rgba(255,23,68,0.4); }
.status-label {
font-size: 11px;
color: var(--text-secondary);
letter-spacing: 0.02em;
}
/* ── Main layout ── */
.main-content {
max-width: 860px;
margin: 0 auto;
padding: 0 24px 80px;
position: relative;
z-index: 1;
}
/* ── Hero ── */
.hero {
padding: 64px 0 48px;
}
.hero-eyebrow {
font-size: 10px;
font-weight: 400;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 18px;
display: flex;
align-items: center;
gap: 8px;
}
.hero-eyebrow::before {
content: '';
display: inline-block;
width: 20px;
height: 1px;
background: var(--accent);
}
.hero-title {
font-family: var(--font-display);
font-weight: 900;
font-size: clamp(32px, 4.5vw, 52px);
line-height: 1.1;
letter-spacing: -0.01em;
color: var(--text-primary);
margin-bottom: 16px;
}
.hero-accent {
color: var(--accent);
}
.hero-sub {
max-width: 500px;
color: var(--text-secondary);
font-size: 13px;
line-height: 1.75;
font-weight: 400;
}
/* ── Analyzer card ── */
.analyzer-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 24px;
transition: border-color var(--transition);
}
.analyzer-card:focus-within {
border-color: rgba(0, 200, 83, 0.2);
}
.input-label {
display: flex;
justify-content: space-between;
align-items: baseline;
font-size: 10px;
font-weight: 400;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 10px;
}
.char-count {
letter-spacing: 0;
text-transform: none;
transition: color var(--transition);
}
.char-count.near-limit { color: var(--neutral); }
.char-count.at-limit { color: var(--negative); }
.review-textarea {
width: 100%;
min-height: 150px;
background: var(--bg-raised);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
font-family: var(--font-main);
font-size: 14px;
line-height: 1.7;
padding: 14px 16px;
resize: vertical;
outline: none;
transition: border-color var(--transition), box-shadow var(--transition);
}
.review-textarea::placeholder { color: var(--text-muted); }
.review-textarea:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-dim);
}
.input-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 14px;
}
.btn-primary,
.btn-secondary {
font-family: var(--font-main);
font-size: 12px;
font-weight: 600;
cursor: pointer;
border-radius: var(--radius-sm);
padding: 9px 18px;
border: 1px solid transparent;
transition: all var(--transition);
display: flex;
align-items: center;
gap: 7px;
letter-spacing: 0.02em;
}
.btn-secondary {
background: transparent;
border-color: var(--border);
color: var(--text-muted);
}
.btn-secondary:hover {
border-color: var(--border-hover);
color: var(--text-secondary);
}
.btn-primary {
background: var(--accent);
color: #000;
}
.btn-primary:hover:not(:disabled) {
background: #00e564;
box-shadow: 0 0 20px var(--accent-glow);
transform: translateY(-1px);
}
.btn-primary:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.btn-arrow {
transition: transform var(--transition);
display: inline-block;
}
.btn-primary:hover:not(:disabled) .btn-arrow {
transform: translateX(3px);
}
/* ── Loading panel ── */
.loading-panel {
margin-top: 16px;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 36px;
}
.loading-inner {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
}
.loading-bars {
display: flex;
align-items: flex-end;
gap: 3px;
height: 24px;
}
.loading-bars span {
display: block;
width: 3px;
border-radius: 1px;
background: var(--accent);
animation: bar-bounce 1s ease-in-out infinite;
}
.loading-bars span:nth-child(1) { height: 10px; animation-delay: 0.0s; }
.loading-bars span:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.loading-bars span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.loading-bars span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.loading-bars span:nth-child(5) { height: 10px; animation-delay: 0.4s; }
@keyframes bar-bounce {
0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
50% { transform: scaleY(1.0); opacity: 1; }
}
.loading-text {
font-size: 12px;
color: var(--text-muted);
letter-spacing: 0.05em;
}
.loading-dots::after {
content: '';
animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
0% { content: ''; }
25% { content: '.'; }
50% { content: '..'; }
75% { content: '...'; }
100% { content: ''; }
}
/* ── Error panel ── */
.error-panel {
margin-top: 16px;
background: rgba(255, 23, 68, 0.05);
border: 1px solid rgba(255, 23, 68, 0.2);
border-radius: var(--radius-lg);
padding: 20px 24px;
display: flex;
align-items: flex-start;
gap: 12px;
}
.error-icon {
font-size: 14px;
flex-shrink: 0;
padding-top: 1px;
}
.error-message {
color: var(--negative);
font-size: 12px;
line-height: 1.5;
}
/* ── Results panel ── */
.results-panel {
margin-top: 16px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
animation: fade-up 0.3s ease-out both;
}
@keyframes fade-up {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
.results-panel { grid-template-columns: 1fr; }
}
.result-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
display: flex;
flex-direction: column;
gap: 14px;
}
.result-card-header {
display: flex;
align-items: center;
justify-content: space-between;
}
.result-card-label {
font-size: 10px;
font-weight: 400;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-muted);
}
.model-tag {
font-size: 10px;
padding: 2px 7px;
border-radius: 3px;
background: var(--accent-dim);
color: var(--accent);
border: 1px solid rgba(0, 200, 83, 0.15);
letter-spacing: 0.05em;
}
/* ── Sentiment badge ── */
.sentiment-badge {
font-family: var(--font-display);
font-weight: 700;
font-size: 18px;
letter-spacing: 0;
padding: 5px 12px;
border-radius: var(--radius-sm);
transition: all 0.3s ease;
}
.sentiment-badge.positive {
color: var(--positive);
background: var(--positive-dim);
border: 1px solid rgba(0, 200, 83, 0.2);
}
.sentiment-badge.neutral {
color: var(--neutral);
background: var(--neutral-dim);
border: 1px solid rgba(255, 214, 0, 0.2);
}
.sentiment-badge.negative {
color: var(--negative);
background: var(--negative-dim);
border: 1px solid rgba(255, 23, 68, 0.2);
}
/* ── Confidence bars ── */
.confidence-heading {
font-size: 10px;
color: var(--text-muted);
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.confidence-bars {
display: flex;
flex-direction: column;
gap: 9px;
}
.conf-row {
display: flex;
flex-direction: column;
gap: 4px;
}
.conf-row-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.conf-label { font-size: 11px; color: var(--text-secondary); }
.conf-score { font-size: 11px; font-weight: 600; color: var(--text-primary); }
.conf-track {
height: 3px;
background: var(--bg-elevated);
border-radius: 2px;
overflow: hidden;
}
.conf-fill {
height: 100%;
border-radius: 2px;
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.conf-fill.positive { background: var(--positive); }
.conf-fill.neutral { background: var(--neutral); }
.conf-fill.negative { background: var(--negative); }
/* ── Summary card ── */
.summary-text {
font-size: 13px;
line-height: 1.75;
color: var(--text-primary);
font-family: var(--font-main);
}
.summary-meta {
font-size: 10px;
color: var(--text-muted);
letter-spacing: 0.05em;
}
/* ── Examples ── */
.examples-section {
margin-top: 40px;
}
.examples-label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--text-muted);
margin-bottom: 10px;
}
.examples-grid {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.example-chip {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text-secondary);
font-family: var(--font-main);
font-size: 11px;
padding: 7px 14px;
cursor: pointer;
transition: all var(--transition);
letter-spacing: 0.02em;
}
.example-chip:hover {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-dim);
}
/* ── Footer ── */
.site-footer {
border-top: 1px solid var(--border);
padding: 20px 0;
position: relative;
z-index: 1;
}
.footer-inner {
max-width: 860px;
margin: 0 auto;
padding: 0 24px;
display: flex;
align-items: center;
gap: 10px;
font-size: 11px;
color: var(--text-muted);
}
.footer-sep { color: var(--border-hover); }
.footer-link {
color: var(--text-muted);
text-decoration: none;
transition: color var(--transition);
}
.footer-link:hover { color: var(--accent); }
/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
#errorPanel[hidden],
#resultsPanel[hidden],
#loadingPanel[hidden],
#emptyPlaceholder[hidden],
#analysisMetaRow[hidden],
#keywordsSection[hidden] {
display: none !important;
}
/* ── Placeholder Card (Empty State) ── */
.placeholder-card {
background: var(--bg-surface);
border: 1px dashed var(--border);
border-radius: var(--radius-lg);
padding: 40px 24px;
text-align: center;
margin-top: 16px;
animation: fade-up 0.3s ease-out both;
}
.placeholder-icon {
font-size: 32px;
margin-bottom: 12px;
opacity: 0.8;
}
.placeholder-title {
font-family: var(--font-display);
font-size: 20px;
font-weight: 700;
margin-bottom: 8px;
color: var(--text-primary);
}
.placeholder-text {
font-size: 13px;
color: var(--text-secondary);
line-height: 1.6;
}
/* ── Loading Steps Checklist ── */
.loading-steps {
margin-top: 16px;
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
max-width: 280px;
text-align: left;
}
.loading-step {
font-size: 12px;
color: var(--accent);
display: flex;
align-items: center;
gap: 8px;
transition: color var(--transition);
}
.loading-step.pending {
color: var(--text-muted);
}
.step-icon {
display: inline-block;
min-width: 16px;
}
/* ── Analysis Timer Badge ── */
.analysis-meta-row {
margin-top: 16px;
display: flex;
justify-content: flex-end;
}
.time-badge {
font-size: 11px;
background: var(--bg-surface);
border: 1px solid var(--border);
color: var(--text-secondary);
padding: 4px 10px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
gap: 6px;
}
/* ── Sentiment Layout Grid ── */
.sentiment-layout-grid {
display: grid;
grid-template-columns: 1fr 120px;
gap: 16px;
align-items: center;
}
@media (max-width: 500px) {
.sentiment-layout-grid {
grid-template-columns: 1fr;
}
}
/* ── Confidence Indicator Card ── */
.confidence-indicator-card {
background: var(--bg-raised);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 12px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 4px;
}
.indicator-label {
font-size: 9px;
text-transform: uppercase;
color: var(--text-muted);
letter-spacing: 0.05em;
}
.indicator-value {
font-size: 16px;
font-weight: 700;
color: var(--text-primary);
}
.indicator-badge {
font-size: 9px;
font-weight: 600;
padding: 2px 6px;
border-radius: 3px;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.indicator-badge.very-high {
background: rgba(0, 200, 83, 0.15);
color: var(--positive);
}
.indicator-badge.high {
background: rgba(0, 200, 83, 0.08);
color: var(--positive);
opacity: 0.95;
}
.indicator-badge.moderate {
background: rgba(255, 214, 0, 0.15);
color: var(--neutral);
}
.indicator-badge.low {
background: rgba(255, 23, 68, 0.15);
color: var(--negative);
}
/* ── Highlight Keywords Section ── */
.keywords-section {
border-top: 1px solid var(--border);
padding-top: 14px;
}
.keywords-heading {
font-size: 10px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 8px;
}
.keywords-grid {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.keyword-badge {
font-size: 10px;
font-weight: 500;
padding: 3px 8px;
border-radius: 4px;
letter-spacing: 0.02em;
}
.keyword-badge.positive {
background: rgba(0, 200, 83, 0.12);
color: var(--positive);
border: 1px solid rgba(0, 200, 83, 0.15);
}
.keyword-badge.negative {
background: rgba(255, 23, 68, 0.12);
color: var(--negative);
border: 1px solid rgba(255, 23, 68, 0.15);
}
.keyword-badge.neutral {
background: rgba(255, 214, 0, 0.12);
color: var(--neutral);
border: 1px solid rgba(255, 214, 0, 0.15);
}
/* ── Model Info Section ── */
.model-info-section {
margin-top: 48px;
}
.model-info-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 18px 20px;
}
.info-title {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-secondary);
margin-bottom: 12px;
}
.info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
gap: 12px;
}
.info-item {
display: flex;
flex-direction: column;
gap: 2px;
font-size: 11px;
}
.info-item strong {
color: var(--text-muted);
font-weight: 500;
text-transform: uppercase;
font-size: 9px;
letter-spacing: 0.05em;
}
.info-item span {
color: var(--text-secondary);
}
/* ── Improved Summary Card Style (Item 18) ── */
#summaryCard {
border: 1px solid rgba(0, 200, 83, 0.15);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(24, 24, 24, 0.95) 100%);
padding: 24px;
}
#summaryCard .summary-text {
font-size: 14px;
line-height: 1.8;
color: #ffffff;
font-family: system-ui, -apple-system, sans-serif;
letter-spacing: 0.01em;
padding: 6px 0;
word-wrap: break-word;
}