Abs6187 commited on
Commit
20b738a
·
verified ·
1 Parent(s): 5423c93

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +354 -14
style.css CHANGED
@@ -1,28 +1,368 @@
 
 
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
4
  }
5
 
 
6
  h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
10
 
11
  p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
 
18
  .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
 
 
 
 
 
 
 
24
  }
25
 
26
  .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Enhanced Styles for Wellness Planner */
2
+
3
+ /* Reset and Base Styles */
4
+ * {
5
+ margin: 0;
6
+ padding: 0;
7
+ box-sizing: border-box;
8
+ }
9
+
10
  body {
11
+ padding: 2rem;
12
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Arial", sans-serif;
13
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
14
+ min-height: 100vh;
15
+ line-height: 1.6;
16
+ color: #333;
17
  }
18
 
19
+ /* Typography */
20
  h1 {
21
+ font-size: 2.5rem;
22
+ font-weight: 700;
23
+ margin-top: 0;
24
+ margin-bottom: 1rem;
25
+ color: #2d3748;
26
+ text-align: center;
27
+ }
28
+
29
+ h2 {
30
+ font-size: 1.875rem;
31
+ font-weight: 600;
32
+ margin-bottom: 1rem;
33
+ color: #2d3748;
34
+ }
35
+
36
+ h3 {
37
+ font-size: 1.5rem;
38
+ font-weight: 600;
39
+ margin-bottom: 0.75rem;
40
+ color: #4a5568;
41
  }
42
 
43
  p {
44
+ color: rgb(107, 114, 128);
45
+ font-size: 1rem;
46
+ margin-bottom: 1rem;
47
+ margin-top: 0.5rem;
48
  }
49
 
50
+ /* Card Component */
51
  .card {
52
+ max-width: 800px;
53
+ margin: 2rem auto;
54
+ padding: 2rem;
55
+ background: rgba(255, 255, 255, 0.95);
56
+ backdrop-filter: blur(10px);
57
+ border: 1px solid rgba(255, 255, 255, 0.2);
58
+ border-radius: 20px;
59
+ box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
60
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
61
+ }
62
+
63
+ .card:hover {
64
+ transform: translateY(-5px);
65
+ box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
66
  }
67
 
68
  .card p:last-child {
69
+ margin-bottom: 0;
70
+ }
71
+
72
+ /* Form Elements */
73
+ .form-group {
74
+ margin-bottom: 1.5rem;
75
+ }
76
+
77
+ label {
78
+ display: block;
79
+ margin-bottom: 0.5rem;
80
+ font-weight: 500;
81
+ color: #2d3748;
82
+ }
83
+
84
+ input, select, textarea {
85
+ width: 100%;
86
+ padding: 0.75rem 1rem;
87
+ border: 2px solid #e2e8f0;
88
+ border-radius: 8px;
89
+ font-size: 1rem;
90
+ transition: border-color 0.3s ease, box-shadow 0.3s ease;
91
+ background: white;
92
+ }
93
+
94
+ input:focus, select:focus, textarea:focus {
95
+ outline: none;
96
+ border-color: #667eea;
97
+ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
98
+ }
99
+
100
+ /* Buttons */
101
+ .btn {
102
+ display: inline-block;
103
+ padding: 0.75rem 1.5rem;
104
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
105
+ color: white;
106
+ text-decoration: none;
107
+ border: none;
108
+ border-radius: 8px;
109
+ font-size: 1rem;
110
+ font-weight: 600;
111
+ cursor: pointer;
112
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
113
+ }
114
+
115
+ .btn:hover {
116
+ transform: translateY(-2px);
117
+ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
118
+ }
119
+
120
+ .btn-primary {
121
+ background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
122
+ }
123
+
124
+ .btn-secondary {
125
+ background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
126
+ }
127
+
128
+ /* Layout Utilities */
129
+ .container {
130
+ max-width: 1200px;
131
+ margin: 0 auto;
132
+ padding: 0 1rem;
133
+ }
134
+
135
+ .grid {
136
+ display: grid;
137
+ gap: 2rem;
138
+ }
139
+
140
+ .grid-2 {
141
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
142
+ }
143
+
144
+ .flex {
145
+ display: flex;
146
+ gap: 1rem;
147
+ }
148
+
149
+ .flex-center {
150
+ justify-content: center;
151
+ align-items: center;
152
+ }
153
+
154
+ .flex-between {
155
+ justify-content: space-between;
156
+ align-items: center;
157
+ }
158
+
159
+ /* Wellness Specific Components */
160
+ .wellness-header {
161
+ text-align: center;
162
+ padding: 3rem 0;
163
+ background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
164
+ border-radius: 20px;
165
+ margin-bottom: 2rem;
166
+ }
167
+
168
+ .metrics-card {
169
+ background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
170
+ padding: 1.5rem;
171
+ border-radius: 12px;
172
+ border: 1px solid rgba(30, 136, 229, 0.2);
173
+ margin-bottom: 1rem;
174
  }
