-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
867 lines (776 loc) · 56.2 KB
/
Copy pathindex.html
File metadata and controls
867 lines (776 loc) · 56.2 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
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>💩 Poop Tracker</title>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Y90TJHEK74"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Y90TJHEK74');
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=DynaPuff:wght@400;500;600;700&display=swap');
body {
font-family: 'Fredoka', sans-serif;
-webkit-font-smoothing: antialiased;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 40px;
height: 40px;
background: #fcd34d;
cursor: pointer;
border-radius: 50%;
box-shadow: 0 4px 0px #d97706;
border: 4px solid #fff;
transition: transform 0.1s;
}
.slider::-webkit-slider-thumb:hover {
transform: scale(1.1);
}
.slider::-moz-range-thumb {
width: 40px;
height: 40px;
background: #fcd34d;
cursor: pointer;
border-radius: 50%;
box-shadow: 0 4px 0px #d97706;
border: 4px solid #fff;
}
.heat-cell {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
border-radius: 8px;
}
.heat-cell:hover {
transform: scale(1.2) rotate(5deg);
z-index: 10;
}
.yearly-cell {
width: 10px;
height: 10px;
border-radius: 3px;
transition: all 0.2s;
}
.yearly-cell:hover {
transform: scale(1.5);
z-index: 10;
}
.tooltip {
visibility: hidden;
opacity: 0;
transition: all 0.2s ease;
transform: translateY(10px) translateX(-50%);
}
.tooltip-trigger:hover .tooltip {
visibility: visible;
opacity: 1;
transform: translateY(0) translateX(-50%);
}
.tab-active {
background-color: #f59e0b;
color: white;
box-shadow: 0 4px 0px #b45309;
transform: translateY(-2px);
}
.tab-active:active {
box-shadow: 0 0 0 #b45309;
transform: translateY(2px);
}
.fun-btn {
transition: all 0.1s;
box-shadow: 0 4px 0 #e5e7eb;
}
.fun-btn:active {
transform: translateY(4px);
box-shadow: 0 0 0 #e5e7eb;
}
.primary-btn {
box-shadow: 0 6px 0 #c2410c;
transition: all 0.1s;
}
.primary-btn:active {
transform: translateY(6px);
box-shadow: 0 0 0 #c2410c;
}
.primary-btn:disabled {
background-color: #d1d5db;
cursor: not-allowed;
box-shadow: 0 6px 0 #9ca3af;
opacity: 0.7;
}
.primary-btn:disabled:active {
transform: none;
box-shadow: 0 6px 0 #9ca3af;
}
.reaction-btn:hover {
transform: scale(1.2) rotate(-10deg);
}
.reaction-btn.active {
transform: scale(1.1);
filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
}
#notificationDropdown {
animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes wiggle {
0%, 100% { transform: rotate(0deg); }
25% { transform: rotate(-10deg); }
75% { transform: rotate(10deg); }
}
#notificationBtn:hover svg {
animation: wiggle 0.5s ease-in-out;
}
.page {
display: none;
opacity: 0;
transition: opacity 0.3s ease;
}
.page.active {
display: block;
opacity: 1;
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #fffbeb;
}
::-webkit-scrollbar-thumb {
background: #fcd34d;
border-radius: 10px;
border: 2px solid #fffbeb;
}
::-webkit-scrollbar-thumb:hover {
background: #fbbf24;
}
/* Side Panel Styles */
.side-panel {
transform: translateX(-100%);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-panel.open {
transform: translateX(0);
}
.side-panel-overlay {
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.side-panel-overlay.open {
opacity: 1;
visibility: visible;
}
.menu-item {
transition: all 0.2s ease;
}
.menu-item:hover {
transform: translateX(8px);
background-color: #fef3c7;
}
.menu-item:active {
transform: translateX(4px);
}
/* Avatar upload hover effect */
.avatar-edit-overlay {
opacity: 0;
transition: opacity 0.2s ease;
}
.avatar-edit-container:hover .avatar-edit-overlay {
opacity: 1;
}
</style>
</head>
<body class="bg-amber-50 text-amber-900 min-h-screen pb-20 selection:bg-yellow-200">
<div id="sidePanelOverlay" class="side-panel-overlay fixed inset-0 bg-black/40 backdrop-blur-sm z-[60]"></div>
<div id="sidePanel" class="side-panel fixed top-0 left-0 h-full w-80 bg-white z-[70] shadow-2xl flex flex-col">
<div class="p-6 bg-gradient-to-br from-orange-400 to-amber-500 text-white">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-black" style="font-family: 'DynaPuff', sans-serif;">Menu</h2>
<button id="closeSidePanel" class="p-2 hover:bg-white/20 rounded-full transition-colors">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>
</button>
</div>
<div id="sidePanelUserInfo" class="flex items-center gap-3">
<img id="sidePanelAvatar" src="https://ui-avatars.com/api/?name=Guest&background=fde68a&color=92400e" class="w-14 h-14 rounded-full border-3 border-white/50 shadow-lg">
<div>
<div id="sidePanelName" class="font-bold text-lg">Guest</div>
<div id="sidePanelEmail" class="text-white/70 text-sm">Not logged in</div>
</div>
</div>
</div>
<nav class="flex-1 py-4 overflow-y-auto">
<div class="px-4 mb-2">
<span class="text-xs font-bold text-amber-400 uppercase tracking-wider">Navigation</span>
</div>
<button id="menuMyDashboard" class="menu-item w-full flex items-center gap-4 px-6 py-4 text-left text-amber-900 font-bold">
<div class="w-10 h-10 bg-orange-100 rounded-xl flex items-center justify-center">
<svg class="w-5 h-5 text-orange-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path></svg>
</div>
<div>
<div class="text-base">My Dashboard</div>
<div class="text-xs text-amber-400 font-medium">View your stats & charts</div>
</div>
</button>
<button id="menuProfile" class="menu-item w-full flex items-center gap-4 px-6 py-4 text-left text-amber-900 font-bold">
<div class="w-10 h-10 bg-blue-100 rounded-xl flex items-center justify-center">
<svg class="w-5 h-5 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
</div>
<div>
<div class="text-base">Profile</div>
<div class="text-xs text-amber-400 font-medium">Edit your information</div>
</div>
</button>
<button id="menuSettings" class="menu-item w-full flex items-center gap-4 px-6 py-4 text-left text-amber-900 font-bold">
<div class="w-10 h-10 bg-gray-100 rounded-xl flex items-center justify-center">
<svg class="w-5 h-5 text-gray-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg>
</div>
<div>
<div class="text-base">Settings</div>
<div class="text-xs text-amber-400 font-medium">App preferences</div>
</div>
</button>
<div class="my-4 mx-6 border-t border-amber-100"></div>
<div class="px-4 mb-2">
<span class="text-xs font-bold text-amber-400 uppercase tracking-wider">Quick Links</span>
</div>
<button id="menuTracker" class="menu-item w-full flex items-center gap-4 px-6 py-4 text-left text-amber-900 font-bold">
<div class="w-10 h-10 bg-amber-100 rounded-xl flex items-center justify-center text-xl">💩</div>
<div>
<div class="text-base">Tracker</div>
<div class="text-xs text-amber-400 font-medium">Log your poops</div>
</div>
</button>
<button id="menuLeaderboard" class="menu-item w-full flex items-center gap-4 px-6 py-4 text-left text-amber-900 font-bold">
<div class="w-10 h-10 bg-yellow-100 rounded-xl flex items-center justify-center text-xl">🏆</div>
<div>
<div class="text-base">Leaderboard</div>
<div class="text-xs text-amber-400 font-medium">Compare with others</div>
</div>
</button>
</nav>
<div class="p-4 border-t border-amber-100">
<button id="menuLogout" class="w-full flex items-center justify-center gap-2 py-3 bg-red-50 text-red-600 font-bold rounded-2xl hover:bg-red-100 transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path></svg>
<span>Sign Out</span>
</button>
</div>
</div>
<div class="fixed top-0 left-0 right-0 bg-white/90 backdrop-blur-md z-50 border-b-4 border-amber-100">
<div class="max-w-3xl mx-auto px-4 py-2 flex items-center justify-between relative">
<div class="flex items-center gap-3">
<div id="guestSection" class="flex items-center gap-2 cursor-pointer hover:opacity-80 transition-opacity">
<img id="guestAvatar" src="https://ui-avatars.com/api/?name=Guest&background=fde68a&color=92400e" alt="Guest" class="w-10 h-10 rounded-full border-2 border-amber-200">
<div class="flex flex-col">
<span id="guestName" class="text-xs font-bold text-amber-900">Guest</span>
<span class="text-[10px] text-amber-400">Not logged in</span>
</div>
</div>
<div id="userSection" class="hidden flex items-center gap-2">
<img id="userAvatar" src="" alt="Avatar" class="w-10 h-10 rounded-full border-2 border-amber-200 cursor-pointer hover:border-amber-400 transition-colors">
<div class="flex flex-col">
<span id="userName" class="text-xs font-bold text-amber-900"></span>
</div>
</div>
</div>
<div class="absolute left-1/2 transform -translate-x-1/2">
<h1 class="text-2xl font-bold text-orange-500" style="font-family: 'DynaPuff', sans-serif;">Poop Master</h1>
</div>
<div class="flex items-center gap-3">
<div id="notificationSection" class="relative hidden">
<button id="notificationBtn" class="relative p-2 rounded-full hover:bg-amber-50 transition-colors">
<svg class="w-5 h-5 text-amber-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path></svg>
<span id="notificationBadge" class="absolute -top-1 -right-1 w-5 h-5 bg-red-500 text-white text-[10px] font-bold rounded-full flex items-center justify-center animate-pulse hidden">0</span>
</button>
<div id="notificationDropdown" class="hidden absolute right-0 top-full mt-2 w-80 bg-white rounded-2xl shadow-2xl border-2 border-amber-100 overflow-hidden z-50">
<div class="p-3 bg-amber-50 border-b border-amber-100 flex items-center justify-between">
<span class="font-bold text-amber-900 text-sm">Notifications</span>
<button id="markAllRead" class="text-xs text-amber-600 hover:text-amber-800 font-medium">Mark all read</button>
</div>
<div id="notificationList" class="max-h-80 overflow-y-auto">
</div>
</div>
</div>
<div id="loginSection">
<button id="googleLoginBtn" class="flex items-center gap-3 text-gray-700 hover:text-gray-900 bg-white hover:bg-gray-100 px-4 py-2 rounded-2xl transition-colors text-sm font-semibold border border-gray-200 shadow-sm">
<svg class="w-4 h-4" viewBox="0 0 24 24"><path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/><path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/></svg>
<span>Sign in</span>
</button>
</div>
</div>
</div>
</div>
<div class="pt-16 pb-4">
<div class="max-w-md mx-auto px-6 text-center">
<nav class="inline-flex bg-white p-2 rounded-full border-2 border-amber-100 shadow-sm">
<button id="navTracker" class="px-8 py-3 rounded-full text-base font-bold transition-all tab-active">TRACKER</button>
<button id="navLeaderboard" class="px-8 py-3 rounded-full text-base font-bold transition-all text-amber-500 hover:text-amber-700 hover:bg-amber-50">LEADERBOARD</button>
</nav>
</div>
</div>
<div id="trackerPage" class="page active">
<div class="max-w-md mx-auto px-6 py-6">
<div class="text-center mb-8 relative flex flex-col items-center">
<div id="currentEmoji" class="text-9xl mb-4 drop-shadow-lg transition-transform duration-200">💩</div>
<div id="stageLabel" class="text-2xl font-black text-amber-900 mb-4">Type 4 - Normal</div>
<div class="tooltip-trigger inline-flex items-center justify-center gap-2 px-4 py-2 bg-orange-50 rounded-full text-orange-800 font-medium text-sm cursor-help hover:bg-orange-100 transition-colors">
<span class="text-xs">Bristol Stool Scale</span>
<svg class="w-4 h-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
<div class="tooltip absolute left-1/2 top-full mt-3 w-72 bg-white rounded-xl shadow-xl border border-gray-100 p-4 text-left z-20">
<h4 class="font-bold text-gray-900 text-sm mb-1">Bristol Stool Scale</h4>
<p class="text-xs text-gray-500 mb-2 leading-relaxed">
A diagnostic medical tool classifying human faeces into seven categories.
</p>
<div class="text-xs space-y-1 mb-3">
<div class="flex gap-2"><span class="font-bold text-orange-700">1-2</span> <span class="text-gray-500">Constipation</span></div>
<div class="flex gap-2"><span class="font-bold text-green-600">3-4</span> <span class="text-gray-500">Ideal / Normal</span></div>
<div class="flex gap-2"><span class="font-bold text-red-500">5-7</span> <span class="text-gray-500">Diarrhea / Urgency</span></div>
</div>
<a href="https://en.wikipedia.org/wiki/Bristol_stool_scale" target="_blank" class="text-xs text-orange-600 hover:text-orange-700 font-medium flex items-center gap-1">
Wikipedia Reference →
</a>
</div>
</div>
</div>
<div class="mb-10 px-2">
<input
type="range"
id="poopSlider"
min="1"
max="7"
value="4"
class="slider w-full h-4 bg-amber-100 rounded-full appearance-none cursor-pointer"
>
<div class="flex justify-between mt-3 text-xs font-bold text-amber-300">
<span>1</span><span>2</span><span>3</span><span>4</span><span>5</span><span>6</span><span>7</span>
</div>
</div>
<button
id="logBtn"
class="primary-btn w-full py-4 bg-orange-500 hover:bg-orange-600 text-white text-xl font-black rounded-3xl mb-12 flex items-center justify-center gap-3 border-4 border-orange-600/20"
>
<span id="logBtnText">LOG IT!</span>
<svg id="logBtnIcon" class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path></svg>
</button>
<div class="grid grid-cols-3 gap-4 mb-12">
<div class="text-center p-4 rounded-3xl bg-white border-b-4 border-amber-200">
<div id="todayCount" class="text-4xl font-black text-amber-500">0</div>
<div class="text-xs font-bold text-amber-300 uppercase tracking-wide mt-1">Today</div>
</div>
<div class="text-center p-4 rounded-3xl bg-white border-b-4 border-amber-200">
<div id="weekCount" class="text-4xl font-black text-amber-500">0</div>
<div class="text-xs font-bold text-amber-300 uppercase tracking-wide mt-1">Week</div>
</div>
<div class="text-center p-4 rounded-3xl bg-white border-b-4 border-amber-200">
<div id="monthCount" class="text-4xl font-black text-amber-500">0</div>
<div class="text-xs font-bold text-amber-300 uppercase tracking-wide mt-1">Month</div>
</div>
</div>
<div class="space-y-8">
<div class="bg-white rounded-[2rem] border-4 border-amber-100 p-6">
<div class="flex items-center justify-between mb-6">
<button id="prevMonth" class="p-2 text-amber-300 hover:text-orange-600 transition-colors font-black text-xl">←</button>
<h3 id="monthLabel" class="text-xl font-black text-amber-800">January 2025</h3>
<button id="nextMonth" class="p-2 text-amber-300 hover:text-orange-600 transition-colors font-black text-xl">→</button>
</div>
<div class="grid grid-cols-7 gap-2 mb-2 text-center text-[10px] font-bold text-amber-300 uppercase tracking-wider">
<div>S</div><div>M</div><div>T</div><div>W</div><div>T</div><div>F</div><div>S</div>
</div>
<div id="heatMap" class="grid grid-cols-7 gap-2"></div>
</div>
<div class="bg-white rounded-[2rem] border-4 border-amber-100 p-6 overflow-hidden">
<div class="flex items-center justify-between mb-4">
<button id="prevYear" class="p-2 text-amber-300 hover:text-orange-600 transition-colors font-black text-xl">←</button>
<h3 id="yearLabel" class="text-xl font-black text-amber-800">2025</h3>
<button id="nextYear" class="p-2 text-amber-300 hover:text-orange-600 transition-colors font-black text-xl">→</button>
</div>
<div class="flex justify-between text-[10px] font-bold text-amber-300 uppercase mb-2 px-1">
<span>Jan</span><span>Apr</span><span>Jul</span><span>Oct</span><span>Dec</span>
</div>
<div class="overflow-x-auto pb-2 scrollbar-hide">
<div id="yearlyHeatMapGrid" class="flex gap-[3px] min-w-max mx-auto"></div>
</div>
</div>
</div>
<div class="mt-12">
<h3 class="text-sm font-bold text-amber-900 uppercase tracking-wide mb-4 pl-1">Recent Activity</h3>
<div id="recentLogs" class="space-y-3"></div>
</div>
</div>
</div>
<div id="leaderboardPage" class="page">
<div class="max-w-md mx-auto px-6 py-6">
<div class="text-center mb-8">
<h2 class="text-4xl font-black text-amber-900 tracking-tight" style="font-family: 'DynaPuff', sans-serif; font-size: 2.125rem;">🏆 Leaderboard</h2>
<p class="text-amber-500 font-bold text-sm">Bowel Movement Final Boss</p>
</div>
<div class="flex justify-center gap-2 mb-8 bg-white p-2 rounded-2xl w-max mx-auto border-2 border-amber-100">
<button id="tabToday" class="leaderboard-tab px-4 py-1.5 rounded-xl text-sm font-bold transition-all tab-active">Today</button>
<button id="tabMonth" class="leaderboard-tab px-4 py-1.5 rounded-xl text-sm font-bold transition-all text-amber-400 hover:text-amber-700 hover:bg-amber-50">Month</button>
<button id="tabYear" class="leaderboard-tab px-4 py-1.5 rounded-xl text-sm font-bold transition-all text-amber-400 hover:text-amber-700 hover:bg-amber-50">Year</button>
</div>
<div id="leaderboardList" class="space-y-3"></div>
</div>
</div>
<div id="myDashboardPage" class="page">
<div class="max-w-md mx-auto px-6 py-6">
<div class="text-center mb-8">
<h2 class="text-4xl font-black text-amber-900 tracking-tight" style="font-family: 'DynaPuff', sans-serif; font-size: 2.125rem;">📊 My Dashboard</h2>
<p class="text-amber-500 font-bold text-sm">Your personal poop analytics</p>
</div>
<div class="grid grid-cols-2 gap-4 mb-8">
<div class="bg-white rounded-3xl p-6 border-4 border-amber-100 text-center">
<div id="dashMyTotalLogs" class="text-5xl font-black text-orange-500">0</div>
<div class="text-xs font-bold text-amber-400 uppercase mt-2">Total Logs</div>
</div>
<div class="bg-white rounded-3xl p-6 border-4 border-amber-100 text-center">
<div id="dashMyStreak" class="text-5xl font-black text-orange-500">0</div>
<div class="text-xs font-bold text-amber-400 uppercase mt-2">Day Streak 🔥</div>
</div>
</div>
<div class="bg-white rounded-[2rem] border-4 border-amber-100 p-6 mb-6">
<h3 class="text-lg font-black text-amber-800 mb-4">📈 Weekly Activity</h3>
<div style="height: 180px;">
<canvas id="myDashLineChart"></canvas>
</div>
</div>
<div class="bg-white rounded-[2rem] border-4 border-amber-100 p-6 mb-6">
<h3 class="text-lg font-black text-amber-800 mb-4">🥧 Poop Type Distribution</h3>
<div style="height: 200px;">
<canvas id="myDashPieChart"></canvas>
</div>
</div>
<div class="bg-white rounded-[2rem] border-4 border-amber-100 p-6">
<h3 class="text-lg font-black text-amber-800 mb-4">📋 Statistics</h3>
<div class="space-y-3">
<div class="flex justify-between items-center py-2 border-b border-amber-50">
<span class="text-amber-600 font-medium">Daily Average</span>
<span id="dashDailyAvg" class="font-black text-orange-500">0</span>
</div>
<div class="flex justify-between items-center py-2 border-b border-amber-50">
<span class="text-amber-600 font-medium">Most Common Type</span>
<span id="dashMostCommon" class="font-black text-orange-500">-</span>
</div>
<div class="flex justify-between items-center py-2 border-b border-amber-50">
<span class="text-amber-600 font-medium">Best Day</span>
<span id="dashBestDay" class="font-black text-orange-500">-</span>
</div>
<div class="flex justify-between items-center py-2">
<span class="text-amber-600 font-medium">Health Score</span>
<span id="dashHealthScore" class="font-black text-green-500">-</span>
</div>
</div>
</div>
</div>
</div>
<div id="profilePage" class="page">
<div class="max-w-md mx-auto px-6 py-6">
<div class="text-center mb-8">
<h2 class="text-4xl font-black text-amber-900 tracking-tight" style="font-family: 'DynaPuff', sans-serif; font-size: 2.125rem;">👤 Profile</h2>
<p class="text-amber-500 font-bold text-sm">Your personal information</p>
</div>
<div class="flex flex-col items-center mb-8">
<div class="relative avatar-edit-container cursor-pointer" id="profileAvatarContainer">
<img id="profileAvatar" src="https://ui-avatars.com/api/?name=Guest&background=fde68a&color=92400e" class="w-28 h-28 rounded-full border-4 border-amber-200 shadow-xl object-cover">
<div class="avatar-edit-overlay absolute inset-0 bg-black/50 rounded-full flex items-center justify-center">
<svg class="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 13a3 3 0 11-6 0 3 3 0 016 0z"></path></svg>
</div>
<div class="absolute -bottom-2 -right-2 bg-orange-500 text-white p-2 rounded-full shadow-lg">
<span class="text-xl">👑</span>
</div>
</div>
<input type="file" id="avatarFileInput" accept="image/*" class="hidden">
<div class="flex items-center gap-2 mt-4">
<h3 id="profileName" class="text-2xl font-black text-amber-900">Guest</h3>
<button id="editNameBtn" class="p-1 hover:bg-amber-100 rounded-full transition-colors">
<svg class="w-5 h-5 text-amber-400 hover:text-amber-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"></path></svg>
</button>
</div>
<p id="profileEmail" class="text-amber-400 font-medium">Not logged in</p>
<!-- Edit Profile Button - visible for all users -->
<button id="editProfileBtn" class="mt-4 px-6 py-2.5 bg-orange-500 hover:bg-orange-600 text-white font-bold rounded-2xl transition-colors flex items-center gap-2 shadow-lg shadow-orange-500/20">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"></path></svg>
Edit Profile
</button>
<div id="profilePrivacyBadge" class="hidden mt-3">
<span class="bg-purple-100 text-purple-700 px-4 py-1.5 rounded-full text-sm font-bold flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg>
Private Profile
</span>
</div>
</div>
<div class="space-y-4">
<div class="bg-white rounded-3xl border-4 border-amber-100 p-6">
<h4 class="text-sm font-bold text-amber-400 uppercase tracking-wide mb-4">Account Info</h4>
<div class="space-y-3">
<div class="flex justify-between items-center py-2 border-b border-amber-50">
<span class="text-amber-600 font-medium">Member Since</span>
<span id="profileJoinDate" class="font-bold text-amber-900">-</span>
</div>
<div class="flex justify-between items-center py-2 border-b border-amber-50">
<span class="text-amber-600 font-medium">Total Logs</span>
<span id="profileTotalLogs" class="font-bold text-amber-900">0</span>
</div>
<div class="flex justify-between items-center py-2">
<span class="text-amber-600 font-medium">Rank</span>
<span id="profileRank" class="font-bold text-orange-500">#-</span>
</div>
</div>
</div>
<div class="bg-white rounded-3xl border-4 border-amber-100 p-6">
<h4 class="text-sm font-bold text-amber-400 uppercase tracking-wide mb-4">Reactions Received</h4>
<div id="profileReactions" class="flex justify-center gap-4 text-2xl">
<span class="text-amber-300">No reactions yet</span>
</div>
</div>
<div class="bg-white rounded-3xl border-4 border-amber-100 p-6">
<h4 class="text-sm font-bold text-amber-400 uppercase tracking-wide mb-4">Achievements</h4>
<div id="profileAchievements" class="flex flex-wrap gap-2 justify-center">
<div class="bg-amber-50 px-4 py-2 rounded-full text-sm font-bold text-amber-600">🌟 First Log</div>
<div class="bg-orange-50 px-4 py-2 rounded-full text-sm font-bold text-orange-600">🔥 3-Day Streak</div>
<div class="bg-gray-100 px-4 py-2 rounded-full text-sm font-bold text-gray-400">🏆 Top 10</div>
</div>
</div>
</div>
</div>
</div>
<div id="settingsPage" class="page">
<div class="max-w-md mx-auto px-6 py-6">
<div class="text-center mb-8">
<h2 class="text-4xl font-black text-amber-900 tracking-tight" style="font-family: 'DynaPuff', sans-serif; font-size: 2.125rem;">⚙️ Settings</h2>
<p class="text-amber-500 font-bold text-sm">Customize your experience</p>
</div>
<div class="space-y-4">
<div class="bg-white rounded-3xl border-4 border-amber-100 p-6">
<h4 class="text-sm font-bold text-amber-400 uppercase tracking-wide mb-4">Notifications</h4>
<div class="space-y-4">
<div class="flex justify-between items-center">
<div>
<div class="font-bold text-amber-900">Push Notifications</div>
<div class="text-xs text-amber-400">Get reminded to log</div>
</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="settingPushNotif" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-orange-500"></div>
</label>
</div>
<div class="flex justify-between items-center">
<div>
<div class="font-bold text-amber-900">Reminder Alerts</div>
<div class="text-xs text-amber-400">When friends remind you</div>
</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="settingReminders" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-orange-500"></div>
</label>
</div>
</div>
</div>
<div class="bg-white rounded-3xl border-4 border-amber-100 p-6">
<h4 class="text-sm font-bold text-amber-400 uppercase tracking-wide mb-4">Privacy</h4>
<div class="space-y-4">
<div class="flex justify-between items-center">
<div>
<div class="font-bold text-amber-900 flex items-center gap-2">
Private Profile
<span class="bg-purple-100 text-purple-600 text-[10px] font-bold px-2 py-0.5 rounded-full">NEW</span>
</div>
<div class="text-xs text-amber-400">Hide from leaderboard & other users</div>
</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="settingPrivateProfile" class="sr-only peer">
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-purple-500"></div>
</label>
</div>
<div class="flex justify-between items-center">
<div>
<div class="font-bold text-amber-900">Show on Leaderboard</div>
<div class="text-xs text-amber-400">Appear in public rankings</div>
</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="settingLeaderboard" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-orange-500"></div>
</label>
</div>
<div class="flex justify-between items-center">
<div>
<div class="font-bold text-amber-900">Public Profile</div>
<div class="text-xs text-amber-400">Others can view your stats</div>
</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="settingPublicProfile" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-orange-500"></div>
</label>
</div>
</div>
</div>
<div class="bg-white rounded-3xl border-4 border-amber-100 p-6">
<h4 class="text-sm font-bold text-amber-400 uppercase tracking-wide mb-4">Data Management</h4>
<div class="space-y-3">
<button id="exportDataBtn" class="w-full py-3 bg-amber-100 text-amber-800 font-bold rounded-2xl hover:bg-amber-200 transition-colors flex items-center justify-center gap-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg>
Export My Data
</button>
<button id="clearDataBtn" class="w-full py-3 bg-red-50 text-red-600 font-bold rounded-2xl hover:bg-red-100 transition-colors flex items-center justify-center gap-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg>
Clear All Data
</button>
</div>
</div>
<div class="bg-white rounded-3xl border-4 border-amber-100 p-6">
<h4 class="text-sm font-bold text-amber-400 uppercase tracking-wide mb-4">About</h4>
<div class="text-center">
<div class="text-4xl mb-2">💩</div>
<div class="font-black text-amber-900 text-lg" style="font-family: 'DynaPuff', sans-serif;">Poop Master</div>
<div class="text-xs text-amber-400 font-medium">Version 1.0.0</div>
<div class="mt-4 text-xs text-amber-400">Made with 🚽 by @asterlite</div>
</div>
</div>
</div>
</div>
</div>
<div class="py-10 text-center border-t border-amber-100 mt-10">
<div class="flex justify-center gap-2 mb-6">
<button id="shareX" class="flex items-center justify-center bg-black text-white w-9 h-9 rounded-full hover:bg-gray-800 transition-colors">
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
</button>
<button id="shareInstagram" class="flex items-center justify-center bg-gradient-to-tr from-yellow-400 via-orange-500 to-purple-600 text-white w-9 h-9 rounded-full hover:opacity-90 transition-opacity">
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/></svg>
</button>
<button id="shareSMS" class="flex items-center justify-center bg-green-500 text-white w-9 h-9 rounded-full hover:bg-green-600 transition-colors">
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z"/></svg>
</button>
</div>
<div class="flex items-center justify-center gap-2 text-amber-400 text-sm font-bold">
<span>Made with 🚽 ©2026 @asterlite</span>
<a href="https://github.com/asterism3/Poop-Master" target="_blank" class="hover:text-gray-800 transition-colors">
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
</a>
</div>
</div>
<div id="userDashboardModal" class="fixed inset-0 bg-amber-900/40 backdrop-blur-sm z-50 hidden items-center justify-center overflow-y-auto py-10">
<div class="bg-white rounded-[2rem] p-8 max-w-lg w-full mx-4 shadow-2xl border-4 border-amber-100 relative my-auto">
<button id="closeDashboard" class="absolute top-6 right-6 p-2 rounded-full hover:bg-amber-100 text-amber-300 hover:text-amber-900 transition-colors">
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M6 18L18 6M6 6l12 12"></path></svg>
</button>
<div class="text-center mb-8">
<div class="relative inline-block">
<img id="dashboardAvatar" src="" alt="Avatar" class="w-24 h-24 rounded-full border-4 border-amber-50 shadow-lg">
<div class="absolute -bottom-2 -right-2 bg-white rounded-full p-2 shadow-md border border-amber-100">
<span class="text-2xl">👑</span>
</div>
</div>
<h3 id="dashboardName" class="text-3xl font-black text-amber-900 mt-4 tracking-tight"></h3>
<div id="dashboardStats" class="flex justify-center gap-4 mt-3 text-sm text-gray-500 font-bold">
<span class="bg-amber-50 px-4 py-1.5 rounded-xl border border-amber-100"><span id="dashTotalPoops" class="text-orange-600 font-black">0</span> Logs</span>
<span class="bg-orange-50 px-4 py-1.5 rounded-xl text-orange-700 border border-orange-100"><span id="dashStreak" class="font-black">0</span> Streak 🔥</span>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-8">
<div class="bg-white rounded-3xl p-4 border-2 border-amber-100 shadow-sm" style="height:125px;">
<canvas id="lineChart" height="120"></canvas>
</div>
<div class="bg-white rounded-3xl p-4 border-2 border-amber-100 shadow-sm" style="height:125px;">
<canvas id="pieChart" style="width:100%; height:100%; display:block;"></canvas>
</div>
</div>
<div class="text-center mb-8">
<h4 class="text-xs font-bold text-amber-300 uppercase tracking-wide mb-4">React</h4>
<div class="flex justify-center gap-3">
<button class="reaction-btn text-4xl p-2 hover:bg-amber-50 rounded-2xl transition-colors" data-reaction="💩">💩</button>
<button class="reaction-btn text-4xl p-2 hover:bg-amber-50 rounded-2xl transition-colors" data-reaction="🔥">🔥</button>
<button class="reaction-btn text-4xl p-2 hover:bg-amber-50 rounded-2xl transition-colors" data-reaction="💀">💀</button>
<button class="reaction-btn text-4xl p-2 hover:bg-amber-50 rounded-2xl transition-colors" data-reaction="💪">💪</button>
<button class="reaction-btn text-4xl p-2 hover:bg-amber-50 rounded-2xl transition-colors" data-reaction="🥗">🥗</button>
</div>
<div id="reactionCounts" class="flex justify-center gap-4 mt-3 text-xs text-amber-400 font-bold"></div>
</div>
<div class="border-t-2 border-amber-50 pt-6">
<h4 class="text-xs font-bold text-amber-300 uppercase tracking-wide mb-4">Comments</h4>
<div class="flex gap-2 mb-4">
<input id="commentInput" type="text" placeholder="Good gut bruh..." class="flex-1 px-4 py-3 rounded-2xl bg-amber-50 border-2 border-transparent focus:border-amber-300 focus:bg-white transition-all text-sm font-bold text-amber-900 placeholder-amber-300 outline-none">
<button id="postComment" class="px-6 py-3 bg-amber-200 text-amber-800 font-bold rounded-2xl hover:bg-amber-300 transition-colors text-sm shadow-sm">Post</button>
</div>
<div id="commentsList" class="space-y-3 max-h-48 overflow-y-auto pr-2"></div>
</div>
<div class="flex gap-3 mb-8">
<button id="remindBtn" class="flex-1 py-4 bg-gray-900 text-white text-base font-bold rounded-2xl hover:bg-gray-800 transition-all flex items-center justify-center gap-2 shadow-lg shadow-gray-900/20 active:scale-95">
<span>🔔</span> Remind
</button>
<button id="shareBtn" class="flex-1 py-4 bg-orange-500 text-white text-base font-bold rounded-2xl hover:bg-orange-600 transition-all flex items-center justify-center gap-2 shadow-lg shadow-orange-500/20 active:scale-95">
<span>📤</span> Share
</button>
</div>
</div>
</div>
<!-- Edit Profile Modal -->
<div id="editProfileModal" class="fixed inset-0 bg-amber-900/40 backdrop-blur-sm z-[80] hidden items-center justify-center">
<div class="bg-white rounded-3xl p-6 max-w-sm w-full mx-4 shadow-2xl border-4 border-amber-100">
<div class="flex items-center justify-between mb-6">
<h3 class="text-xl font-black text-amber-900">Edit Profile</h3>
<button id="closeEditProfile" class="p-2 hover:bg-amber-100 rounded-full transition-colors">
<svg class="w-6 h-6 text-amber-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>
</button>
</div>
<div class="space-y-4">
<!-- Avatar Preview & Options -->
<div class="flex flex-col items-center mb-4">
<img id="editAvatarPreview" src="" class="w-24 h-24 rounded-full border-4 border-amber-200 shadow-lg object-cover mb-4">
<div class="flex gap-2">
<button id="uploadAvatarBtn" class="px-4 py-2 bg-orange-100 text-orange-700 font-bold rounded-xl hover:bg-orange-200 transition-colors text-sm flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>
Upload
</button>
<button id="urlAvatarBtn" class="px-4 py-2 bg-amber-100 text-amber-700 font-bold rounded-xl hover:bg-amber-200 transition-colors text-sm flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"></path></svg>
URL
</button>
</div>
</div>
<!-- URL Input (hidden by default) -->
<div id="avatarUrlInputContainer" class="hidden">
<label class="block text-sm font-bold text-amber-700 mb-2">Image URL</label>
<input id="avatarUrlInput" type="url" placeholder="https://example.com/image.jpg" class="w-full px-4 py-3 rounded-xl bg-amber-50 border-2 border-amber-200 focus:border-orange-400 focus:bg-white transition-all text-sm font-bold text-amber-900 outline-none">
<button id="applyUrlBtn" class="mt-2 w-full py-2 bg-amber-200 text-amber-800 font-bold rounded-xl hover:bg-amber-300 transition-colors text-sm">Apply URL</button>
</div>
<!-- Name Input -->
<div>
<label class="block text-sm font-bold text-amber-700 mb-2">Display Name</label>
<input id="editNameInput" type="text" placeholder="Your name" class="w-full px-4 py-3 rounded-xl bg-amber-50 border-2 border-amber-200 focus:border-orange-400 focus:bg-white transition-all text-sm font-bold text-amber-900 outline-none">
</div>
<!-- Save Button -->
<button id="saveProfileBtn" class="w-full py-4 bg-orange-500 hover:bg-orange-600 text-white text-lg font-black rounded-2xl transition-colors mt-4 flex items-center justify-center gap-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
Save Changes
</button>
</div>
</div>
</div>
<div id="toast" class="fixed bottom-8 left-1/2 -translate-x-1/2 bg-gray-900 text-white px-8 py-4 rounded-2xl shadow-xl opacity-0 transition-all duration-300 pointer-events-none z-50 text-base font-bold flex items-center gap-2 transform translate-y-4 border-2 border-white/20">
<span>Logged successfully!</span> 💩
</div>
<div id="loginModal" class="fixed inset-0 bg-white/90 backdrop-blur-sm z-50 hidden items-center justify-center">
<div class="bg-white rounded-3xl p-8 max-w-sm mx-4 shadow-2xl border border-gray-100 w-full text-center">
<div class="w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center text-3xl mx-auto mb-4">💩</div>
<h3 class="text-xl font-bold text-gray-900 mb-2">Welcome Back</h3>
<p class="text-gray-500 text-sm mb-8">Sign in to sync your logs</p>
<button id="googleSignInModal" class="w-full flex items-center justify-center gap-3 bg-white border border-gray-200 hover:bg-gray-50 px-6 py-4 rounded-xl transition-all mb-3 text-base font-semibold shadow-sm">
<svg class="w-5 h-5" viewBox="0 0 24 24"><path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/><path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/></svg>
<span class="text-gray-700 font-semibold text-base">Continue with Google</span>
</button>
<button id="closeLoginModal" class="text-gray-400 hover:text-gray-600 text-sm font-medium">Cancel</button>
</div>
</div>
<script type="module" src="app.js"></script>
</body>
</html>