File size: 7,539 Bytes
53ba2ed
 
 
1ed82ad
 
b94a1a8
 
 
 
1ed82ad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53ba2ed
1ed82ad
 
 
 
53ba2ed
 
1ed82ad
53ba2ed
 
 
 
 
 
 
 
 
1ed82ad
53ba2ed
 
 
1ed82ad
53ba2ed
1ed82ad
 
53ba2ed
1ed82ad
53ba2ed
1ed82ad
53ba2ed
 
 
 
 
 
1ed82ad
 
 
d23fef9
1ed82ad
 
 
 
53ba2ed
1ed82ad
 
53ba2ed
 
1ed82ad
 
 
 
 
53ba2ed
1ed82ad
53ba2ed
 
1ed82ad
 
53ba2ed
1ed82ad
 
 
 
 
 
53ba2ed
1ed82ad
 
 
53ba2ed
1ed82ad
 
 
53ba2ed
1ed82ad
 
 
 
53ba2ed
1ed82ad
 
 
 
 
 
53ba2ed
 
 
 
1ed82ad
 
53ba2ed
1ed82ad
 
53ba2ed
1ed82ad
53ba2ed
1ed82ad
53ba2ed
 
1ed82ad
53ba2ed
 
1ed82ad
 
 
 
53ba2ed
1ed82ad
53ba2ed
 
 
1ed82ad
53ba2ed
 
1ed82ad
53ba2ed
1ed82ad
53ba2ed
1ed82ad
53ba2ed
 
1ed82ad
53ba2ed
1ed82ad
 
 
 
 
 
 
 
 
 
 
53ba2ed
 
1ed82ad
 
 
 
 
 
 
53ba2ed
1ed82ad
 
 
 
53ba2ed
6cbbabf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
@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;
}