@jjlmoya/utils-babies 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/src/tool/baby-feeding-calculator/bibliography.astro +8 -4
  3. package/src/tool/baby-feeding-calculator/component.astro +208 -177
  4. package/src/tool/baby-feeding-calculator/style.css +317 -229
  5. package/src/tool/baby-percentile-calculator/bibliography.astro +8 -4
  6. package/src/tool/baby-percentile-calculator/component.astro +98 -240
  7. package/src/tool/baby-percentile-calculator/i18n/en.ts +1 -0
  8. package/src/tool/baby-percentile-calculator/i18n/es.ts +1 -0
  9. package/src/tool/baby-percentile-calculator/i18n/fr.ts +1 -0
  10. package/src/tool/baby-percentile-calculator/index.ts +1 -0
  11. package/src/tool/baby-percentile-calculator/style.css +342 -268
  12. package/src/tool/baby-size-converter/bibliography.astro +8 -4
  13. package/src/tool/baby-size-converter/component.astro +221 -212
  14. package/src/tool/baby-size-converter/style.css +433 -263
  15. package/src/tool/fertile-days-estimator/bibliography.astro +8 -4
  16. package/src/tool/fertile-days-estimator/component.astro +202 -200
  17. package/src/tool/fertile-days-estimator/style.css +408 -270
  18. package/src/tool/pregnancy-calculator/bibliography.astro +8 -4
  19. package/src/tool/pregnancy-calculator/component.astro +50 -8
  20. package/src/tool/pregnancy-calculator/i18n/en.ts +8 -0
  21. package/src/tool/pregnancy-calculator/i18n/es.ts +8 -0
  22. package/src/tool/pregnancy-calculator/i18n/fr.ts +8 -0
  23. package/src/tool/pregnancy-calculator/index.ts +8 -0
  24. package/src/tool/pregnancy-calculator/style.css +351 -134
  25. package/src/tool/vaccination-calendar/bibliography.astro +8 -4
  26. package/src/tool/vaccination-calendar/component.astro +120 -124
  27. package/src/tool/vaccination-calendar/style.css +296 -209
