-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.css
More file actions
403 lines (345 loc) · 9.31 KB
/
global.css
File metadata and controls
403 lines (345 loc) · 9.31 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
/* Ionicons font for @expo/vector-icons on web
The TTF is copied from node_modules to public/fonts/ for reliable serving */
@font-face {
font-family: "ionicons";
src: url("/fonts/Ionicons.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ============================================================================
Protocol Guide - Global Styles
Enterprise-grade styling for fire department & EMS applications
============================================================================ */
/* Dark mode typography enhancement for legibility */
.dark body,
[data-theme="dark"] body {
font-weight: 500;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ============================================================================
Base Layer - Foundational Styles
============================================================================ */
@layer base {
/* Improved focus states for accessibility */
:focus-visible {
outline: 2px solid #EF4444;
outline-offset: 2px;
border-radius: 4px;
}
/* Smooth scrolling for better UX */
html {
scroll-behavior: smooth;
}
/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Better text rendering */
body {
text-rendering: optimizeLegibility;
}
/* Selection styling - brand-consistent */
::selection {
background-color: rgba(239, 68, 68, 0.2);
color: inherit;
}
.dark ::selection,
[data-theme="dark"] ::selection {
background-color: rgba(239, 68, 68, 0.3);
}
}
/* ============================================================================
Component Layer - Reusable Component Styles
============================================================================ */
@layer components {
/* Professional button transitions */
.btn-transition {
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1),
background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1),
opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-transition:hover {
transform: translateY(-1px);
}
.btn-transition:active {
transform: translateY(0);
}
/* Card hover effect - subtle elevation change */
.card-interactive {
transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1),
border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.card-interactive:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15),
0 4px 6px -2px rgba(0, 0, 0, 0.1);
}
/* Loading skeleton pulse animation */
@keyframes skeleton-pulse {
0%, 100% {
opacity: 0.4;
}
50% {
opacity: 0.7;
}
}
.skeleton-pulse {
animation: skeleton-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Loading dots animation */
@keyframes loading-dot {
0%, 80%, 100% {
opacity: 0.3;
transform: scale(0.8);
}
40% {
opacity: 1;
transform: scale(1);
}
}
.loading-dot {
animation: loading-dot 1.4s ease-in-out infinite both;
}
.loading-dot:nth-child(1) {
animation-delay: 0s;
}
.loading-dot:nth-child(2) {
animation-delay: 0.16s;
}
.loading-dot:nth-child(3) {
animation-delay: 0.32s;
}
/* Fade in animation for content */
@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in-up {
animation: fade-in-up 400ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* Stagger children animations */
.stagger-children > * {
opacity: 0;
animation: fade-in-up 400ms cubic-bezier(0.4, 0, 0.2, 1) 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; }
}
/* ============================================================================
Utility Layer - Helper Classes
============================================================================ */
@layer utilities {
/* Balanced text for headings (prevents orphans) */
.text-balance {
text-wrap: balance;
}
/* Pretty text for paragraphs */
.text-pretty {
text-wrap: pretty;
}
/* Tabular numbers for data display */
.tabular-nums {
font-variant-numeric: tabular-nums;
}
/* Hide scrollbar but keep functionality */
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
/* Gradient text effect (use sparingly) */
.text-gradient-primary {
background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* ---- Glass surfaces ---- */
.glass {
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
.glass-sm {
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.glass-lg {
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
}
.glass-xl {
backdrop-filter: blur(32px);
-webkit-backdrop-filter: blur(32px);
}
.glass-bg-dark {
background: rgba(30,41,59,0.72);
border: 1px solid rgba(255,255,255,0.08);
}
.glass-bg-light {
background: rgba(255,255,255,0.72);
border: 1px solid rgba(255,255,255,0.20);
}
/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
.glass, .glass-sm, .glass-lg, .glass-xl {
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.glass-bg-dark { background: rgba(30,41,59,0.92); }
.glass-bg-light { background: rgba(255,255,255,0.92); }
}
/* High contrast mode — disable blur, raise opacity */
@media (prefers-contrast: more) {
.glass, .glass-sm, .glass-lg, .glass-xl {
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.glass-bg-dark { background: rgba(30,41,59,0.95); }
.glass-bg-light { background: rgba(255,255,255,0.95); }
}
/* Forced colors (Windows high-contrast) */
@media (forced-colors: active) {
.glass-bg-dark, .glass-bg-light {
background: Canvas;
color: CanvasText;
border-color: CanvasText;
}
}
/* Profile card hover */
.profile-card-hover {
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-card-hover:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px -4px rgba(0,0,0,0.12);
}
}
/* ============================================================================
CSS Animations (Web Performance Optimization)
Lightweight alternatives to react-native-reanimated for web
============================================================================ */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
.animate-fade-in {
animation: fadeIn 0.3s ease-out forwards;
}
.animate-fade-in-up {
animation: fadeInUp 0.4s ease-out forwards;
}
.animate-fade-in-down {
animation: fadeInDown 0.4s ease-out forwards;
}
.animate-slide-in-right {
animation: slideInRight 0.4s ease-out forwards;
}
.animate-slide-in-left {
animation: slideInLeft 0.4s ease-out forwards;
}
.animate-scale-in {
animation: scaleIn 0.3s ease-out forwards;
}
/* Initial state for animated elements (prevents flash) */
[class*="animate-"] {
opacity: 0;
}
/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
[class*="animate-"] {
animation: none;
opacity: 1;
transform: none;
}
}
/* ============================================================================
Web Typography - Match Landing Page
============================================================================ */
@media screen {
body {
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Space Grotesk', system-ui, sans-serif;
font-weight: 700;
}
}