/* ═══════════════════════════════════════════════════════════════════════════ BLUE-FIN — Global Design System (Vanilla CSS) Dark editorial theme · Playfair Display + Inter · Glassmorphism ═══════════════════════════════════════════════════════════════════════════ */ @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap"); /* ─── CSS Variables ─────────────────────────────────────────────────────── */ :root { /* Typography */ --font-heading: "Playfair Display", Georgia, "Times New Roman", serif; --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --font-mono: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace; /* Spacing */ --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; /* Radius */ --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 20px; --radius-full: 9999px; /* Transitions */ --transition-fast: 150ms ease; --transition-base: 200ms ease; --transition-slow: 300ms ease; --grid-size: 40px; } /* Base colors: Dark Theme (Default) */ :root, [data-theme="dark"] { --bg-primary: #1a1a1f; --bg-secondary: #212126; --bg-surface: #242429; --bg-surface-hover: #2a2a30; --bg-elevated: #2e2e35; --text-primary: #f5f5f5; --text-secondary: #b8b8bf; --text-muted: #7a7a85; --text-inverse: #1a1a1f; --accent: #3b82f6; --accent-hover: #2563eb; --accent-subtle: rgba(59, 130, 246, 0.12); --accent-glow: rgba(59, 130, 246, 0.25); --success: #22c55e; --success-subtle: rgba(34, 197, 94, 0.12); --warning: #eab308; --warning-subtle: rgba(234, 179, 8, 0.12); --danger: #ef4444; --danger-subtle: rgba(239, 68, 68, 0.12); --border: rgba(255, 255, 255, 0.08); --border-hover: rgba(255, 255, 255, 0.15); --border-strong: rgba(255, 255, 255, 0.2); --glass-bg: rgba(36, 36, 41, 0.75); --glass-border: rgba(255, 255, 255, 0.1); --glass-blur: 16px; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35); --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4); --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15); --grid-color: rgba(255, 255, 255, 0.03); } /* Light Theme Overrides */ [data-theme="light"] { --bg-primary: #f8fafc; --bg-secondary: #f1f5f9; --bg-surface: #ffffff; --bg-surface-hover: #f1f5f9; --bg-elevated: #ffffff; --text-primary: #0f172a; --text-secondary: #475569; --text-muted: #64748b; --text-inverse: #ffffff; --accent: #2563eb; --accent-hover: #1d4ed8; --accent-subtle: rgba(37, 99, 235, 0.1); --accent-glow: rgba(37, 99, 235, 0.2); --success: #16a34a; --success-subtle: rgba(22, 163, 74, 0.1); --warning: #d97706; --warning-subtle: rgba(217, 119, 6, 0.1); --danger: #dc2626; --danger-subtle: rgba(220, 38, 38, 0.1); --border: #e2e8f0; --border-hover: #cbd5e1; --border-strong: #94a3b8; --glass-bg: rgba(255, 255, 255, 0.85); --glass-border: rgba(0, 0, 0, 0.05); --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.15); --grid-color: rgba(0, 0, 0, 0.04); } /* ─── Reset & Base ──────────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-primary); min-height: 100vh; } /* Grid background pattern */ .grid-bg { background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); } /* ─── Typography ────────────────────────────────────────────────────────── */ h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--text-primary); } h1 { font-size: clamp(2rem, 5vw, 3.5rem); } h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); } h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); } .serif { font-family: var(--font-heading); } .serif-italic { font-family: var(--font-heading); font-style: italic; } .mono { font-family: var(--font-mono); } .text-primary { color: var(--text-primary); } .text-secondary { color: var(--text-secondary); } .text-muted { color: var(--text-muted); } .text-accent { color: var(--accent); } .text-success { color: var(--success); } .text-warning { color: var(--warning); } .text-danger { color: var(--danger); } .label { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); } .eyebrow { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; } .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s ease-in-out infinite; } @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } /* ─── Links ─────────────────────────────────────────────────────────────── */ a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); } a:hover { color: var(--accent-hover); } /* ─── Buttons ───────────────────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-family: var(--font-body); font-size: 14px; font-weight: 600; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; transition: all var(--transition-base); text-decoration: none; white-space: nowrap; } .btn:active { transform: scale(0.97); } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-glow); } .btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 0 48px rgba(59, 130, 246, 0.25); } .btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-hover); } .btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); } .btn-ghost { background: transparent; color: var(--text-secondary); border: none; padding: 8px 16px; } .btn-ghost:hover:not(:disabled) { color: var(--text-primary); background: var(--bg-surface); } .btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); } .btn-danger:hover:not(:disabled) { background: #dc2626; } .btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); } .btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); } .btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); } /* ─── Cards ─────────────────────────────────────────────────────────────── */ .card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); transition: all var(--transition-base); } .card:hover { border-color: var(--border-hover); } .card-interactive:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); } .card-elevated { background: var(--bg-elevated); box-shadow: var(--shadow-md); } /* ─── Glass / Glassmorphism ─────────────────────────────────────────────── */ .glass { background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border); } /* ─── Inputs ────────────────────────────────────────────────────────────── */ .input { width: 100%; padding: 12px 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-body); font-size: 14px; transition: all var(--transition-fast); outline: none; } .input::placeholder { color: var(--text-muted); } .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); } .textarea { resize: vertical; min-height: 120px; line-height: 1.6; } /* ─── Badges / Pills ───────────────────────────────────────────────────── */ .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 11px; font-weight: 600; font-family: var(--font-body); border-radius: var(--radius-full); border: 1px solid transparent; letter-spacing: 0.02em; } .badge-accent { background: var(--accent-subtle); color: var(--accent); border-color: rgba(59, 130, 246, 0.25); } .badge-success { background: var(--success-subtle); color: var(--success); border-color: rgba(34, 197, 94, 0.25); } .badge-warning { background: var(--warning-subtle); color: var(--warning); border-color: rgba(234, 179, 8, 0.25); } .badge-danger { background: var(--danger-subtle); color: var(--danger); border-color: rgba(239, 68, 68, 0.25); } .badge-neutral { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border-color: var(--border); } /* ─── Progress Bar ──────────────────────────────────────────────────────── */ .progress-track { width: 100%; height: 4px; background: var(--bg-elevated); border-radius: var(--radius-full); overflow: hidden; } .progress-fill { height: 100%; background: var(--accent); border-radius: var(--radius-full); transition: width 0.5s ease; } /* ─── Tables ────────────────────────────────────────────────────────────── */ .table-container { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 14px; } th { text-align: left; padding: 10px 16px; color: var(--text-muted); font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--border-hover); } td { padding: 10px 16px; color: var(--text-secondary); border-bottom: 1px solid var(--border); } tr:hover td { background: rgba(255, 255, 255, 0.02); } /* ─── Scrollbar ─────────────────────────────────────────────────────────── */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-full); } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); } /* ─── Layout Utilities ──────────────────────────────────────────────────── */ .page { min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); } .container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--space-lg); } .flex { display: flex; } .flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .items-start { align-items: flex-start; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .gap-xs { gap: var(--space-xs); } .gap-sm { gap: var(--space-sm); } .gap-md { gap: var(--space-md); } .gap-lg { gap: var(--space-lg); } .gap-xl { gap: var(--space-xl); } .flex-1 { flex: 1; } .shrink-0 { flex-shrink: 0; } .grid { display: grid; } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } @media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } } @media (min-width: 769px) and (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } } .w-full { width: 100%; } .text-center { text-align: center; } .text-right { text-align: right; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .whitespace-pre-wrap { white-space: pre-wrap; } .relative { position: relative; } .absolute { position: absolute; } .sticky { position: sticky; } .hidden { display: none; } .overflow-hidden { overflow: hidden; } .overflow-auto { overflow: auto; } .pointer-events-none { pointer-events: none; } .select-none { user-select: none; } .cursor-pointer { cursor: pointer; } .line-through { text-decoration: line-through; } /* ─── Animations ────────────────────────────────────────────────────────── */ .page-enter { animation: fadeIn 0.3s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } .toast-enter { animation: slideInRight 0.25s ease-out; } @keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } } @keyframes spin { to { transform: rotate(360deg); } } .animate-spin { animation: spin 1s linear infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .animate-pulse { animation: pulse 2s ease-in-out infinite; } /* Marquee */ .marquee-outer { overflow: hidden; } .marquee-inner { display: flex; width: max-content; animation: marqueeScroll 32s linear infinite; } @keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } } /* Carousel progress */ @keyframes carouselProgress { from { width: 0%; } to { width: 100%; } } /* Float animation */ @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } } .animate-float { animation: float 3s ease-in-out infinite; } /* ─── Navbar ────────────────────────────────────────────────────────────── */ .navbar { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 1200px; z-index: 100; background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: 0 var(--space-lg); height: 56px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); } .navbar-brand { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.01em; } .navbar-links { display: flex; align-items: center; gap: var(--space-xs); } .navbar-link { padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--transition-fast); text-decoration: none; } .navbar-link:hover, .navbar-link.active { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); } .navbar-link.active { background: rgba(59, 130, 246, 0.12); color: var(--accent); } /* Body padding when navbar is floating */ .has-navbar { padding-top: 88px; } /* ─── Section Dividers ──────────────────────────────────────────────────── */ .divider { height: 1px; background: var(--border); border: none; } .divider-accent { height: 2px; background: linear-gradient(90deg, var(--accent), transparent); border: none; } /* ─── Drop Zone ─────────────────────────────────────────────────────────── */ .dropzone { border: 2px dashed var(--border-hover); border-radius: var(--radius-lg); padding: var(--space-lg); cursor: pointer; transition: all var(--transition-base); text-align: center; } .dropzone:hover { border-color: var(--accent); background: var(--accent-subtle); } .dropzone.dragging { border-color: var(--accent); background: var(--accent-subtle); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); } .dropzone.uploaded { border-color: var(--success); background: var(--success-subtle); } /* ─── Stat Cards ────────────────────────────────────────────────────────── */ .stat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); text-align: center; } .stat-value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; } .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; } /* ─── Tab Bar ───────────────────────────────────────────────────────────── */ .tab-bar { display: flex; gap: 2px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px; overflow-x: auto; } .tab-item { padding: 8px 18px; font-size: 13px; font-weight: 500; color: var(--text-muted); border-radius: var(--radius-sm); border: none; background: none; cursor: pointer; white-space: nowrap; transition: all var(--transition-fast); font-family: var(--font-body); } .tab-item:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); } .tab-item.active { background: var(--accent); color: #fff; font-weight: 600; } /* ─── Visible only on specific screen widths ────────────────────────────── */ @media (max-width: 768px) { .hide-mobile { display: none !important; } } @media (min-width: 769px) { .show-mobile-only { display: none !important; } } /* ─── Chart & Score Enhancements ────────────────────────────────────────── */ /* Score tab entrance */ .score-tab-enter > * { animation: chartSlideUp 0.5s ease-out both; } .score-tab-enter > *:nth-child(1) { animation-delay: 0s; } .score-tab-enter > *:nth-child(2) { animation-delay: 0.1s; } .score-tab-enter > *:nth-child(3) { animation-delay: 0.2s; } .score-tab-enter > *:nth-child(4) { animation-delay: 0.3s; } @keyframes chartSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Interactive score cards */ .score-card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: default; } .score-card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); } /* Shimmer effect on cards */ .card-shimmer { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100% ); transition: left 0.6s ease; pointer-events: none; } .score-card-hover:hover .card-shimmer { left: 100%; } /* Stress flipped card animated background */ .stress-flipped-bg { position: absolute; inset: 0; background: linear-gradient( 135deg, rgba(239, 68, 68, 0.08) 0%, transparent 60% ); animation: stressFlash 3s ease-in-out infinite; pointer-events: none; } @keyframes stressFlash { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } } /* Stress bar fill animation */ .stress-bar-fill { animation: stressBarGrow 1s ease-out both; animation-delay: 0.5s; transform-origin: left; } @keyframes stressBarGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } } /* Recharts hover enhancements */ .recharts-bar-rectangle { transition: filter 0.25s ease, opacity 0.25s ease; } .recharts-radar-polygon { transition: fill-opacity 0.3s ease; } /* Recharts tooltip animation */ .recharts-tooltip-wrapper { transition: transform 0.15s ease, opacity 0.15s ease !important; } /* Recharts active dot pulse */ .recharts-dot.recharts-active-dot circle { filter: drop-shadow(0 0 6px currentColor); } /* Force graph container glow */ .force-graph-glow { box-shadow: inset 0 0 60px rgba(59, 130, 246, 0.04); } /* Radar chart label animation */ @keyframes radarFadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } .recharts-polar-angle-axis-tick text { animation: radarFadeIn 0.5s ease-out both; } /* Responsive: stack radar + bar on small screens */ @media (max-width: 768px) { .score-tab-enter [style*="grid-template-columns: 280px"] { grid-template-columns: 1fr !important; } }