@@ -1,393 +1,467 @@
1
- .baby-percentile-calculator {
2
- --bpc-bg: #fff;
3
- --bpc-bg-muted: #f8fafc;
4
- --bpc-bg-alt: #f1f5f9;
5
- --bpc-text: #0f172a;
6
- --bpc-text-muted: #1e293b;
7
- --bpc-text-dim: #64748b;
8
- --bpc-text-faint: #94a3b8;
9
- --bpc-border: #e2e8f0;
10
- --bpc-border-inner: #475569;
11
- --bpc-shadow: rgba(0, 0, 0, 0.05);
12
- --bpc-primary: #0d9488;
13
- --bpc-primary-on: #fff;
14
- --bpc-primary-glow: rgba(13, 148, 136, 0.4);
15
- --bpc-accent-boy: #0ea5e9;
16
- --bpc-accent-boy-glow: rgba(14, 165, 233, 0.4);
17
- --bpc-success: #10b981;
18
- --bpc-warning-bg: #fff7ed;
19
- --bpc-warning-border: #fed7aa;
20
- --bpc-warning-text: #9a3412;
21
- --bpc-disclaimer-bg: #f1f5f9;
22
-
23
- background-color: var(--bpc-bg);
24
- color: var(--bpc-text);
25
- border: 1px solid var(--bpc-border);
26
- border-radius: 1rem;
27
- padding: 1.5rem;
28
- box-shadow: 0 1px 3px var(--bpc-shadow);
29
- }
30
-
31
- .theme-dark .baby-percentile-calculator {
32
- --bpc-bg: #0f172a;
33
- --bpc-bg-muted: #1e293b;
34
- --bpc-bg-alt: #334155;
35
- --bpc-text: #f8fafc;
36
- --bpc-text-muted: #f8fafc;
37
- --bpc-text-dim: #94a3b8;
38
- --bpc-text-faint: #64748b;
39
- --bpc-border: #1e293b;
40
- --bpc-border-inner: #475569;
41
- --bpc-shadow: rgba(0, 0, 0, 0.4);
42
- --bpc-primary: #2dd4bf;
43
- --bpc-primary-on: #fff;
44
- --bpc-primary-glow: rgba(45, 212, 191, 0.4);
45
- --bpc-accent-boy: #38bdf8;
46
- --bpc-accent-boy-glow: rgba(56, 189, 248, 0.4);
47
- --bpc-success: #34d399;
48
- --bpc-warning-bg: rgba(154, 52, 18, 0.1);
49
- --bpc-warning-border: rgba(154, 52, 18, 0.2);
50
- --bpc-warning-text: #fdba74;
51
- --bpc-disclaimer-bg: #1e293b;
52
- }
53
-
54
- .baby-percentile-calculator-main {
1
+ /* PRINCIPAL CONTAINER */
2
+ .bpc-card {
3
+ background: #fff;
4
+ border: 1px solid #e2e8f0;
5
+ border-radius: 32px;
6
+ overflow: hidden;
55
7
  display: flex;
56
- gap: 1.5rem;
57
- flex-wrap: wrap;
8
+ flex-direction: column;
9
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
10
+ transition: all 0.3s ease;
11
+ border-top: 8px solid #0ea5e9;
58
12
  }
59
13
 
60
- .baby-percentile-calculator-left {
61
- flex: 1 1 18rem;
62
- display: flex;
63
- flex-direction: column;
64
- gap: 1rem;
14
+ .bpc-card:not(.bpc-boy) {
15
+ border-top-color: #0d9488;
65
16
  }
66
17
 
67
- .baby-percentile-calculator-right {
68
- flex: 2 1 24rem;
69
- display: flex;
70
- flex-direction: column;
71
- gap: 1rem;
18
+ .dark .bpc-card {
19
+ background: #0f172a;
20
+ border-color: #1e293b;
21
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
22
+ }
23
+
24
+ /* GRID */
25
+ .bpc-main {
26
+ display: grid;
27
+ grid-template-columns: 1fr 1.2fr;
28
+ }
29
+
30
+ .bpc-left {
31
+ background: #f8fafc;
32
+ padding: 40px;
33
+ border-right: 1px solid #e2e8f0;
34
+ }
35
+
36
+ .dark .bpc-left {
37
+ background: #1e293b;
38
+ border-right-color: #334155;
39
+ }
40
+
41
+ .bpc-right {
42
+ background: #fff;
43
+ padding: 40px;
72
44
  }
73
45
 
74
- .baby-percentile-calculator-section-marker {
46
+ .dark .bpc-right {
47
+ background: #0f172a;
48
+ }
49
+
50
+ /* SECTION MARKER */
51
+ .bpc-section-marker {
75
52
  display: block;
76
- font-size: 0.75rem;
77
- font-weight: 600;
78
- letter-spacing: 0.08em;
53
+ font-size: 0.8rem;
54
+ font-weight: 800;
79
55
  text-transform: uppercase;
80
- color: var(--bpc-text-dim);
81
- border-bottom: 1px solid var(--bpc-border);
82
- padding-bottom: 0.5rem;
83
- margin-bottom: 0.25rem;
56
+ letter-spacing: 0.1em;
57
+ color: #475569;
58
+ margin-bottom: 32px;
84
59
  }
85
60
 
86
- .baby-percentile-calculator-input-group {
87
- display: flex;
88
- flex-direction: column;
89
- gap: 0.25rem;
61
+ .dark .bpc-section-marker {
62
+ color: #94a3b8;
90
63
  }
91
64
 
92
- .baby-percentile-calculator-input-label {
93
- font-size: 0.8rem;
94
- font-weight: 500;
95
- color: var(--bpc-text-dim);
65
+ /* INPUT GROUP */
66
+ .bpc-input-group {
67
+ margin-bottom: 24px;
68
+ }
69
+
70
+ .bpc-input-label {
71
+ display: block;
72
+ font-size: 0.95rem;
73
+ font-weight: 700;
74
+ color: #1e293b;
75
+ margin-bottom: 12px;
96
76
  }
97
77
 
98
- .baby-percentile-calculator-sex-selector {
78
+ .dark .bpc-input-label {
79
+ color: #f8fafc;
80
+ }
81
+
82
+ /* SEX SELECTOR */
83
+ .bpc-sex-selector {
99
84
  display: flex;
100
- gap: 0.5rem;
85
+ gap: 8px;
86
+ background: #f1f5f9;
87
+ padding: 6px;
88
+ border-radius: 14px;
89
+ }
90
+
91
+ .dark .bpc-sex-selector {
92
+ background: #334155;
101
93
  }
102
94
 
103
- .baby-percentile-calculator-sex-btn {
95
+ .bpc-sex-btn {
104
96
  flex: 1;
105
- padding: 0.5rem 1rem;
106
- border: 1px solid var(--bpc-border);
107
- border-radius: 0.5rem;
108
- background-color: var(--bpc-bg-muted);
109
- color: var(--bpc-text-muted);
97
+ padding: 12px;
98
+ border: none;
99
+ background: transparent;
100
+ border-radius: 10px;
101
+ font-size: 0.9rem;
102
+ font-weight: 700;
103
+ color: #64748b;
110
104
  cursor: pointer;
111
- font-size: 0.875rem;
112
- font-weight: 500;
113
- transition: background-color 0.15s, border-color 0.15s, color 0.15s;
105
+ transition: all 0.2s ease;
106
+ }
107
+
108
+ .bpc-sex-btn.bpc-active {
109
+ background: #fff;
110
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
114
111
  }
115
112
 
116
- .baby-percentile-calculator-sex-btn:hover {
117
- border-color: var(--bpc-primary);
118
- color: var(--bpc-primary);
113
+ .dark .bpc-sex-btn.bpc-active {
114
+ background: #0f172a;
119
115
  }
120
116
 
121
- .baby-percentile-calculator-sex-btn[data-active="true"] {
122
- background-color: var(--bpc-primary);
123
- border-color: var(--bpc-primary);
124
- color: var(--bpc-primary-on);
117
+ .bpc-boy .bpc-sex-btn[data-sex="boy"].bpc-active {
118
+ color: #0ea5e9;
125
119
  }
126
120
 
127
- .baby-percentile-calculator-boy .baby-percentile-calculator-sex-btn[data-active="true"] {
128
- background-color: var(--bpc-accent-boy);
129
- border-color: var(--bpc-accent-boy);
130
- color: var(--bpc-primary-on);
121
+ .bpc-card:not(.bpc-boy) .bpc-sex-btn[data-sex="girl"].bpc-active {
122
+ color: #0d9488;
131
123
  }
132
124
 
133
- .baby-percentile-calculator-unit-nav {
125
+ /* UNIT NAV */
126
+ .bpc-unit-nav {
134
127
  display: flex;
135
- background-color: var(--bpc-bg-alt);
136
- border-radius: 0.5rem;
137
- padding: 0.25rem;
138
- gap: 0.25rem;
128
+ background: #f1f5f9;
129
+ padding: 6px;
130
+ border-radius: 14px;
139
131
  }
140
132
 
141
- .baby-percentile-calculator-unit-tab {
133
+ .dark .bpc-unit-nav {
134
+ background: #334155;
135
+ }
136
+
137
+ .bpc-unit-tab {
142
138
  flex: 1;
143
- padding: 0.375rem 0.75rem;
139
+ padding: 10px;
144
140
  border: none;
145
- border-radius: 0.375rem;
146
- background-color: transparent;
147
- color: var(--bpc-text-dim);
141
+ background: transparent;
142
+ color: #64748b;
143
+ border-radius: 10px;
144
+ font-size: 0.85rem;
145
+ font-weight: 700;
148
146
  cursor: pointer;
149
- font-size: 0.8rem;
150
- font-weight: 500;
151
- transition: background-color 0.15s, color 0.15s;
147
+ transition: all 0.2s ease;
148
+ }
149
+
150
+ .bpc-unit-tab.bpc-active {
151
+ background: #fff;
152
+ color: #0d9488;
153
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
152
154
  }
153
155
 
154
- .baby-percentile-calculator-unit-tab:hover {
155
- color: var(--bpc-text);
156
+ .bpc-boy .bpc-unit-tab.bpc-active {
157
+ color: #0ea5e9;
156
158
  }
157
159
 
158
- .baby-percentile-calculator-unit-tab[data-active="true"] {
159
- background-color: var(--bpc-bg);
160
- color: var(--bpc-text);
161
- box-shadow: 0 1px 3px var(--bpc-shadow);
160
+ .dark .bpc-unit-tab.bpc-active {
161
+ background: #0f172a;
162
162
  }
163
163
 
164
- .baby-percentile-calculator-stepper-box {
164
+ /* STEPPER */
165
+ .bpc-stepper-box {
165
166
  display: flex;
166
167
  align-items: center;
167
- gap: 0.75rem;
168
- background-color: var(--bpc-bg-muted);
169
- border: 1px solid var(--bpc-border);
170
- border-radius: 0.75rem;
171
- padding: 0.5rem 0.75rem;
172
- }
173
-
174
- .baby-percentile-calculator-btn-step {
175
- width: 2rem;
176
- height: 2rem;
177
- border: 1px solid var(--bpc-border);
178
- border-radius: 0.375rem;
179
- background-color: var(--bpc-bg);
180
- color: var(--bpc-text);
168
+ justify-content: space-between;
169
+ background: #fff;
170
+ border: 2px solid #e2e8f0;
171
+ border-radius: 18px;
172
+ padding: 10px;
173
+ margin-bottom: 12px;
174
+ }
175
+
176
+ .dark .bpc-stepper-box {
177
+ background: #334155;
178
+ border-color: #475569;
179
+ }
180
+
181
+ .bpc-btn-step {
182
+ width: 44px;
183
+ height: 44px;
184
+ border-radius: 12px;
185
+ border: none;
186
+ background: #f8fafc;
187
+ color: #1e293b;
188
+ font-size: 1.5rem;
189
+ font-weight: 700;
181
190
  cursor: pointer;
182
- font-size: 1rem;
183
- display: flex;
184
- align-items: center;
185
- justify-content: center;
186
- transition: border-color 0.15s, color 0.15s;
187
- flex-shrink: 0;
191
+ transition: all 0.2s ease;
188
192
  }
189
193
 
190
- .baby-percentile-calculator-btn-step:hover {
191
- border-color: var(--bpc-primary);
192
- color: var(--bpc-primary);
194
+ .dark .bpc-btn-step {
195
+ background: #0f172a;
196
+ color: #fff;
193
197
  }
194
198
 
195
- .baby-percentile-calculator-val-view {
196
- flex: 1;
197
- display: flex;
198
- flex-direction: column;
199
- align-items: center;
199
+ .bpc-btn-step:hover {
200
+ background: #0d9488;
201
+ color: #fff;
200
202
  }
201
203
 
202
- .baby-percentile-calculator-val-big {
203
- font-size: 1.5rem;
204
- font-weight: 700;
205
- color: var(--bpc-text);
206
- line-height: 1;
204
+ .bpc-boy .bpc-btn-step:hover {
205
+ background: #0ea5e9;
207
206
  }
208
207
 
209
- .baby-percentile-calculator-val-sub {
210
- font-size: 0.75rem;
211
- color: var(--bpc-text-dim);
208
+ .bpc-val-view {
209
+ text-align: center;
210
+ }
211
+
212
+ .bpc-val-big {
213
+ display: block;
214
+ font-size: 2.25rem;
215
+ font-weight: 900;
216
+ color: #0f172a;
217
+ }
218
+
219
+ .dark .bpc-val-big {
220
+ color: #fff;
221
+ }
222
+
223
+ .bpc-val-sub {
224
+ font-size: 0.8rem;
225
+ color: #64748b;
226
+ font-weight: 700;
212
227
  }
213
228
 
214
- .baby-percentile-calculator-slider-line {
229
+ /* SLIDER */
230
+ .bpc-slider {
231
+ -webkit-appearance: none;
232
+ appearance: none;
215
233
  width: 100%;
216
- accent-color: var(--bpc-primary);
234
+ margin: 16px 0;
235
+ height: 6px;
236
+ background: #e2e8f0;
237
+ border-radius: 3px;
238
+ outline: none;
239
+ }
240
+
241
+ .dark .bpc-slider {
242
+ background: #475569;
243
+ }
244
+
245
+ .bpc-slider::-webkit-slider-thumb {
246
+ -webkit-appearance: none;
247
+ appearance: none;
248
+ width: 24px;
249
+ height: 24px;
250
+ border-radius: 50%;
251
+ background: #0d9488;
217
252
  cursor: pointer;
253
+ border: 4px solid #fff;
254
+ box-shadow: 0 4px 10px rgba(13, 148, 136, 0.4);
218
255
  }
219
256
 
220
- .baby-percentile-calculator-boy .baby-percentile-calculator-slider-line {
221
- accent-color: var(--bpc-accent-boy);
257
+ .bpc-boy .bpc-slider::-webkit-slider-thumb {
258
+ background: #0ea5e9;
259
+ box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4);
222
260
  }
223
261
 
224
- .baby-percentile-calculator-grid-2 {
262
+ /* GRID 2 */
263
+ .bpc-grid-2 {
225
264
  display: grid;
226
265
  grid-template-columns: 1fr 1fr;
227
- gap: 0.75rem;
266
+ gap: 16px;
228
267
  }
229
268
 
230
- .baby-percentile-calculator-num-input {
269
+ /* NUMBER INPUT */
270
+ .bpc-num-input {
231
271
  width: 100%;
232
- padding: 0.5rem 0.75rem;
233
- border: 1px solid var(--bpc-border);
234
- border-radius: 0.5rem;
235
- background-color: var(--bpc-bg-muted);
236
- color: var(--bpc-text);
237
- font-size: 1rem;
272
+ padding: 16px;
273
+ border: 2px solid #e2e8f0;
274
+ border-radius: 14px;
275
+ font-size: 1.25rem;
276
+ font-weight: 800;
277
+ color: #0f172a;
278
+ background: #fff;
279
+ transition: all 0.2s ease;
238
280
  box-sizing: border-box;
239
- transition: border-color 0.15s;
240
281
  }
241
282
 
242
- .baby-percentile-calculator-num-input:focus {
283
+ .dark .bpc-num-input {
284
+ background: #334155;
285
+ border-color: #475569;
286
+ color: #fff;
287
+ }
288
+
289
+ .bpc-num-input:focus {
290
+ border-color: #0d9488;
243
291
  outline: none;
244
- border-color: var(--bpc-primary);
245
- box-shadow: 0 0 0 3px var(--bpc-primary-glow);
292
+ box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
246
293
  }
247
294
 
248
- .baby-percentile-calculator-boy .baby-percentile-calculator-num-input:focus {
249
- border-color: var(--bpc-accent-boy);
250
- box-shadow: 0 0 0 3px var(--bpc-accent-boy-glow);
295
+ .bpc-boy .bpc-num-input:focus {
296
+ border-color: #0ea5e9;
251
297
  }
252
298
 
253
- .baby-percentile-calculator-history-actions {
299
+ /* HISTORY ACTIONS */
300
+ .bpc-history-actions {
254
301
  display: flex;
255
- gap: 0.5rem;
256
- flex-wrap: wrap;
302
+ flex-direction: column;
303
+ gap: 12px;
304
+ margin-top: 32px;
257
305
  }
258
306
 
259
- .baby-percentile-calculator-btn-secondary {
260
- flex: 1;
261
- padding: 0.625rem 1rem;
262
- border: 1px solid var(--bpc-primary);
263
- border-radius: 0.5rem;
264
- background-color: transparent;
265
- color: var(--bpc-primary);
307
+ .bpc-btn-secondary {
308
+ padding: 16px;
309
+ background: #0f172a;
310
+ color: #fff;
311
+ border: none;
312
+ border-radius: 14px;
313
+ font-size: 0.95rem;
314
+ font-weight: 800;
266
315
  cursor: pointer;
267
- font-size: 0.875rem;
268
- font-weight: 500;
269
- transition: background-color 0.15s, color 0.15s;
316
+ transition: all 0.2s ease;
270
317
  }
271
318
 
272
- .baby-percentile-calculator-btn-secondary:hover {
273
- background-color: var(--bpc-primary);
274
- color: var(--bpc-primary-on);
319
+ .bpc-btn-secondary:hover {
320
+ background: #0d9488;
321
+ transform: translateY(-2px);
275
322
  }
276
323
 
277
- .baby-percentile-calculator-boy .baby-percentile-calculator-btn-secondary {
278
- border-color: var(--bpc-accent-boy);
279
- color: var(--bpc-accent-boy);
324
+ .bpc-boy .bpc-btn-secondary:hover {
325
+ background: #0ea5e9;
280
326
  }
281
327
 
282
- .baby-percentile-calculator-boy .baby-percentile-calculator-btn-secondary:hover {
283
- background-color: var(--bpc-accent-boy);
284
- color: var(--bpc-primary-on);
328
+ .bpc-btn-clear {
329
+ padding: 12px;
330
+ background: transparent;
331
+ color: #64748b;
332
+ border: 1px solid #e2e8f0;
333
+ border-radius: 14px;
334
+ font-size: 0.85rem;
335
+ font-weight: 700;
336
+ cursor: pointer;
337
+ transition: all 0.2s ease;
285
338
  }
286
339
 
287
- .baby-percentile-calculator-btn-clear {
288
- flex: 1;
289
- padding: 0.625rem 1rem;
290
- border: 1px solid var(--bpc-border);
291
- border-radius: 0.5rem;
292
- background-color: var(--bpc-bg-muted);
293
- color: var(--bpc-text-dim);
294
- cursor: pointer;
295
- font-size: 0.875rem;
296
- font-weight: 500;
297
- transition: border-color 0.15s, color 0.15s;
340
+ .dark .bpc-btn-clear {
341
+ border-color: #334155;
298
342
  }
299
343
 
300
- .baby-percentile-calculator-btn-clear:hover {
301
- border-color: var(--bpc-text-dim);
302
- color: var(--bpc-text);
344
+ .bpc-btn-clear:hover {
345
+ color: #f43f5e;
346
+ border-color: #f43f5e;
303
347
  }
304
348
 
305
- .baby-percentile-calculator-res-grid {
349
+ /* RESULTS GRID */
350
+ .bpc-res-grid {
306
351
  display: grid;
307
352
  grid-template-columns: repeat(3, 1fr);
308
- gap: 0.75rem;
353
+ gap: 20px;
354
+ margin-bottom: 24px;
309
355
  }
310
356
 
311
- .baby-percentile-calculator-res-item {
312
- background-color: var(--bpc-bg-muted);
313
- border: 1px solid var(--bpc-border);
314
- border-radius: 0.75rem;
315
- padding: 0.75rem;
316
- display: flex;
317
- flex-direction: column;
318
- gap: 0.25rem;
357
+ .bpc-res-item {
358
+ background: #f8fafc;
359
+ padding: 24px 12px;
360
+ border-radius: 24px;
319
361
  text-align: center;
362
+ border: 1px solid #e2e8f0;
320
363
  }
321
364
 
322
- .baby-percentile-calculator-res-title {
365
+ .dark .bpc-res-item {
366
+ background: #1e293b;
367
+ border-color: #334155;
368
+ }
369
+
370
+ .bpc-res-title {
371
+ display: block;
323
372
  font-size: 0.75rem;
324
- font-weight: 600;
373
+ font-weight: 800;
325
374
  text-transform: uppercase;
326
- letter-spacing: 0.05em;
327
- color: var(--bpc-text-dim);
375
+ color: #94a3b8;
376
+ margin-bottom: 8px;
328
377
  }
329
378
 
330
- .baby-percentile-calculator-percent-val {
331
- font-size: 1.75rem;
332
- font-weight: 700;
333
- color: var(--bpc-primary);
379
+ .bpc-percent-val {
380
+ display: block;
381
+ font-size: 2.25rem;
382
+ font-weight: 950;
383
+ color: #0d9488;
334
384
  line-height: 1;
385
+ margin-bottom: 4px;
335
386
  }
336
387
 
337
- .baby-percentile-calculator-boy .baby-percentile-calculator-percent-val {
338
- color: var(--bpc-accent-boy);
388
+ .bpc-boy .bpc-percent-val {
389
+ color: #0ea5e9;
339
390
  }
340
391
 
341
- .baby-percentile-calculator-res-desc {
342
- font-size: 0.7rem;
343
- color: var(--bpc-text-faint);
392
+ .dark .bpc-percent-val {
393
+ color: #2dd4bf;
344
394
  }
345
395
 
346
- .baby-percentile-calculator-alert {
347
- background-color: var(--bpc-warning-bg);
348
- border: 1px solid var(--bpc-warning-border);
349
- border-radius: 0.5rem;
350
- padding: 0.75rem 1rem;
351
- font-size: 0.875rem;
352
- color: var(--bpc-warning-text);
353
- display: none;
396
+ .bpc-res-desc {
397
+ font-size: 0.85rem;
398
+ font-weight: 700;
399
+ color: #64748b;
354
400
  }
355
401
 
356
- .baby-percentile-calculator-alert[data-visible="true"] {
357
- display: block;
402
+ /* ALERT */
403
+ .bpc-alert-msg {
404
+ background: #fff7ed;
405
+ border: 1px solid #fed7aa;
406
+ color: #9a3412;
407
+ padding: 16px;
408
+ border-radius: 16px;
409
+ font-size: 0.85rem;
410
+ font-weight: 600;
411
+ line-height: 1.5;
412
+ margin-bottom: 24px;
358
413
  }
359
414
 
360
- .baby-percentile-calculator-chart-box {
361
- position: relative;
362
- width: 100%;
363
- aspect-ratio: 16 / 9;
364
- min-height: 200px;
415
+ .dark .bpc-alert-msg {
416
+ background: rgba(154, 52, 18, 0.1);
417
+ border-color: rgba(154, 52, 18, 0.2);
418
+ color: #fdba74;
365
419
  }
366
420
 
367
- .baby-percentile-calculator-chart-box canvas {
421
+ .bpc-hidden {
422
+ display: none;
423
+ }
424
+
425
+ /* CHART */
426
+ .bpc-chart-box {
427
+ margin-top: 16px;
428
+ height: 300px;
368
429
  width: 100%;
369
- height: 100%;
370
430
  }
371
431
 
372
- .baby-percentile-calculator-disclaimer {
373
- background-color: var(--bpc-disclaimer-bg);
374
- border-radius: 0.5rem;
375
- padding: 0.75rem 1rem;
376
- font-size: 0.8rem;
377
- color: var(--bpc-text-dim);
432
+ /* DISCLAIMER */
433
+ .bpc-disclaimer {
434
+ margin-top: 40px;
435
+ padding: 20px;
436
+ background: #f1f5f9;
437
+ border-radius: 16px;
438
+ font-size: 0.85rem;
439
+ color: #64748b;
378
440
  line-height: 1.5;
441
+ font-style: italic;
379
442
  }
380
443
 
381
- @media (max-width: 640px) {
382
- .baby-percentile-calculator-main {
383
- flex-direction: column;
384
- }
444
+ .dark .bpc-disclaimer {
445
+ background: #1e293b;
446
+ }
385
447
 
386
- .baby-percentile-calculator-res-grid {
448
+ /* RESPONSIVE */
449
+ @media (max-width: 900px) {
450
+ .bpc-main {
387
451
  grid-template-columns: 1fr;
388
452
  }
389
453
 
390
- .baby-percentile-calculator-grid-2 {
454
+ .bpc-left {
455
+ border-right: none;
456
+ border-bottom: 1px solid #e2e8f0;
457
+ padding: 40px 20px;
458
+ }
459
+
460
+ .bpc-right {
461
+ padding: 40px 20px;
462
+ }
463
+
464
+ .bpc-res-grid {
391
465
  grid-template-columns: 1fr;
392
466
  }
393
467
  }