175
+
176
+ .metrics-card h4 {
177
+ color: #1E88E5;
178
+ margin-bottom: 0.5rem;
179
+ font-size: 1.1rem;
180
+ }
181
+
182
+ .status-indicator {
183
+ display: inline-block;
184
+ padding: 0.25rem 0.75rem;
185
+ border-radius: 20px;
186
+ font-size: 0.875rem;
187
+ font-weight: 600;
188
+ }
189
+
190
+ .status-normal {
191
+ background: #d4edda;
192
+ color: #155724;
193
+ }
194
+
195
+ .status-warning {
196
+ background: #fff3cd;
197
+ color: #856404;
198
+ }
199
+
200
+ .status-danger {
201
+ background: #f8d7da;
202
+ color: #721c24;
203
+ }
204
+
205
+ /* Plan Display */
206
+ .plan-container {
207
+ background: white;
208
+ padding: 2rem;
209
+ border-radius: 16px;
210
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
211
+ margin: 2rem 0;
212
+ }
213
+
214
+ .plan-header {
215
+ text-align: center;
216
+ padding-bottom: 1rem;
217
+ border-bottom: 2px solid #e2e8f0;
218
+ margin-bottom: 2rem;
219
+ }
220
+
221
+ .day-section {
222
+ margin-bottom: 2rem;
223
+ padding: 1.5rem;
224
+ background: #f8f9fa;
225
+ border-radius: 12px;
226
+ border-left: 4px solid #4CAF50;
227
+ }
228
+
229
+ .day-title {
230
+ font-size: 1.25rem;
231
+ font-weight: 600;
232
+ color: #2E7D32;
233
+ margin-bottom: 1rem;
234
+ }
235
+
236
+ /* Info Boxes */
237
+ .info-box {
238
+ background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
239
+ padding: 1.5rem;
240
+ border-radius: 12px;
241
+ margin-bottom: 1rem;
242
+ border-left: 4px solid #1E88E5;
243
+ }
244
+
245
+ .success-box {
246
+ background: linear-gradient(135deg, #d4edda 0%, #e8f5e8 100%);
247
+ border-left-color: #28a745;
248
+ }
249
+
250
+ .warning-box {
251
+ background: linear-gradient(135deg, #fff3cd 0%, #fffbf0 100%);
252
+ border-left-color: #ffc107;
253
+ }
254
+
255
+ /* Responsive Design */
256
+ @media (max-width: 768px) {
257
+ body {
258
+ padding: 1rem;
259
+ }
260
+
261
+ .card {
262
+ margin: 1rem auto;
263
+ padding: 1.5rem;
264
+ }
265
+
266
+ h1 {
267
+ font-size: 2rem;
268
+ }
269
+
270
+ .grid-2 {
271
+ grid-template-columns: 1fr;
272
+ }
273
+
274
+ .wellness-header {
275
+ padding: 2rem 0;
276
+ }
277
+ }
278
+
279
+ @media (max-width: 480px) {
280
+ body {
281
+ padding: 0.5rem;
282
+ }
283
+
284
+ .card {
285
+ padding: 1rem;
286
+ border-radius: 12px;
287
+ }
288
+
289
+ h1 {
290
+ font-size: 1.75rem;
291
+ }
292
+
293
+ .btn {
294
+ width: 100%;
295
+ text-align: center;
296
+ }
297
+ }
298
+
299
+ /* Animation and Transitions */
300
+ @keyframes fadeIn {
301
+ from {
302
+ opacity: 0;
303
+ transform: translateY(20px);
304
+ }
305
+ to {
306
+ opacity: 1;
307
+ transform: translateY(0);
308
+ }
309
+ }
310
+
311
+ .fade-in {
312
+ animation: fadeIn 0.6s ease-out;
313
+ }
314
+
315
+ /* Loading States */
316
+ .loading {
317
+ display: inline-block;
318
+ width: 20px;
319
+ height: 20px;
320
+ border: 3px solid rgba(255,255,255,.3);
321
+ border-radius: 50%;
322
+ border-top-color: #fff;
323
+ animation: spin 1s ease-in-out infinite;
324
+ }
325
+
326
+ @keyframes spin {
327
+ to { transform: rotate(360deg); }
328
+ }
329
+
330
+ /* Accessibility */
331
+ .sr-only {
332
+ position: absolute;
333
+ width: 1px;
334
+ height: 1px;
335
+ padding: 0;
336
+ margin: -1px;
337
+ overflow: hidden;
338
+ clip: rect(0, 0, 0, 0);
339
+ white-space: nowrap;
340
+ border: 0;
341
+ }
342
+
343
+ /* Focus indicators for better accessibility */
344
+ button:focus-visible,
345
+ input:focus-visible,
346
+ select:focus-visible,
347
+ textarea:focus-visible {
348
+ outline: 2px solid #667eea;
349
+ outline-offset: 2px;
350
+ }
351
+
352
+ /* Print Styles */
353
+ @media print {
354
+ body {
355
+ background: white;
356
+ color: black;
357
+ padding: 1rem;
358
+ }
359
+
360
+ .card {
361
+ box-shadow: none;
362
+ border: 1px solid #ccc;
363
+ }
364
+
365
+ .btn {
366
+ display: none;
367
+ }
368
+ }