denialdefender / app /globals.css
Jorgexe
Deploy Next.js frontend with LFS assets
735a618
Raw
History Blame Contribute Delete
12.6 kB
@import "tailwindcss";
/* ═══════════════════════════════════════════════
DenialDefender — "Executive Light" Design System
═══════════════════════════════════════════════ */
:root {
/* Backgrounds */
--bg-primary: #f7f4ef;
--bg-surface: #ffffff;
--bg-surface-hover: #f5f1ea;
--bg-input: #f2ede6;
/* Borders */
--border-default: #e2dbd1;
--border-focus: #0e7490;
/* Accents */
--accent-primary: #0e7490;
--accent-primary-hover: #0f8aa6;
--accent-glow: rgba(14, 116, 144, 0.12);
--accent-success: #0f766e;
--accent-warning: #b45309;
--accent-danger: #b91c1c;
/* Text */
--text-primary: #0b0f1a;
--text-secondary: #475569;
--text-muted: #64748b;
/* Shadows */
--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 219, 209, 0.6);
--shadow-elevated: 0 16px 40px rgba(15, 23, 42, 0.12);
--shadow-glow: 0 0 20px rgba(14, 116, 144, 0.18);
}
@theme inline {
--color-background: var(--bg-primary);
--color-foreground: var(--text-primary);
--font-sans: var(--font-body);
--font-mono: var(--font-code);
}
* { box-sizing: border-box; }
html, body {
height: 100%;
background: radial-gradient(1200px 600px at 20% -10%, rgba(14, 116, 144, 0.08), transparent 55%),
radial-gradient(1000px 500px at 90% -20%, rgba(14, 116, 144, 0.06), transparent 55%),
linear-gradient(180deg, #f8f6f2 0%, #f3efe8 55%, #f7f4ef 100%);
color: var(--text-primary);
font-family: var(--font-body), ui-sans-serif, system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d7cec2; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #cbbfb1; }
/* ── Animations ────────────────────────────────── */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes pulseGlow {
0%, 100% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.32); }
50% { box-shadow: 0 0 0 8px rgba(14, 116, 144, 0); }
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
@keyframes pulseDot {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
@keyframes progressIndeterminate {
0% { transform: translateX(-100%); }
100% { transform: translateX(200%); }
}
@keyframes slideDown {
from { opacity: 0; transform: translateY(-12px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
animation: fadeInUp 0.4s ease-out forwards;
}
.animate-fade-in {
animation: fadeIn 0.3s ease-out forwards;
}
.animate-slide-down {
animation: slideDown 0.4s ease-out forwards;
}
.animate-pulse-glow {
animation: pulseGlow 2s ease-in-out infinite;
}
.animate-pulse-dot {
animation: pulseDot 1.5s ease-in-out infinite;
}
/* Staggered entrance for children */
.stagger-children > * {
opacity: 0;
animation: fadeInUp 0.4s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 50ms; }
.stagger-children > *:nth-child(3) { animation-delay: 100ms; }
.stagger-children > *:nth-child(4) { animation-delay: 150ms; }
.stagger-children > *:nth-child(5) { animation-delay: 200ms; }
.stagger-children > *:nth-child(6) { animation-delay: 250ms; }
/* ── Components ────────────────────────────────── */
/* Surface card */
.surface-card {
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: 16px;
box-shadow: var(--shadow-card);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.surface-card:hover {
border-color: #d3c8bc;
}
/* Stat card */
.stat-card {
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: 12px;
padding: 20px 16px;
text-align: center;
box-shadow: var(--shadow-card);
position: relative;
overflow: hidden;
}
.stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
}
.stat-card.stat-danger::before { background: var(--accent-danger); }
.stat-card.stat-warning::before { background: var(--accent-warning); }
.stat-card.stat-success::before { background: var(--accent-success); }
.stat-number {
font-family: var(--font-code);
font-size: 32px;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1;
}
.stat-label {
font-size: 12px;
color: var(--text-secondary);
margin-top: 6px;
}
/* Case card */
.case-card {
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: 12px;
padding: 16px;
cursor: pointer;
transition: all 0.2s ease;
}
.case-card:hover {
border-color: var(--accent-primary);
background: var(--bg-surface-hover);
transform: translateY(-1px);
box-shadow: var(--shadow-elevated);
}
.case-card.active {
border-color: var(--accent-primary);
box-shadow: 0 0 0 1px var(--accent-primary), var(--shadow-glow);
}
/* Drop zone */
.drop-zone {
border: 2px dashed var(--border-default);
border-radius: 16px;
transition: all 0.2s ease;
background: transparent;
}
.drop-zone:hover,
.drop-zone.drag-over {
border-color: var(--accent-primary);
background: var(--accent-glow);
}
/* Primary action button */
.btn-primary {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 48px;
background: var(--accent-primary);
color: white;
font-weight: 600;
font-size: 14px;
letter-spacing: 0.01em;
border: none;
border-radius: 999px;
cursor: pointer;
box-shadow: var(--shadow-glow);
transition: all 0.15s ease;
}
.btn-primary:hover:not(:disabled) {
background: var(--accent-primary-hover);
transform: translateY(-1px);
box-shadow: 0 0 28px rgba(14, 116, 144, 0.25);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
box-shadow: none;
}
.btn-secondary {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 44px;
background: transparent;
color: var(--text-secondary);
font-weight: 500;
font-size: 14px;
border: 1px solid var(--border-default);
border-radius: 999px;
cursor: pointer;
transition: all 0.15s ease;
}
.btn-secondary:hover {
border-color: var(--accent-primary);
color: var(--text-primary);
background: var(--accent-glow);
}
.btn-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 36px;
padding: 0 14px;
border-radius: 999px;
border: 1px solid transparent;
color: var(--text-secondary);
background: rgba(255, 255, 255, 0.6);
font-size: 13px;
font-weight: 600;
transition: all 0.15s ease;
}
.btn-ghost:hover {
border-color: var(--border-default);
color: var(--text-primary);
box-shadow: var(--shadow-card);
}
/* Pipeline step */
.pipeline-step {
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: 12px;
padding: 12px 16px;
border-left: 3px solid var(--border-default);
transition: all 0.3s ease;
}
.pipeline-step.completed {
border-left-color: var(--accent-success);
}
.pipeline-step.active {
border-left-color: var(--accent-warning);
animation: pulseGlow 2s ease-in-out infinite;
}
.pipeline-step.pending {
opacity: 0.5;
}
/* VRAM bar */
.vram-bar-outer {
width: 100%;
height: 28px;
background: var(--bg-input);
border-radius: 8px;
overflow: hidden;
position: relative;
}
.vram-bar-inner {
height: 100%;
width: 67%;
background: linear-gradient(90deg, var(--accent-primary), var(--accent-success));
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 600;
color: white;
font-family: var(--font-code);
}
/* Progress bar */
.progress-bar-outer {
width: 100%;
height: 6px;
background: var(--bg-input);
border-radius: 3px;
overflow: hidden;
}
.progress-bar-indeterminate {
width: 40%;
height: 100%;
background: linear-gradient(90deg, var(--accent-primary), var(--accent-success));
border-radius: 3px;
animation: progressIndeterminate 1.5s ease-in-out infinite;
}
/* Markdown viewer */
.appeal-markdown {
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.7;
color: var(--text-primary);
}
.appeal-markdown h1 { font-size: 20px; font-weight: 700; margin: 16px 0 8px; }
.appeal-markdown h2 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.appeal-markdown h3 { font-size: 15px; font-weight: 600; margin: 12px 0 4px; }
.appeal-markdown p { margin: 8px 0; }
.appeal-markdown ul, .appeal-markdown ol { margin: 8px 0; padding-left: 24px; }
.appeal-markdown li { margin: 4px 0; }
.appeal-markdown blockquote {
border-left: 3px solid var(--accent-primary);
padding-left: 16px;
margin: 12px 0;
color: var(--text-secondary);
}
.appeal-markdown strong { font-weight: 600; }
.appeal-markdown code {
font-family: var(--font-code);
font-size: 12px;
background: var(--bg-input);
padding: 2px 6px;
border-radius: 4px;
}
.appeal-markdown pre {
background: var(--bg-input);
border: 1px solid var(--border-default);
border-radius: 8px;
padding: 16px;
overflow-x: auto;
font-family: var(--font-code);
font-size: 12px;
}
/* Toast */
.toast {
position: fixed;
bottom: 24px;
right: 24px;
background: var(--bg-surface);
border: 1px solid var(--accent-success);
color: var(--accent-success);
padding: 12px 20px;
border-radius: 10px;
font-size: 13px;
font-weight: 500;
box-shadow: var(--shadow-elevated);
z-index: 100;
animation: fadeInUp 0.3s ease-out forwards;
}
/* Nav bar */
.nav-bar {
position: sticky;
top: 0;
z-index: 50;
height: 80px;
background: #0f4c81;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32px;
}
.nav-bar .subtle-link {
color: rgba(255, 255, 255, 0.92);
font-weight: 600;
font-size: 15px;
}
.nav-bar .subtle-link:hover {
color: #ffffff;
}
/* Input fields */
.dark-textarea {
width: 100%;
background: var(--bg-input);
border: 1px solid var(--border-default);
border-radius: 12px;
padding: 12px 16px;
color: var(--text-primary);
font-size: 14px;
font-family: var(--font-sans);
resize: none;
transition: border-color 0.2s ease;
outline: none;
}
.dark-textarea:focus {
border-color: var(--accent-primary);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.dark-textarea::placeholder {
color: var(--text-muted);
}
/* Section heading */
.section-label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
margin-bottom: 12px;
}
/* Key-value row in architecture card */
.kv-row {
display: flex;
justify-content: space-between;
padding: 6px 0;
border-bottom: 1px solid rgba(30, 58, 95, 0.3);
font-size: 13px;
}
.kv-row:last-child { border-bottom: none; }
.kv-label { color: var(--text-secondary); }
.kv-value { color: var(--text-primary); font-family: var(--font-code); font-weight: 500; font-size: 12px; }
/* Links */
a.subtle-link {
color: var(--text-secondary);
text-decoration: none;
transition: color 0.15s ease;
}
a.subtle-link:hover {
color: var(--text-primary);
text-decoration: underline;
}
.font-display {
font-family: var(--font-display), ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.text-accent {
color: var(--accent-primary);
}
.pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
border-radius: 999px;
border: 1px solid var(--border-default);
background: rgba(255, 255, 255, 0.7);
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-secondary);
}
.status-pill {
text-transform: none;
letter-spacing: 0.02em;
font-weight: 600;
}
.section-soft {
background: rgba(255, 255, 255, 0.7);
border-top: 1px solid var(--border-default);
}