@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap'); :root { /* Slate-Modern Palette */ --bg-base: #f8fafc; /* Slate 50 */ --bg-surface: #ffffff; --bg-elevated: #ffffff; --bg-card: #ffffff; --border-subtle: #e2e8f0; /* Slate 200 */ --border-default: #cbd5e1; /* Slate 300 */ --border-accent: rgba(14, 165, 233, 0.2); --red-critical: #be123c; /* Rose 700 */ --red-bg: #fff1f2; /* Rose 50 */ --red-glow: rgba(190, 18, 60, 0.15); --amber-warning: #b45309; /* Amber 700 */ --amber-bg: #fffbeb; /* Amber 50 */ --amber-glow: rgba(180, 83, 9, 0.15); --green-safe: #047857; /* Emerald 700 */ --green-bg: #ecfdf5; /* Emerald 50 */ --green-glow: rgba(4, 120, 87, 0.15); --blue-accent: #0369a1; /* Sky 700 */ --blue-bg: #f0f9ff; /* Sky 50 */ --blue-glow: rgba(3, 105, 161, 0.15); --purple-ai: #6d28d9; /* Violet 700 */ --purple-bg: #f5f3ff; /* Violet 50 */ --text-primary: #0f172a; /* Slate 900 */ --text-secondary: #475569; /* Slate 600 */ --text-tertiary: #94a3b8; /* Slate 400 */ --font-sans: 'Inter', system-ui, -apple-system, sans-serif; --font-mono: 'JetBrains Mono', monospace; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); } /* ── Global Styles ── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body, #root { height: 100%; background: var(--bg-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; -webkit-font-smoothing: antialiased; overflow: hidden; /* Main container manages scroll */ } /* ── Scrollbar ── */ ::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); } /* ── Keyframes ── */ @keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes pulse-critical { 0%, 100% { border-color: var(--red-critical); box-shadow: 0 0 0 0 var(--red-glow); } 50% { border-color: #fb7185; box-shadow: 0 0 0 6px var(--red-glow); } } @keyframes directive-glow { 0% { border-color: var(--blue-accent); box-shadow: 0 0 0 0 var(--blue-glow); } 50% { border-color: #fff; box-shadow: 0 10px 25px -5px var(--blue-glow); } 100% { border-color: var(--blue-accent); box-shadow: 0 0 0 0 var(--blue-glow); } } @keyframes spin { to { transform: rotate(360deg); } } /* ── Utility Classes ── */ .fade-up { animation: fade-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; } .fade-in { animation: fade-in 0.3s ease both; } /* ── Components ── */ .card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, border-color 0.2s ease; } .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; } .badge-critical { background: var(--red-bg); color: var(--red-critical); border: 1px solid var(--red-glow); } .badge-moderate { background: var(--amber-bg); color: var(--amber-warning); border: 1px solid var(--amber-glow); } .badge-stable { background: var(--green-bg); color: var(--green-safe); border: 1px solid var(--green-glow); } .verdict-safe { background: var(--green-bg); color: var(--green-safe); border: 1px solid var(--green-glow); } .verdict-caution { background: var(--amber-bg); color: var(--amber-warning); border: 1px solid var(--amber-glow); } .verdict-contraindicated { background: var(--red-bg); color: var(--red-critical); border: 1px solid var(--red-glow); } /* ── Pulse States ── */ .pulse-critical { animation: pulse-critical 2s infinite; } .directive-banner { background: linear-gradient(135deg, var(--blue-accent), #0c4a6e); color: #fff; border: 2px solid var(--blue-accent); animation: directive-glow 4s infinite; } /* ── Buttons ── */ .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--blue-accent); cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 13px; background: var(--blue-accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.1); transition: all 0.2s ease; } .btn-primary:hover:not(:disabled) { background: #0c4a6e; transform: translateY(-1px); box-shadow: var(--shadow-md); } .btn-primary:active { transform: translateY(0); } .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; } .btn-danger { background: var(--red-critical); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px; border: none; cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px var(--red-glow); transition: all 0.2s ease; } .btn-danger:hover:not(:disabled) { background: #9f1239; transform: scale(1.02); box-shadow: 0 8px 24px var(--red-glow); } .btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-subtle); background: transparent; color: var(--text-secondary); cursor: pointer; font-family: var(--font-sans); font-size: 12px; font-weight: 500; transition: all 0.2s ease; } .btn-ghost:hover { border-color: var(--blue-accent); color: var(--blue-accent); background: var(--blue-bg); } /* ── Forms ── */ .input-dark { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 8px; color: var(--text-primary); padding: 10px 14px; font-family: var(--font-sans); font-size: 13px; width: 100%; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; } .input-dark:focus { border-color: var(--blue-accent); box-shadow: 0 0 0 4px var(--blue-glow); } /* ── Loading Spinner ── */ .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; } /* ── Layout Grid ── */ .app-container { display: grid; grid-template-columns: 320px 1fr 400px; height: 100vh; background: var(--bg-base); } @media (max-width: 1200px) { .app-container { grid-template-columns: 280px 1fr 350px; } } /* ── Welcome Screen ── */ .welcome-screen { min-height: 100vh; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; background: radial-gradient(circle at 50% 0%, var(--blue-bg) 0%, transparent 60%), var(--bg-base); overflow-y: auto; } @keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.15); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } 70% { transform: scale(1); } } @keyframes ekg { 0% { stroke-dashoffset: 400; } 100% { stroke-dashoffset: 0; } } .welcome-screen h1, .welcome-screen p { text-align: center; }