File size: 37,840 Bytes
1454c5b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mindful - Daily Tracker</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>
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f8fafc;
        }
        
        .gradient-bg {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .commandment-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .habit-tracker {
            transition: all 0.3s ease;
        }
        
        .habit-tracker:hover {
            background-color: #f1f5f9;
        }
        
        .progress-ring__circle {
            transition: stroke-dashoffset 0.35s;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .quote-container::before {
            content: '"';
            font-size: 4rem;
            position: absolute;
            top: -1rem;
            left: 0.5rem;
            color: rgba(255, 255, 255, 0.2);
        }
        
        .quote-container::after {
            content: '"';
            font-size: 4rem;
            position: absolute;
            bottom: -3rem;
            right: 0.5rem;
            color: rgba(255, 255, 255, 0.2);
        }
    </style>
</head>
<body class="min-h-screen">
    <!-- Header -->
    <header class="gradient-bg text-white shadow-lg">
        <div class="container mx-auto px-4 py-6">
            <div class="flex justify-between items-center">
                <div class="flex items-center space-x-2">
                    <i class="fas fa-brain text-3xl"></i>
                    <h1 class="text-2xl font-bold">Mindful</h1>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="bg-white text-indigo-700 px-4 py-2 rounded-full font-medium hover:bg-indigo-100 transition">
                        <i class="fas fa-user mr-2"></i>Profile
                    </button>
                    <button id="theme-toggle" class="p-2 rounded-full bg-white bg-opacity-20 hover:bg-opacity-30">
                        <i class="fas fa-moon"></i>
                    </button>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="container mx-auto px-4 py-8">
        <!-- Dashboard Overview -->
        <section class="mb-12">
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                <!-- Daily Progress -->
                <div class="bg-white rounded-xl shadow-md p-6 flex items-center">
                    <div class="relative w-20 h-20 mr-4">
                        <svg class="progress-ring w-20 h-20" viewBox="0 0 100 100">
                            <circle class="progress-ring__circle stroke-indigo-100" stroke-width="8" fill="transparent" r="40" cx="50" cy="50"/>
                            <circle class="progress-ring__circle stroke-indigo-600" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="175.84" fill="transparent" r="40" cx="50" cy="50"/>
                        </svg>
                        <div class="absolute inset-0 flex items-center justify-center">
                            <span class="text-2xl font-bold text-indigo-700">70%</span>
                        </div>
                    </div>
                    <div>
                        <h3 class="text-gray-500 font-medium">Today's Progress</h3>
                        <p class="text-2xl font-bold text-gray-800">7/10 tasks</p>
                        <p class="text-sm text-gray-500">Keep going!</p>
                    </div>
                </div>
                
                <!-- Current Streak -->
                <div class="bg-white rounded-xl shadow-md p-6 flex items-center">
                    <div class="bg-yellow-100 text-yellow-800 rounded-full w-16 h-16 flex items-center justify-center mr-4">
                        <i class="fas fa-fire text-3xl"></i>
                    </div>
                    <div>
                        <h3 class="text-gray-500 font-medium">Current Streak</h3>
                        <p class="text-2xl font-bold text-gray-800">14 days</p>
                        <p class="text-sm text-gray-500">Don't break the chain!</p>
                    </div>
                </div>
                
                <!-- Daily Quote -->
                <div class="bg-indigo-700 rounded-xl shadow-md p-6 text-white relative quote-container">
                    <p class="italic mb-2">"The secret of getting ahead is getting started."</p>
                    <p class="text-right text-indigo-200">— Mark Twain</p>
                </div>
            </div>
        </section>
        
        <!-- Daily Habits Tracker -->
        <section class="mb-12">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold text-gray-800">Daily Habits</h2>
                <button id="add-habit-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition flex items-center">
                    <i class="fas fa-plus mr-2"></i> Add Habit
                </button>
            </div>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="grid grid-cols-12 bg-gray-50 p-4 font-medium text-gray-500">
                    <div class="col-span-6">Habit</div>
                    <div class="col-span-2 text-center">Frequency</div>
                    <div class="col-span-2 text-center">Status</div>
                    <div class="col-span-2 text-center">Actions</div>
                </div>
                
                <div id="habits-list">
                    <!-- Habit items will be added here dynamically -->
                    <div class="grid grid-cols-12 p-4 border-b border-gray-100 habit-tracker">
                        <div class="col-span-6 flex items-center">
                            <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
                                <i class="fas fa-book text-blue-600"></i>
                            </div>
                            <span class="font-medium">Read 30 minutes</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center">
                            <span class="bg-gray-100 px-3 py-1 rounded-full text-sm">Daily</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center">
                            <span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm">Completed</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center space-x-2">
                            <button class="p-2 text-gray-400 hover:text-indigo-600">
                                <i class="fas fa-edit"></i>
                            </button>
                            <button class="p-2 text-gray-400 hover:text-red-600">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-12 p-4 border-b border-gray-100 habit-tracker">
                        <div class="col-span-6 flex items-center">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
                                <i class="fas fa-running text-purple-600"></i>
                            </div>
                            <span class="font-medium">Morning Exercise</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center">
                            <span class="bg-gray-100 px-3 py-1 rounded-full text-sm">Daily</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center">
                            <span class="bg-yellow-100 text-yellow-800 px-3 py-1 rounded-full text-sm">Pending</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center space-x-2">
                            <button class="p-2 text-gray-400 hover:text-indigo-600">
                                <i class="fas fa-edit"></i>
                            </button>
                            <button class="p-2 text-gray-400 hover:text-red-600">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-12 p-4 border-b border-gray-100 habit-tracker">
                        <div class="col-span-6 flex items-center">
                            <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-3">
                                <i class="fas fa-pencil-alt text-green-600"></i>
                            </div>
                            <span class="font-medium">Journaling</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center">
                            <span class="bg-gray-100 px-3 py-1 rounded-full text-sm">Daily</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center">
                            <span class="bg-red-100 text-red-800 px-3 py-1 rounded-full text-sm">Missed</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center space-x-2">
                            <button class="p-2 text-gray-400 hover:text-indigo-600">
                                <i class="fas fa-edit"></i>
                            </button>
                            <button class="p-2 text-gray-400 hover:text-red-600">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- Commandments Section -->
        <section class="mb-12">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold text-gray-800">Personal Commandments</h2>
                <button id="add-commandment-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition flex items-center">
                    <i class="fas fa-plus mr-2"></i> Add Commandment
                </button>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="bg-white rounded-xl shadow-md p-6 commandment-card transition duration-300">
                    <div class="flex items-start mb-4">
                        <div class="bg-indigo-100 text-indigo-800 rounded-full w-10 h-10 flex items-center justify-center mr-3">
                            <i class="fas fa-hand-holding-heart"></i>
                        </div>
                        <h3 class="text-lg font-bold text-gray-800">Be Kind</h3>
                    </div>
                    <p class="text-gray-600">Always treat others with kindness and compassion, even when it's difficult.</p>
                    <div class="mt-4 flex justify-between items-center">
                        <span class="text-sm text-indigo-600"><i class="fas fa-calendar-alt mr-1"></i> Added 2 weeks ago</span>
                        <div class="flex space-x-2">
                            <button class="text-gray-400 hover:text-indigo-600">
                                <i class="fas fa-edit"></i>
                            </button>
                            <button class="text-gray-400 hover:text-red-600">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md p-6 commandment-card transition duration-300">
                    <div class="flex items-start mb-4">
                        <div class="bg-green-100 text-green-800 rounded-full w-10 h-10 flex items-center justify-center mr-3">
                            <i class="fas fa-leaf"></i>
                        </div>
                        <h3 class="text-lg font-bold text-gray-800">Stay Present</h3>
                    </div>
                    <p class="text-gray-600">Focus on the current moment rather than dwelling on the past or worrying about the future.</p>
                    <div class="mt-4 flex justify-between items-center">
                        <span class="text-sm text-indigo-600"><i class="fas fa-calendar-alt mr-1"></i> Added 1 month ago</span>
                        <div class="flex space-x-2">
                            <button class="text-gray-400 hover:text-indigo-600">
                                <i class="fas fa-edit"></i>
                            </button>
                            <button class="text-gray-400 hover:text-red-600">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md p-6 commandment-card transition duration-300">
                    <div class="flex items-start mb-4">
                        <div class="bg-yellow-100 text-yellow-800 rounded-full w-10 h-10 flex items-center justify-center mr-3">
                            <i class="fas fa-brain"></i>
                        </div>
                        <h3 class="text-lg font-bold text-gray-800">Continuous Learning</h3>
                    </div>
                    <p class="text-gray-600">Dedicate time each day to learn something new and expand your knowledge.</p>
                    <div class="mt-4 flex justify-between items-center">
                        <span class="text-sm text-indigo-600"><i class="fas fa-calendar-alt mr-1"></i> Added 3 days ago</span>
                        <div class="flex space-x-2">
                            <button class="text-gray-400 hover:text-indigo-600">
                                <i class="fas fa-edit"></i>
                            </button>
                            <button class="text-gray-400 hover:text-red-600">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- Abilities Section -->
        <section>
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold text-gray-800">Developing Abilities</h2>
                <button id="add-ability-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition flex items-center">
                    <i class="fas fa-plus mr-2"></i> Add Ability
                </button>
            </div>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="grid grid-cols-12 bg-gray-50 p-4 font-medium text-gray-500">
                    <div class="col-span-4">Ability</div>
                    <div class="col-span-3">Current Level</div>
                    <div class="col-span-3">Progress</div>
                    <div class="col-span-2">Actions</div>
                </div>
                
                <div class="divide-y divide-gray-100">
                    <div class="grid grid-cols-12 p-4">
                        <div class="col-span-4 flex items-center">
                            <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
                                <i class="fas fa-language text-blue-600"></i>
                            </div>
                            <span class="font-medium">Spanish</span>
                        </div>
                        <div class="col-span-3 flex items-center">
                            <span class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm">Intermediate</span>
                        </div>
                        <div class="col-span-3 flex items-center">
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-blue-600 h-2.5 rounded-full" style="width: 45%"></div>
                            </div>
                            <span class="ml-2 text-sm text-gray-500">45%</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center space-x-2">
                            <button class="p-2 text-gray-400 hover:text-indigo-600">
                                <i class="fas fa-edit"></i>
                            </button>
                            <button class="p-2 text-gray-400 hover:text-red-600">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-12 p-4">
                        <div class="col-span-4 flex items-center">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
                                <i class="fas fa-guitar text-purple-600"></i>
                            </div>
                            <span class="font-medium">Guitar</span>
                        </div>
                        <div class="col-span-3 flex items-center">
                            <span class="bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-sm">Beginner</span>
                        </div>
                        <div class="col-span-3 flex items-center">
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-purple-600 h-2.5 rounded-full" style="width: 20%"></div>
                            </div>
                            <span class="ml-2 text-sm text-gray-500">20%</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center space-x-2">
                            <button class="p-2 text-gray-400 hover:text-indigo-600">
                                <i class="fas fa-edit"></i>
                            </button>
                            <button class="p-2 text-gray-400 hover:text-red-600">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-12 p-4">
                        <div class="col-span-4 flex items-center">
                            <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-3">
                                <i class="fas fa-code text-green-600"></i>
                            </div>
                            <span class="font-medium">JavaScript</span>
                        </div>
                        <div class="col-span-3 flex items-center">
                            <span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm">Advanced</span>
                        </div>
                        <div class="col-span-3 flex items-center">
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-green-600 h-2.5 rounded-full" style="width: 75%"></div>
                            </div>
                            <span class="ml-2 text-sm text-gray-500">75%</span>
                        </div>
                        <div class="col-span-2 flex items-center justify-center space-x-2">
                            <button class="p-2 text-gray-400 hover:text-indigo-600">
                                <i class="fas fa-edit"></i>
                            </button>
                            <button class="p-2 text-gray-400 hover:text-red-600">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>
    
    <!-- Add Habit Modal -->
    <div id="habit-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-xl shadow-xl w-full max-w-md p-6 fade-in">
            <div class="flex justify-between items-center mb-4">
                <h3 class="text-xl font-bold text-gray-800">Add New Habit</h3>
                <button id="close-habit-modal" class="text-gray-400 hover:text-gray-600">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            <form id="habit-form">
                <div class="mb-4">
                    <label for="habit-name" class="block text-gray-700 font-medium mb-2">Habit Name</label>
                    <input type="text" id="habit-name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="e.g. Morning Meditation">
                </div>
                <div class="mb-4">
                    <label for="habit-frequency" class="block text-gray-700 font-medium mb-2">Frequency</label>
                    <select id="habit-frequency" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
                        <option value="daily">Daily</option>
                        <option value="weekly">Weekly</option>
                        <option value="monthly">Monthly</option>
                    </select>
                </div>
                <div class="mb-4">
                    <label for="habit-icon" class="block text-gray-700 font-medium mb-2">Icon</label>
                    <div class="grid grid-cols-5 gap-2">
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-book text-gray-600"></i>
                        </div>
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-running text-gray-600"></i>
                        </div>
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-pencil-alt text-gray-600"></i>
                        </div>
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-water text-gray-600"></i>
                        </div>
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-bed text-gray-600"></i>
                        </div>
                    </div>
                </div>
                <div class="flex justify-end space-x-3">
                    <button type="button" id="cancel-habit" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button>
                    <button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Add Habit</button>
                </div>
            </form>
        </div>
    </div>
    
    <!-- Add Commandment Modal -->
    <div id="commandment-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-xl shadow-xl w-full max-w-md p-6 fade-in">
            <div class="flex justify-between items-center mb-4">
                <h3 class="text-xl font-bold text-gray-800">Add New Commandment</h3>
                <button id="close-commandment-modal" class="text-gray-400 hover:text-gray-600">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            <form id="commandment-form">
                <div class="mb-4">
                    <label for="commandment-title" class="block text-gray-700 font-medium mb-2">Title</label>
                    <input type="text" id="commandment-title" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="e.g. Be Patient">
                </div>
                <div class="mb-4">
                    <label for="commandment-description" class="block text-gray-700 font-medium mb-2">Description</label>
                    <textarea id="commandment-description" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Describe your commandment..."></textarea>
                </div>
                <div class="mb-4">
                    <label for="commandment-icon" class="block text-gray-700 font-medium mb-2">Icon</label>
                    <select id="commandment-icon" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
                        <option value="heart">Heart</option>
                        <option value="brain">Mind</option>
                        <option value="handshake">Kindness</option>
                        <option value="balance-scale">Balance</option>
                        <option value="clock">Patience</option>
                    </select>
                </div>
                <div class="flex justify-end space-x-3">
                    <button type="button" id="cancel-commandment" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button>
                    <button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Add Commandment</button>
                </div>
            </form>
        </div>
    </div>
    
    <!-- Add Ability Modal -->
    <div id="ability-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-xl shadow-xl w-full max-w-md p-6 fade-in">
            <div class="flex justify-between items-center mb-4">
                <h3 class="text-xl font-bold text-gray-800">Add New Ability</h3>
                <button id="close-ability-modal" class="text-gray-400 hover:text-gray-600">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            <form id="ability-form">
                <div class="mb-4">
                    <label for="ability-name" class="block text-gray-700 font-medium mb-2">Ability Name</label>
                    <input type="text" id="ability-name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="e.g. Playing Piano">
                </div>
                <div class="mb-4">
                    <label for="ability-level" class="block text-gray-700 font-medium mb-2">Current Level</label>
                    <select id="ability-level" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
                        <option value="beginner">Beginner</option>
                        <option value="intermediate">Intermediate</option>
                        <option value="advanced">Advanced</option>
                        <option value="expert">Expert</option>
                    </select>
                </div>
                <div class="mb-4">
                    <label for="ability-icon" class="block text-gray-700 font-medium mb-2">Icon</label>
                    <div class="grid grid-cols-5 gap-2">
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-language text-gray-600"></i>
                        </div>
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-guitar text-gray-600"></i>
                        </div>
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-code text-gray-600"></i>
                        </div>
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-paint-brush text-gray-600"></i>
                        </div>
                        <div class="flex items-center justify-center p-2 border rounded-lg cursor-pointer hover:bg-indigo-50">
                            <i class="fas fa-chess text-gray-600"></i>
                        </div>
                    </div>
                </div>
                <div class="flex justify-end space-x-3">
                    <button type="button" id="cancel-ability" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button>
                    <button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Add Ability</button>
                </div>
            </form>
        </div>
    </div>
    
    <!-- Footer -->
    <footer class="bg-gray-50 border-t border-gray-200 mt-12">
        <div class="container mx-auto px-4 py-8">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="flex items-center space-x-2 mb-4 md:mb-0">
                    <i class="fas fa-brain text-2xl text-indigo-600"></i>
                    <span class="text-xl font-bold">Mindful</span>
                </div>
                <div class="flex space-x-6">
                    <a href="#" class="text-gray-600 hover:text-indigo-600">About</a>
                    <a href="#" class="text-gray-600 hover:text-indigo-600">Features</a>
                    <a href="#" class="text-gray-600 hover:text-indigo-600">Contact</a>
                    <a href="#" class="text-gray-600 hover:text-indigo-600">Privacy</a>
                </div>
            </div>
            <div class="mt-8 text-center text-gray-500 text-sm">
                <p>© 2023 Mindful. All rights reserved.</p>
            </div>
        </div>
    </footer>
    
    <script>
        // DOM Elements
        const themeToggle = document.getElementById('theme-toggle');
        const addHabitBtn = document.getElementById('add-habit-btn');
        const habitModal = document.getElementById('habit-modal');
        const closeHabitModal = document.getElementById('close-habit-modal');
        const cancelHabit = document.getElementById('cancel-habit');
        const habitForm = document.getElementById('habit-form');
        
        const addCommandmentBtn = document.getElementById('add-commandment-btn');
        const commandmentModal = document.getElementById('commandment-modal');
        const closeCommandmentModal = document.getElementById('close-commandment-modal');
        const cancelCommandment = document.getElementById('cancel-commandment');
        const commandmentForm = document.getElementById('commandment-form');
        
        const addAbilityBtn = document.getElementById('add-ability-btn');
        const abilityModal = document.getElementById('ability-modal');
        const closeAbilityModal = document.getElementById('close-ability-modal');
        const cancelAbility = document.getElementById('cancel-ability');
        const abilityForm = document.getElementById('ability-form');
        
        // Theme Toggle
        themeToggle.addEventListener('click', () => {
            document.documentElement.classList.toggle('dark');
            const isDark = document.documentElement.classList.contains('dark');
            
            if (isDark) {
                themeToggle.innerHTML = '<i class="fas fa-sun"></i>';
                localStorage.setItem('theme', 'dark');
            } else {
                themeToggle.innerHTML = '<i class="fas fa-moon"></i>';
                localStorage.setItem('theme', 'light');
            }
        });
        
        // Check for saved theme preference
        if (localStorage.getItem('theme') === 'dark') {
            document.documentElement.classList.add('dark');
            themeToggle.innerHTML = '<i class="fas fa-sun"></i>';
        }
        
        // Habit Modal
        addHabitBtn.addEventListener('click', () => {
            habitModal.classList.remove('hidden');
        });
        
        closeHabitModal.addEventListener('click', () => {
            habitModal.classList.add('hidden');
        });
        
        cancelHabit.addEventListener('click', () => {
            habitModal.classList.add('hidden');
        });
        
        habitForm.addEventListener('submit', (e) => {
            e.preventDefault();
            // Here you would handle form submission (e.g., add to habits list)
            habitModal.classList.add('hidden');
            habitForm.reset();
            
            // Show success message
            alert('Habit added successfully!');
        });
        
        // Commandment Modal
        addCommandmentBtn.addEventListener('click', () => {
            commandmentModal.classList.remove('hidden');
        });
        
        closeCommandmentModal.addEventListener('click', () => {
            commandmentModal.classList.add('hidden');
        });
        
        cancelCommandment.addEventListener('click', () => {
            commandmentModal.classList.add('hidden');
        });
        
        commandmentForm.addEventListener('submit', (e) => {
            e.preventDefault();
            // Here you would handle form submission (e.g., add to commandments list)
            commandmentModal.classList.add('hidden');
            commandmentForm.reset();
            
            // Show success message
            alert('Commandment added successfully!');
        });
        
        // Ability Modal
        addAbilityBtn.addEventListener('click', () => {
            abilityModal.classList.remove('hidden');
        });
        
        closeAbilityModal.addEventListener('click', () => {
            abilityModal.classList.add('hidden');
        });
        
        cancelAbility.addEventListener('click', () => {
            abilityModal.classList.add('hidden');
        });
        
        abilityForm.addEventListener('submit', (e) => {
            e.preventDefault();
            // Here you would handle form submission (e.g., add to abilities list)
            abilityModal.classList.add('hidden');
            abilityForm.reset();
            
            // Show success message
            alert('Ability added successfully!');
        });
        
        // Close modals when clicking outside
        window.addEventListener('click', (e) => {
            if (e.target === habitModal) {
                habitModal.classList.add('hidden');
            }
            if (e.target === commandmentModal) {
                commandmentModal.classList.add('hidden');
            }
            if (e.target === abilityModal) {
                abilityModal.classList.add('hidden');
            }
        });
        
        // Update progress ring animation
        document.addEventListener('DOMContentLoaded', () => {
            const circle = document.querySelector('.progress-ring__circle');
            const radius = circle.r.baseVal.value;
            const circumference = radius * 2 * Math.PI;
            
            circle.style.strokeDasharray = circumference;
            circle.style.strokeDashoffset = circumference - (70 / 100) * circumference;
        });
    </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=Bbkbless1/blessbbk" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>