-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.css
More file actions
460 lines (385 loc) · 10.4 KB
/
global.css
File metadata and controls
460 lines (385 loc) · 10.4 KB
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
/**
* Tailwind CSS theme
* tailwind.config.ts expects the following color variables to be expressed as HSL values.
* A different format will require also updating the theme in tailwind.config.ts.
*/
:root {
--background: 150 50% 97%;
--foreground: 150 15% 15%;
--card: 150 40% 98%;
--card-foreground: 150 15% 15%;
--popover: 150 40% 98%;
--popover-foreground: 150 15% 15%;
--primary: 150 60% 45%;
--primary-foreground: 150 20% 98%;
--secondary: 150 30% 92%;
--secondary-foreground: 150 20% 20%;
--muted: 150 20% 90%;
--muted-foreground: 150 10% 55%;
--accent: 120 50% 85%;
--accent-foreground: 150 20% 20%;
--destructive: 25 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 150 20% 85%;
--input: 150 20% 92%;
--ring: 150 60% 45%;
--health-green: 120 60% 50%;
--health-blue: 200 80% 60%;
--character-primary: 280 60% 65%;
--character-secondary: 320 50% 75%;
--wellness-amber: 45 90% 60%;
--radius: 0.75rem;
--sidebar-background: 0 0% 98%;
--sidebar-foreground: 240 5.3% 26.1%;
--sidebar-primary: 240 5.9% 10%;
--sidebar-primary-foreground: 0 0% 98%;
--sidebar-accent: 240 4.8% 95.9%;
--sidebar-accent-foreground: 240 5.9% 10%;
--sidebar-border: 220 13% 91%;
--sidebar-ring: 217.2 91.2% 59.8%;
}
.dark {
--background: 150 30% 8%;
--foreground: 150 20% 90%;
--card: 150 25% 10%;
--card-foreground: 150 20% 90%;
--popover: 150 25% 10%;
--popover-foreground: 150 20% 90%;
--primary: 150 60% 60%;
--primary-foreground: 150 30% 8%;
--secondary: 150 20% 18%;
--secondary-foreground: 150 20% 90%;
--muted: 150 15% 15%;
--muted-foreground: 150 10% 65%;
--accent: 120 40% 25%;
--accent-foreground: 150 20% 90%;
--destructive: 25 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;
--border: 150 15% 20%;
--input: 150 15% 18%;
--ring: 150 60% 60%;
--health-green: 120 50% 60%;
--health-blue: 200 70% 70%;
--character-primary: 280 60% 75%;
--character-secondary: 320 50% 85%;
--wellness-amber: 45 80% 70%;
--sidebar-background: 240 5.9% 10%;
--sidebar-foreground: 240 4.8% 95.9%;
--sidebar-primary: 224.3 76.3% 48%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 240 3.7% 15.9%;
--sidebar-accent-foreground: 240 4.8% 95.9%;
--sidebar-border: 240 3.7% 15.9%;
--sidebar-ring: 217.2 91.2% 59.8%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
font-size: 16px;
line-height: 1.6;
position: relative;
/* Enable smooth scrolling */
scroll-behavior: smooth;
/* Optimize for touch devices */
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Blurred background image */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('/images/main.webp');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
filter: blur(8px);
z-index: -1;
/* Slightly scale up to hide blur edges */
transform: scale(1.1);
}
/* Optional: Add a subtle overlay for better text readability */
body::after {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
z-index: -1;
}
/* Allow text selection for inputs and content areas */
input, textarea, [contenteditable="true"], .selectable {
-webkit-user-select: auto;
-khtml-user-select: auto;
-moz-user-select: auto;
-ms-user-select: auto;
user-select: auto;
}
/* Capacitor mobile app optimizations */
.mobile-app {
/* Hide scrollbars but allow scrolling */
scrollbar-width: none;
-ms-overflow-style: none;
}
.mobile-app::-webkit-scrollbar {
display: none;
}
/* Safe area handling for mobile devices */
.safe-area-top {
padding-top: env(safe-area-inset-top);
}
.safe-area-bottom {
padding-bottom: env(safe-area-inset-bottom);
}
.safe-area-left {
padding-left: env(safe-area-inset-left);
}
.safe-area-right {
padding-right: env(safe-area-inset-right);
}
.safe-area-all {
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
/* Enhanced backgrounds */
.health-bg {
background-image:
linear-gradient(135deg, rgba(120, 200, 150, 0.05) 0%, rgba(150, 180, 200, 0.05) 100%),
radial-gradient(circle at 30% 70%, rgba(200, 220, 170, 0.1) 0%, transparent 60%),
radial-gradient(circle at 70% 30%, rgba(170, 200, 220, 0.08) 0%, transparent 60%);
}
.character-bg {
background-image:
radial-gradient(ellipse at center, rgba(200, 150, 200, 0.1) 0%, transparent 70%),
linear-gradient(45deg, rgba(120, 200, 150, 0.05) 0%, rgba(150, 180, 200, 0.05) 100%);
}
/* Enhanced glass morphism effect */
.glass {
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
background: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(255, 255, 255, 0.125);
box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}
.dark .glass {
background: rgba(17, 25, 40, 0.85);
border: 1px solid rgba(255, 255, 255, 0.125);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
/* Floating action button */
.fab {
@apply fixed bottom-4 left-4 sm:bottom-6 sm:left-6 z-50 w-12 h-12 sm:w-14 sm:h-14 rounded-full shadow-lg;
@apply bg-gradient-to-r from-primary to-primary/80;
@apply flex items-center justify-center text-primary-foreground;
@apply transition-all duration-300 ease-in-out;
@apply hover:scale-110 active:scale-95;
}
/* Enhanced mobile touch targets */
.touch-target {
min-height: 48px;
min-width: 48px;
@apply flex items-center justify-center;
}
/* Smooth animations */
.smooth-transition {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Card hover effects */
.card-hover {
@apply transition-all duration-300 ease-in-out;
@apply hover:shadow-lg hover:scale-[1.02] hover:-translate-y-1;
}
/* Typography optimizations for mobile */
@media (max-width: 768px) {
body {
font-size: 14px;
line-height: 1.5;
}
h1 {
font-size: 1.75rem;
line-height: 1.3;
}
h2 {
font-size: 1.5rem;
line-height: 1.3;
}
h3 {
font-size: 1.25rem;
line-height: 1.4;
}
h4 {
font-size: 1.125rem;
line-height: 1.4;
}
/* Better spacing for mobile cards */
.card-hover {
@apply hover:scale-[1.01] hover:shadow-md;
}
/* Optimize tab content for mobile */
[data-state="active"] {
padding-bottom: env(safe-area-inset-bottom);
}
/* Enhanced touch targets */
button, [role="button"], .touch-target {
min-height: 48px;
min-width: 48px;
}
/* Tab improvements */
[role="tab"] {
min-height: 52px;
padding: 0.75rem 1rem;
}
/* Input improvements */
input, textarea, select {
font-size: 16px; /* Prevents iOS zoom */
min-height: 48px;
padding: 12px 16px;
border-radius: 8px;
}
/* Navigation improvements */
nav a, nav button {
min-height: 52px;
padding: 0.875rem;
}
/* Container padding */
.container {
padding-left: 1rem;
padding-right: 1rem;
}
/* Modal and dialog improvements */
.dialog-content {
margin: 1rem;
max-height: calc(100vh - 2rem);
overflow-y: auto;
}
}
/* Extra small devices */
@media (max-width: 320px) {
body {
font-size: 13px;
}
.container {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
h1 {
font-size: 1.5rem;
}
h2 {
font-size: 1.25rem;
}
}
/* Large screens */
@media (min-width: 1024px) {
body {
font-size: 16px;
line-height: 1.7;
}
}
/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
/* PWA status bar styling */
@media (display-mode: standalone) {
.pwa-header {
padding-top: env(safe-area-inset-top);
background: var(--background);
}
}
/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
.health-bg {
background-image:
linear-gradient(135deg, rgba(120, 200, 150, 0.03) 0%, rgba(150, 180, 200, 0.03) 100%),
radial-gradient(circle at 30% 70%, rgba(200, 220, 170, 0.05) 0%, transparent 60%),
radial-gradient(circle at 70% 30%, rgba(170, 200, 220, 0.04) 0%, transparent 60%);
}
.character-bg {
background-image:
radial-gradient(ellipse at center, rgba(200, 150, 200, 0.05) 0%, transparent 70%),
linear-gradient(45deg, rgba(120, 200, 150, 0.03) 0%, rgba(150, 180, 200, 0.03) 100%);
}
}
}
/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(120, 200, 150, 0.3);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(120, 200, 150, 0.5);
}
/* Loading animations */
@keyframes shimmer {
0% {
background-position: -200px 0;
}
100% {
background-position: calc(200px + 100%) 0;
}
}
.shimmer {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 200px 100%;
animation: shimmer 1.5s infinite;
}
.dark .shimmer {
background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
background-size: 200px 100%;
}
/* Floating elements */
.float {
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
/* Pulse animation for interactive elements */
.pulse-soft {
animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-soft {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.8;
}
}