File size: 49,040 Bytes
2ab337b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d437e3a
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FamilyConnect | Discord for Family Bonding</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        }
        .family-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .emoji-picker {
            position: absolute;
            bottom: 50px;
            right: 0;
            display: none;
        }
        .active-tab {
            border-bottom: 3px solid #4f46e5;
            color: #4f46e5;
        }
        .conflict-level-low {
            background-color: #d9f99d;
        }
        .conflict-level-medium {
            background-color: #fef08a;
        }
        .conflict-level-high {
            background-color: #fecaca;
        }
    </style>
</head>
<body class="gradient-bg min-h-screen">
    <!-- Navigation -->
    <nav class="bg-white shadow-lg">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <i class="fas fa-heart text-indigo-600 text-2xl mr-2"></i>
                        <span class="text-xl font-bold text-indigo-600">FamilyConnect</span>
                    </div>
                    <div class="hidden sm:ml-6 sm:flex sm:space-x-8">
                        <a href="#" class="active-tab inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Dashboard</a>
                        <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Activities</a>
                        <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Habits</a>
                    </div>
                </div>
                <div class="hidden sm:ml-6 sm:flex sm:items-center">
                    <button class="bg-indigo-600 px-4 py-2 rounded-md text-white text-sm font-medium hover:bg-indigo-700">
                        Upgrade Plan
                    </button>
                    <div class="ml-3 relative">
                        <div>
                            <button type="button" class="bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" id="user-menu-button" aria-expanded="false" aria-haspopup="true">
                                <span class="sr-only">Open user menu</span>
                                <img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
                            </button>
                        </div>
                    </div>
                </div>
                <div class="-mr-2 flex items-center sm:hidden">
                    <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" aria-controls="mobile-menu" aria-expanded="false">
                        <span class="sr-only">Open main menu</span>
                        <i class="fas fa-bars"></i>
                    </button>
                </div>
            </div>
        </div>

        <!-- Mobile menu, show/hide based on menu state. -->
        <div class="sm:hidden hidden" id="mobile-menu">
            <div class="pt-2 pb-3 space-y-1">
                <a href="#" class="bg-indigo-50 border-indigo-500 text-indigo-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Dashboard</a>
                <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Activities</a>
                <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Habits</a>
            </div>
            <div class="pt-4 pb-3 border-t border-gray-200">
                <div class="flex items-center px-4">
                    <div class="flex-shrink-0">
                        <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
                    </div>
                    <div class="ml-3">
                        <div class="text-base font-medium text-gray-800">Tom Cook</div>
                        <div class="text-sm font-medium text-gray-500">tom@example.com</div>
                    </div>
                </div>
                <div class="mt-3 space-y-1">
                    <a href="#" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">Your Profile</a>
                    <a href="#" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">Settings</a>
                    <a href="#" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">Sign out</a>
                </div>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
        <!-- Family Overview -->
        <div class="mb-8">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-2xl font-bold text-gray-800">The Johnson Family</h2>
                <button class="bg-indigo-600 px-4 py-2 rounded-md text-white text-sm font-medium hover:bg-indigo-700 flex items-center">
                    <i class="fas fa-plus mr-2"></i> Add Family Member
                </button>
            </div>
            
            <!-- Family Members Cards -->
            <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
                <!-- Dad Card -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden family-card transition duration-300">
                    <div class="p-4">
                        <div class="flex items-center">
                            <img class="h-12 w-12 rounded-full object-cover" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Dad">
                            <div class="ml-4">
                                <h3 class="font-bold text-gray-800">Michael Johnson</h3>
                                <p class="text-gray-600 text-sm">Dad • 42 years</p>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="flex justify-between text-sm mb-2">
                                <span class="text-gray-500">Emotional State:</span>
                                <span class="font-medium text-yellow-600">Slightly Stressed</span>
                            </div>
                            <div class="flex justify-between text-sm mb-2">
                                <span class="text-gray-500">Habit Streak:</span>
                                <span class="font-medium text-green-600">7 days</span>
                            </div>
                            <div class="flex justify-between text-sm">
                                <span class="text-gray-500">Last Active:</span>
                                <span class="font-medium">2 hours ago</span>
                            </div>
                        </div>
                    </div>
                    <div class="bg-gray-50 px-4 py-3 flex justify-between">
                        <button class="text-indigo-600 text-sm font-medium hover:text-indigo-800">
                            <i class="fas fa-comment-dots mr-1"></i> Message
                        </button>
                        <button class="text-indigo-600 text-sm font-medium hover:text-indigo-800">
                            <i class="fas fa-heart mr-1"></i> Send Love
                        </button>
                    </div>
                </div>
                
                <!-- Mom Card -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden family-card transition duration-300">
                    <div class="p-4">
                        <div class="flex items-center">
                            <img class="h-12 w-12 rounded-full object-cover" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Mom">
                            <div class="ml-4">
                                <h3 class="font-bold text-gray-800">Sarah Johnson</h3>
                                <p class="text-gray-600 text-sm">Mom • 40 years</p>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="flex justify-between text-sm mb-2">
                                <span class="text-gray-500">Emotional State:</span>
                                <span class="font-medium text-green-600">Happy</span>
                            </div>
                            <div class="flex justify-between text-sm mb-2">
                                <span class="text-gray-500">Habit Streak:</span>
                                <span class="font-medium text-green-600">14 days</span>
                            </div>
                            <div class="flex justify-between text-sm">
                                <span class="text-gray-500">Last Active:</span>
                                <span class="font-medium">30 mins ago</span>
                            </div>
                        </div>
                    </div>
                    <div class="bg-gray-50 px-4 py-3 flex justify-between">
                        <button class="text-indigo-600 text-sm font-medium hover:text-indigo-800">
                            <i class="fas fa-comment-dots mr-1"></i> Message
                        </button>
                        <button class="text-indigo-600 text-sm font-medium hover:text-indigo-800">
                            <i class="fas fa-heart mr-1"></i> Send Love
                        </button>
                    </div>
                </div>
                
                <!-- Teen Card -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden family-card transition duration-300">
                    <div class="p-4">
                        <div class="flex items-center">
                            <img class="h-12 w-12 rounded-full object-cover" src="https://randomuser.me/api/portraits/women/22.jpg" alt="Teen">
                            <div class="ml-4">
                                <h3 class="font-bold text-gray-800">Emily Johnson</h3>
                                <p class="text-gray-600 text-sm">Daughter • 15 years</p>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="flex justify-between text-sm mb-2">
                                <span class="text-gray-500">Emotional State:</span>
                                <span class="font-medium text-blue-600">Neutral</span>
                            </div>
                            <div class="flex justify-between text-sm mb-2">
                                <span class="text-gray-500">Habit Streak:</span>
                                <span class="font-medium text-green-600">5 days</span>
                            </div>
                            <div class="flex justify-between text-sm">
                                <span class="text-gray-500">Last Active:</span>
                                <span class="font-medium">Online now</span>
                            </div>
                        </div>
                    </div>
                    <div class="bg-gray-50 px-4 py-3 flex justify-between">
                        <button class="text-indigo-600 text-sm font-medium hover:text-indigo-800">
                            <i class="fas fa-comment-dots mr-1"></i> Message
                        </button>
                        <button class="text-indigo-600 text-sm font-medium hover:text-indigo-800">
                            <i class="fas fa-heart mr-1"></i> Send Love
                        </button>
                    </div>
                </div>
                
                <!-- Child Card -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden family-card transition duration-300">
                    <div class="p-4">
                        <div class="flex items-center">
                            <img class="h-12 w-12 rounded-full object-cover" src="https://randomuser.me/api/portraits/men/12.jpg" alt="Child">
                            <div class="ml-4">
                                <h3 class="font-bold text-gray-800">Jacob Johnson</h3>
                                <p class="text-gray-600 text-sm">Son • 8 years</p>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="flex justify-between text-sm mb-2">
                                <span class="text-gray-500">Emotional State:</span>
                                <span class="font-medium text-red-600">Excited</span>
                            </div>
                            <div class="flex justify-between text-sm mb-2">
                                <span class="text-gray-500">Habit Streak:</span>
                                <span class="font-medium text-green-600">3 days</span>
                            </div>
                            <div class="flex justify-between text-sm">
                                <span class="text-gray-500">Last Active:</span>
                                <span class="font-medium">1 hour ago</span>
                            </div>
                        </div>
                    </div>
                    <div class="bg-gray-50 px-4 py-3 flex justify-between">
                        <button class="text-indigo-600 text-sm font-medium hover:text-indigo-800">
                            <i class="fas fa-comment-dots mr-1"></i> Message
                        </button>
                        <button class="text-indigo-600 text-sm font-medium hover:text-indigo-800">
                            <i class="fas fa-heart mr-1"></i> Send Love
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- Dashboard Sections -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
            <!-- Left Column -->
            <div class="lg:col-span-2 space-y-8">
                <!-- Family Emotional Health -->
                <div class="bg-white rounded-lg shadow-md p-6">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="text-lg font-bold text-gray-800">Family Emotional Health</h3>
                        <div class="flex space-x-2">
                            <button class="text-indigo-600 hover:text-indigo-800">
                                <i class="fas fa-sliders-h"></i>
                            </button>
                            <button class="text-indigo-600 hover:text-indigo-800">
                                <i class="fas fa-expand"></i>
                            </button>
                        </div>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-indigo-50 rounded-lg p-4">
                            <h4 class="text-sm font-medium text-indigo-800 mb-2">Positive Interactions</h4>
                            <div class="flex items-end">
                                <span class="text-3xl font-bold text-indigo-600">87%</span>
                                <span class="ml-2 text-green-600 flex items-center">
                                    <i class="fas fa-arrow-up mr-1"></i> 5%
                                </span>
                            </div>
                            <p class="text-xs text-gray-500 mt-2">Up from last week</p>
                        </div>
                        <div class="bg-pink-50 rounded-lg p-4">
                            <h4 class="text-sm font-medium text-pink-800 mb-2">Conflict Indicators</h4>
                            <div class="flex items-end">
                                <span class="text-3xl font-bold text-pink-600">13%</span>
                                <span class="ml-2 text-red-600 flex items-center">
                                    <i class="fas fa-arrow-down mr-1"></i> 2%
                                </span>
                            </div>
                            <p class="text-xs text-gray-500 mt-2">Down from last week</p>
                        </div>
                    </div>
                    <div class="mt-6">
                        <div class="flex items-center justify-between mb-2">
                            <h4 class="text-sm font-medium text-gray-700">Recent Emotional Expressions</h4>
                            <span class="text-xs text-indigo-600">View All</span>
                        </div>
                        <div class="space-y-3">
                            <div class="flex items-center p-2 hover:bg-gray-50 rounded-lg">
                                <div class="bg-green-100 p-2 rounded-full">
                                    <i class="fas fa-heart text-green-600"></i>
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm font-medium">Emily sent "I love you" to Mom</p>
                                    <p class="text-xs text-gray-500">2 hours ago</p>
                                </div>
                            </div>
                            <div class="flex items-center p-2 hover:bg-gray-50 rounded-lg">
                                <div class="bg-blue-100 p-2 rounded-full">
                                    <i class="fas fa-hands-helping text-blue-600"></i>
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm font-medium">Jacob requested "help" with homework from Dad</p>
                                    <p class="text-xs text-gray-500">4 hours ago</p>
                                </div>
                            </div>
                            <div class="flex items-center p-2 hover:bg-gray-50 rounded-lg">
                                <div class="bg-yellow-100 p-2 rounded-full">
                                    <i class="fas fa-handshake text-yellow-600"></i>
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm font-medium">Dad said "sorry" to Emily</p>
                                    <p class="text-xs text-gray-500">Yesterday</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Family Habit Tracker -->
                <div class="bg-white rounded-lg shadow-md p-6">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="text-lg font-bold text-gray-800">Family Habit Tracker</h3>
                        <button class="bg-indigo-600 px-3 py-1 rounded-md text-white text-sm font-medium hover:bg-indigo-700">
                            <i class="fas fa-plus mr-1"></i> New Challenge
                        </button>
                    </div>
                    <div class="mb-6">
                        <h4 class="text-sm font-medium text-gray-700 mb-2">Current Family Challenge</h4>
                        <div class="bg-gradient-to-r from-indigo-100 to-purple-100 rounded-lg p-4">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h5 class="font-bold text-indigo-800">Hydration Heroes</h5>
                                    <p class="text-sm text-gray-600">Everyone drinks 8 glasses of water daily</p>
                                </div>
                                <div class="text-right">
                                    <span class="text-xs font-medium bg-indigo-600 text-white px-2 py-1 rounded-full">3/4 members</span>
                                    <p class="text-xs text-gray-500 mt-1">2 days remaining</p>
                                </div>
                            </div>
                            <div class="mt-4">
                                <div class="flex items-center justify-between mb-2">
                                    <span class="text-xs font-medium">Family Progress</span>
                                    <span class="text-xs font-medium">75%</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-indigo-600 h-2 rounded-full" style="width: 75%"></div>
                                </div>
                            </div>
                            <div class="mt-4 grid grid-cols-4 gap-2">
                                <div class="text-center">
                                    <div class="h-10 w-10 mx-auto bg-green-100 rounded-full flex items-center justify-center">
                                        <i class="fas fa-check text-green-600"></i>
                                    </div>
                                    <p class="text-xs mt-1">Mom</p>
                                </div>
                                <div class="text-center">
                                    <div class="h-10 w-10 mx-auto bg-green-100 rounded-full flex items-center justify-center">
                                        <i class="fas fa-check text-green-600"></i>
                                    </div>
                                    <p class="text-xs mt-1">Dad</p>
                                </div>
                                <div class="text-center">
                                    <div class="h-10 w-10 mx-auto bg-green-100 rounded-full flex items-center justify-center">
                                        <i class="fas fa-check text-green-600"></i>
                                    </div>
                                    <p class="text-xs mt-1">Emily</p>
                                </div>
                                <div class="text-center">
                                    <div class="h-10 w-10 mx-auto bg-gray-100 rounded-full flex items-center justify-center">
                                        <i class="fas fa-times text-gray-400"></i>
                                    </div>
                                    <p class="text-xs mt-1">Jacob</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div>
                        <h4 class="text-sm font-medium text-gray-700 mb-2">Reward Unlocked!</h4>
                        <div class="bg-gradient-to-r from-green-100 to-teal-100 rounded-lg p-4">
                            <div class="flex items-center">
                                <div class="bg-green-500 text-white p-3 rounded-full">
                                    <i class="fas fa-trophy"></i>
                                </div>
                                <div class="ml-4">
                                    <h5 class="font-bold text-green-800">Family Movie Night</h5>
                                    <p class="text-sm text-gray-600">You've earned $25 towards your next family movie night!</p>
                                </div>
                            </div>
                            <div class="mt-4 flex justify-between">
                                <button class="text-green-600 text-sm font-medium hover:text-green-800">
                                    <i class="fas fa-share-alt mr-1"></i> Share
                                </button>
                                <button class="bg-green-600 px-3 py-1 rounded-md text-white text-sm font-medium hover:bg-green-700">
                                    <i class="fas fa-gift mr-1"></i> Redeem
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Conflict Resolution -->
                <div class="bg-white rounded-lg shadow-md p-6">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="text-lg font-bold text-gray-800">Conflict Resolution</h3>
                        <button class="text-indigo-600 hover:text-indigo-800">
                            <i class="fas fa-sliders-h"></i>
                        </button>
                    </div>
                    <div class="mb-6">
                        <div class="flex items-center justify-between mb-2">
                            <h4 class="text-sm font-medium text-gray-700">Recent Conflicts</h4>
                            <span class="text-xs text-indigo-600">View All</span>
                        </div>
                        <div class="space-y-3">
                            <div class="p-3 rounded-lg conflict-level-medium">
                                <div class="flex justify-between items-start">
                                    <div>
                                        <p class="font-medium">Emily vs. Dad</p>
                                        <p class="text-xs text-gray-600">About screen time limits</p>
                                    </div>
                                    <span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">Medium</span>
                                </div>
                                <div class="mt-2 flex items-center justify-between">
                                    <span class="text-xs text-gray-500">Detected 1 day ago</span>
                                    <button class="text-indigo-600 text-xs font-medium hover:text-indigo-800">
                                        Resolve Now <i class="fas fa-arrow-right ml-1"></i>
                                    </button>
                                </div>
                            </div>
                            <div class="p-3 rounded-lg conflict-level-low">
                                <div class="flex justify-between items-start">
                                    <div>
                                        <p class="font-medium">Jacob vs. Emily</p>
                                        <p class="text-xs text-gray-600">About sharing toys</p>
                                    </div>
                                    <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">Low</span>
                                </div>
                                <div class="mt-2 flex items-center justify-between">
                                    <span class="text-xs text-gray-500">Detected 3 days ago</span>
                                    <button class="text-indigo-600 text-xs font-medium hover:text-indigo-800">
                                        Resolve Now <i class="fas fa-arrow-right ml-1"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div>
                        <h4 class="text-sm font-medium text-gray-700 mb-2">AI Suggestion</h4>
                        <div class="bg-indigo-50 rounded-lg p-4">
                            <div class="flex items-start">
                                <div class="bg-indigo-100 p-2 rounded-full">
                                    <i class="fas fa-robot text-indigo-600"></i>
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-indigo-800">Family Communication Tip</p>
                                    <p class="text-sm text-gray-700 mt-1">I've noticed Dad has been using more directive language this week. Consider using more "I feel" statements to express needs without creating defensiveness.</p>
                                    <button class="mt-2 text-indigo-600 text-xs font-medium hover:text-indigo-800">
                                        Learn More <i class="fas fa-arrow-right ml-1"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Right Column -->
            <div class="space-y-8">
                <!-- Family Feed -->
                <div class="bg-white rounded-lg shadow-md p-6">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="text-lg font-bold text-gray-800">Family Feed</h3>
                        <button class="text-indigo-600 hover:text-indigo-800">
                            <i class="fas fa-sliders-h"></i>
                        </button>
                    </div>
                    <div class="mb-6 bg-indigo-50 rounded-lg p-4">
                        <div class="flex items-center justify-between mb-3">
                            <h4 class="font-medium text-indigo-800">Family Chat</h4>
                            <div class="flex items-center">
                                <span class="text-xs mr-2 text-gray-600">AI Assistant</span>
                                <label class="relative inline-flex items-center cursor-pointer">
                                    <input type="checkbox" value="" class="sr-only peer" checked>
                                    <div class="w-9 h-5 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-4 after:w-4 after:transition-all peer-checked:bg-indigo-600"></div>
                                </label>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <img class="h-10 w-10 rounded-full object-cover" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Mom">
                            <div class="ml-3 flex-1">
                                <div class="bg-white rounded-lg p-3 border border-gray-200">
                                    <textarea class="w-full bg-transparent focus:outline-none text-sm" placeholder="Message your family... (AI will help when needed)"></textarea>
                                </div>
                                <div class="mt-2 flex justify-between items-center">
                                    <div class="flex space-x-2">
                                        <button class="text-gray-500 hover:text-indigo-600">
                                            <i class="far fa-smile"></i>
                                        </button>
                                        <button class="text-gray-500 hover:text-indigo-600">
                                            <i class="fas fa-camera"></i>
                                        </button>
                                        <button class="text-gray-500 hover:text-indigo-600">
                                            <i class="fas fa-paperclip"></i>
                                        </button>
                                        <button class="text-gray-500 hover:text-indigo-600">
                                            <i class="fas fa-robot"></i>
                                        </button>
                                    </div>
                                    <button class="bg-indigo-600 px-4 py-2 rounded-md text-white text-sm font-medium hover:bg-indigo-700">
                                        Send
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="space-y-4">
                        <!-- AI Message -->
                        <div class="border-b border-gray-100 pb-4">
                            <div class="flex items-start">
                                <div class="bg-indigo-100 p-2 rounded-full">
                                    <i class="fas fa-robot text-indigo-600"></i>
                                </div>
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center">
                                        <span class="font-medium">Family Assistant</span>
                                        <span class="ml-2 text-xs text-gray-500">Just now</span>
                                    </div>
                                    <p class="text-sm mt-1">I noticed you mentioned basketball. Would you like me to suggest some family-friendly basketball drills? I can also check everyone's availability this weekend!</p>
                                    <div class="mt-2 flex items-center space-x-4">
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="far fa-thumbs-up mr-1"></i> Helpful
                                        </button>
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="far fa-comment mr-1"></i> Reply
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Post 1 -->
                        <div class="border-b border-gray-100 pb-4">
                            <div class="flex items-start">
                                <img class="h-10 w-10 rounded-full object-cover" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Dad">
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center">
                                        <span class="font-medium">Michael Johnson</span>
                                        <span class="ml-2 text-xs text-gray-500">2 hours ago</span>
                                    </div>
                                    <p class="text-sm mt-1">Just finished setting up the new basketball hoop in the backyard! Who's up for a game this weekend?</p>
                                    <div class="mt-2 flex items-center space-x-4">
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="far fa-heart mr-1"></i> 3
                                        </button>
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="far fa-comment mr-1"></i> 2
                                        </button>
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="fas fa-share mr-1"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Post 2 -->
                        <div class="border-b border-gray-100 pb-4">
                            <div class="flex items-start">
                                <img class="h-10 w-10 rounded-full object-cover" src="https://randomuser.me/api/portraits/women/22.jpg" alt="Emily">
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center">
                                        <span class="font-medium">Emily Johnson</span>
                                        <span class="ml-2 text-xs text-gray-500">5 hours ago</span>
                                    </div>
                                    <p class="text-sm mt-1">Completed my 5-day water challenge! 🎉 So proud of our family for sticking to healthy habits together.</p>
                                    <div class="mt-2 flex items-center space-x-4">
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="far fa-heart mr-1"></i> 5
                                        </button>
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="far fa-comment mr-1"></i> 1
                                        </button>
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="fas fa-share mr-1"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Post 3 -->
                        <div class="pb-4">
                            <div class="flex items-start">
                                <img class="h-10 w-10 rounded-full object-cover" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Mom">
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center">
                                        <span class="font-medium">Sarah Johnson</span>
                                        <span class="ml-2 text-xs text-gray-500">Yesterday</span>
                                    </div>
                                    <p class="text-sm mt-1">Family, I just wanted to say how much I appreciate all of you. Even when we have our disagreements, I know we always come together as a team in the end. Love you all! ❤️</p>
                                    <div class="mt-2 flex items-center space-x-4">
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="far fa-heart mr-1"></i> 8
                                        </button>
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="far fa-comment mr-1"></i> 4
                                        </button>
                                        <button class="flex items-center text-gray-500 hover:text-indigo-600 text-xs">
                                            <i class="fas fa-share mr-1"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Quick Actions -->
                <div class="bg-white rounded-lg shadow-md p-6">
                    <h3 class="text-lg font-bold text-gray-800 mb-4">Quick Actions</h3>
                    <div class="grid grid-cols-2 gap-3">
                        <button class="bg-indigo-50 rounded-lg p-3 flex flex-col items-center hover:bg-indigo-100">
                            <div class="bg-indigo-100 p-3 rounded-full text-indigo-600 mb-2">
                                <i class="fas fa-heart"></i>
                            </div>
                            <span class="text-xs font-medium">Send Love</span>
                        </button>
                        <button class="bg-green-50 rounded-lg p-3 flex flex-col items-center hover:bg-green-100">
                            <div class="bg-green-100 p-3 rounded-full text-green-600 mb-2">
                                <i class="fas fa-trophy"></i>
                            </div>
                            <span class="text-xs font-medium">New Challenge</span>
                        </button>
                        <button class="bg-blue-50 rounded-lg p-3 flex flex-col items-center hover:bg-blue-100">
                            <div class="bg-blue-100 p-3 rounded-full text-blue-600 mb-2">
                                <i class="fas fa-calendar-check"></i>
                            </div>
                            <span class="text-xs font-medium">Plan Activity</span>
                        </button>
                        <button class="bg-purple-50 rounded-lg p-3 flex flex-col items-center hover:bg-purple-100">
                            <div class="bg-purple-100 p-3 rounded-full text-purple-600 mb-2">
                                <i class="fas fa-handshake"></i>
                            </div>
                            <span class="text-xs font-medium">Resolve Conflict</span>
                        </button>
                        <button class="bg-yellow-50 rounded-lg p-3 flex flex-col items-center hover:bg-yellow-100">
                            <div class="bg-yellow-100 p-3 rounded-full text-yellow-600 mb-2">
                                <i class="fas fa-gift"></i>
                            </div>
                            <span class="text-xs font-medium">Send Reward</span>
                        </button>
                        <button class="bg-pink-50 rounded-lg p-3 flex flex-col items-center hover:bg-pink-100">
                            <div class="bg-pink-100 p-3 rounded-full text-pink-600 mb-2">
                                <i class="fas fa-robot"></i>
                            </div>
                            <span class="text-xs font-medium">AI Assistant</span>
                        </button>
                    </div>
                </div>
                
                <!-- Family Calendar -->
                <div class="bg-white rounded-lg shadow-md p-6">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="text-lg font-bold text-gray-800">Family Calendar</h3>
                        <button class="text-indigo-600 hover:text-indigo-800">
                            <i class="fas fa-plus"></i>
                        </button>
                    </div>
                    <div class="space-y-3">
                        <div class="flex items-start">
                            <div class="bg-indigo-100 p-2 rounded-lg">
                                <p class="text-xs font-bold text-indigo-800">TODAY</p>
                                <p class="text-xl font-bold text-indigo-800">15</p>
                            </div>
                            <div class="ml-3">
                                <p class="text-sm font-medium">Family Movie Night</p>
                                <p class="text-xs text-gray-500">7:00 PM • Living Room</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="bg-gray-100 p-2 rounded-lg">
                                <p class="text-xs font-bold text-gray-800">THU</p>
                                <p class="text-xl font-bold text-gray-800">16</p>
                            </div>
                            <div class="ml-3">
                                <p class="text-sm font-medium">Parent-Teacher Conference</p>
                                <p class="text-xs text-gray-500">3:30 PM • Emily's School</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="bg-gray-100 p-2 rounded-lg">
                                <p class="text-xs font-bold text-gray-800">SAT</p>
                                <p class="text-xl font-bold text-gray-800">18</p>
                            </div>
                            <div class="ml-3">
                                <p class="text-sm font-medium">Jacob's Soccer Game</p>
                                <p class="text-xs text-gray-500">10:00 AM • Community Park</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Mobile Bottom Navigation -->
    <div class="sm:hidden fixed bottom-0 left-0 right-0 bg-white shadow-lg">
        <div class="flex justify-around">
            <a href="#" class="flex flex-col items-center justify-center p-3 text-indigo-600">
                <i class="fas fa-home"></i>
                <span class="text-xs mt-1">Home</span>
            </a>
            <a href="#" class="flex flex-col items-center justify-center p-3 text-gray-500">
                <i class="fas fa-heart"></i>
                <span class="text-xs mt-1">Bonding</span>
            </a>
            <a href="#" class="flex flex-col items-center justify-center p-3 text-gray-500">
                <i class="fas fa-trophy"></i>
                <span class="text-xs mt-1">Habits</span>
            </a>
            <a href="#" class="flex flex-col items-center justify-center p-3 text-gray-500">
                <i class="fas fa-users"></i>
                <span class="text-xs mt-1">Family</span>
            </a>
        </div>
    </div>

    <script>
        // Mobile menu toggle
        document.addEventListener('DOMContentLoaded', function() {
            const mobileMenuButton = document.querySelector('[aria-controls="mobile-menu"]');
            const mobileMenu = document.getElementById('mobile-menu');
            
            mobileMenuButton.addEventListener('click', function() {
                const expanded = this.getAttribute('aria-expanded') === 'true';
                this.setAttribute('aria-expanded', !expanded);
                mobileMenu.classList.toggle('hidden');
            });
            
            // Simulate some data updates
            setInterval(() => {
                const waterChallenge = document.querySelector('.from-indigo-100');
                if (waterChallenge) {
                    const progress = waterChallenge.querySelector('.bg-indigo-600');
                    const currentWidth = parseInt(progress.style.width) || 75;
                    const newWidth = currentWidth === 100 ? 75 : currentWidth + 5;
                    progress.style.width = `${newWidth}%`;
                    
                    const progressText = waterChallenge.querySelector('span:nth-child(2)');
                    progressText.textContent = `${newWidth}%`;
                }
            }, 3000);
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=seunmanuel/https-huggingface-co-spaces-seunmanuel" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>