-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·2937 lines (2653 loc) · 215 KB
/
index.html
File metadata and controls
executable file
·2937 lines (2653 loc) · 215 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<title>ChaosPrep | Ultimate Tracker for JEE, NEET & Competitive Exams</title>
<meta name="description"
content="Maximize your scores in JEE, NEET, and other competitive exams with ChaosPrep. Track tasks, analyze mock tests, and conquer your syllabus with the ultimate study planner.">
<meta name="keywords"
content="JEE tracker, NEET study planner, competitive exam tracker, CUET planner, UPSC study tracker, mock test analyzer, exam preparation, study tracker, ChaosPrep, sval.tech">
<meta name="author" content="sval.tech">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://sval.tech/chaos/">
<meta property="og:type" content="website">
<meta property="og:url" content="https://sval.tech/chaos/">
<meta property="og:title" content="ChaosPrep | Ultimate Tracker for JEE, NEET & Competitive Exams">
<meta property="og:description"
content="Track daily tasks, mock test scores, and syllabus progress. The all-in-one preparation planner for JEE, NEET, and competitive exam aspirants.">
<meta property="og:image" content="https://sval.tech/chaos/og-image.png">
<meta property="og:site_name" content="ChaosPrep">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://sval.tech/chaos/">
<meta name="twitter:title" content="ChaosPrep | Ultimate Tracker for JEE, NEET & Competitive Exams">
<meta name="twitter:description"
content="Track daily tasks, mock test scores, and syllabus progress. The all-in-one preparation planner for JEE, NEET, and competitive exam aspirants.">
<meta name="twitter:image" content="https://sval.tech/chaos/og-image.png">
<meta name="theme-color" content="#7c3aed">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="ChaosPrep">
<link rel="manifest" href="manifest.json">
<link rel="icon" href="favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://www.gstatic.com" crossorigin>
<!-- Preload critical local CSS -->
<link rel="preload" href="styles.css" as="style">
<link rel="stylesheet" crossorigin href="styles.css">
<!-- Non-blocking Google Fonts (Eliminates Render Blocking) -->
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" as="style">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet" media="print" onload="this.media='all'">
<noscript>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
</noscript>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "ChaosPrep",
"operatingSystem": "Web, Android, iOS",
"applicationCategory": "EducationalApplication",
"url": "https://sval.tech/chaos/",
"author": {
"@type": "Organization",
"name": "sval.tech",
"url": "https://sval.tech/"
},
"description": "An advanced exam tracker and study planner designed for JEE, NEET, and other competitive exam aspirants to track tasks, mock tests, and syllabus progress.",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "INR"
}
}
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TCK0S6VC58"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-TCK0S6VC58');
</script>
<script defer src="https://unpkg.com/lucide@latest"></script>
<script defer src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.6.0/dist/confetti.browser.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/sortablejs@latest/Sortable.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script type="module" crossorigin src="script.js"></script>
<link rel="stylesheet" crossorigin href="styles.css">
</head>
<body
class="h-screen flex flex-col md:flex-row overflow-hidden text-zinc-800 bg-zinc-50 dark:bg-[#09090b] dark:text-zinc-100 transition-colors duration-500 selection:bg-brand-500 selection:text-white">
<div id="app-background" class="fixed inset-0 z-[-1] pointer-events-none">
<div
class="absolute top-[-10%] right-[-5%] w-[500px] h-[500px] bg-brand-500/10 dark:bg-brand-500/5 blur-[120px] rounded-full">
</div>
</div>
<!-- Replace the existing <div id="login-screen"> ... </div> entirely with this block -->
<div id="login-screen" class="fixed inset-0 z-[70] bg-[#050505] text-white transition-opacity duration-700 font-sans overflow-hidden">
<style>
@keyframes revealUp {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0); }
}
.animate-reveal { animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.bento-card {
background: rgba(14, 14, 17, 0.7);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.05);
transition: all 0.3s ease;
}
.bento-card:hover {
border-color: rgba(255, 255, 255, 0.15);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.bg-grid-pattern {
background-size: 40px 40px;
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
</style>
<!-- Subtle Technical Background -->
<div class="absolute inset-0 pointer-events-none z-0 bg-[#050505] bg-grid-pattern">
<div class="absolute top-[-20%] left-[-10%] w-[60vw] h-[60vw] rounded-full bg-brand-600/10 blur-[120px]"></div>
<div class="absolute bottom-[-20%] right-[-10%] w-[50vw] h-[50vw] rounded-full bg-blue-600/5 blur-[120px]"></div>
</div>
<div class="absolute inset-0 w-full h-full overflow-y-auto custom-scrollbar z-10 scroll-smooth">
<!-- Minimalist Nav -->
<nav class="w-full z-50 border-b border-white/5 bg-[#050505]/80 backdrop-blur-xl sticky top-0">
<div class="max-w-7xl mx-auto px-4 md:px-8 py-4 flex items-center justify-between">
<div class="flex items-center gap-3">
<img src="logo.png" alt="ChaosPrep Logo" class="w-8 h-8 rounded-lg object-contain">
<span class="text-xl font-black tracking-tight text-white">ChaosPrep</span>
</div>
<div class="flex items-center gap-6">
<a href="https://discord.gg/mKXPpSY6Dz" target="_blank" class="hidden md:flex items-center gap-2 text-xs font-bold text-zinc-400 hover:text-white transition-colors">
<i data-lucide="message-square" class="w-4 h-4"></i> Community
</a>
<button onclick="signInWithGoogle()" class="text-xs font-bold bg-white text-black px-5 py-2.5 rounded-lg hover:bg-zinc-200 active:scale-95 transition-all flex items-center gap-2">
Log In
</button>
</div>
</div>
</nav>
<div class="w-full max-w-7xl mx-auto px-4 md:px-8 pt-16 pb-24 flex flex-col items-center">
<!-- Hero Section -->
<div class="flex flex-col items-center text-center max-w-4xl relative z-20 mb-20">
<div class="flex flex-wrap items-center justify-center gap-3 mb-8 opacity-0 animate-reveal">
<div class="px-3 py-1.5 rounded-md bg-zinc-900 border border-zinc-800 text-[10px] font-bold text-zinc-300 uppercase tracking-widest">
Built for JEE & NEET
</div>
<div class="px-3 py-1.5 rounded-md bg-brand-500/10 border border-brand-500/20 text-[10px] font-bold text-brand-400 uppercase tracking-widest flex items-center gap-1.5">
<span class="w-1.5 h-1.5 rounded-full bg-brand-500"></span>
<span id="live-student-count" class="text-white">--</span> Aspirants Tracking
</div>
</div>
<h1 class="text-5xl md:text-7xl lg:text-[6.5rem] font-black tracking-tighter text-center leading-[1.05] mb-6 text-white opacity-0 animate-reveal delay-100 drop-shadow-2xl">
Master the <br />
<span class="text-transparent bg-clip-text bg-gradient-to-r from-zinc-100 via-zinc-400 to-zinc-500">
chaos.
</span>
</h1>
<p class="text-base md:text-xl text-zinc-400 text-center max-w-2xl mb-10 font-medium leading-relaxed opacity-0 animate-reveal delay-200">
The definitive operating system for serious competitive exam aspirants. Micro-manage your syllabus, extract data from your mistakes, and clock 10-hour days consistently.
</p>
<div class="opacity-0 animate-reveal delay-300 flex flex-col sm:flex-row items-center gap-4 mb-8">
<button onclick="signInWithGoogle()" class="w-full sm:w-auto rounded-xl bg-white hover:bg-zinc-100 text-black px-8 py-4 flex items-center justify-center gap-3 transition-all active:scale-95 font-bold text-sm shadow-[0_0_40px_-10px_rgba(255,255,255,0.2)]">
<img src="https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg" class="w-5 h-5 shrink-0" alt="Google">
Start Tracking Now
</button>
<a href="#features" class="w-full sm:w-auto rounded-xl bg-zinc-900 border border-zinc-800 hover:bg-zinc-800 text-white px-8 py-4 flex items-center justify-center gap-2 transition-all active:scale-95 font-bold text-sm">
Explore Features <i data-lucide="arrow-down" class="w-4 h-4 text-zinc-400"></i>
</a>
</div>
<!-- The "No BS" Guarantee -->
<div class="opacity-0 animate-reveal delay-400 bg-zinc-900/50 border border-zinc-800/80 rounded-2xl p-4 flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-6 backdrop-blur-sm">
<div class="flex items-center gap-2 text-xs font-black text-emerald-400 uppercase tracking-widest">
<i data-lucide="check-circle-2" class="w-4 h-4"></i> 100% Free Forever
</div>
<div class="hidden sm:block w-1 h-1 rounded-full bg-zinc-700"></div>
<div class="flex items-center gap-2 text-xs font-black text-rose-400 uppercase tracking-widest">
<i data-lucide="x-circle" class="w-4 h-4"></i> No Ads
</div>
<div class="hidden sm:block w-1 h-1 rounded-full bg-zinc-700"></div>
<div class="flex items-center gap-2 text-xs font-black text-blue-400 uppercase tracking-widest">
<i data-lucide="shield" class="w-4 h-4"></i> No Paywalls
</div>
</div>
<!-- AlphaJEE Partnership Badge -->
<div class="mt-12 opacity-0 animate-reveal delay-500 flex flex-col items-center gap-3">
<span class="text-[10px] font-black uppercase tracking-[0.2em] text-zinc-600">Official Partner</span>
<a href="https://alphajee.online" target="_blank" rel="noopener noreferrer" class="flex items-center gap-2 group/brand transition-all duration-300 hover:scale-105 bg-white/5 border border-white/10 px-5 py-2.5 rounded-xl hover:bg-white/10 backdrop-blur-sm shadow-sm">
<div class="w-6 h-6 flex items-center justify-center overflow-hidden bg-white rounded p-1">
<img class="w-full h-full object-contain filter grayscale opacity-70 group-hover/brand:grayscale-0 group-hover/brand:opacity-100 transition-all duration-300" alt="AlphaJEE" src="https://jtestify.alphajee.online/alphajee.png">
</div>
<span class="text-sm font-black text-zinc-400 group-hover/brand:text-blue-400 transition-colors tracking-tight">AlphaJEE</span>
</a>
</div>
</div>
<!-- Bento OS Grid -->
<div id="features" class="w-full grid grid-cols-1 md:grid-cols-12 gap-4 md:gap-6 opacity-0 animate-reveal delay-500 z-20">
<!-- 1. Syllabus Tracker (Spans 8 cols) -->
<div class="bento-card md:col-span-8 rounded-3xl p-6 md:p-10 flex flex-col md:flex-row justify-between items-center gap-8 overflow-hidden relative">
<div class="relative z-10 flex-1">
<div class="flex items-center gap-2 mb-4 text-emerald-400">
<i data-lucide="map" class="w-5 h-5"></i>
<span class="text-xs font-bold uppercase tracking-widest">Syllabus Matrix</span>
</div>
<h3 class="text-2xl font-black text-white mb-2">Track to the sub-topic.</h3>
<p class="text-zinc-400 text-sm leading-relaxed mb-6">Don't just read chapters. Track completion states, log revision counts, and explicitly mark when PYQs are done across Physics, Chemistry, Maths, and Biology.</p>
<div class="space-y-2 w-full max-w-sm">
<div class="flex items-center justify-between p-3 bg-[#09090b] border border-zinc-800 rounded-xl shadow-md">
<div class="flex items-center gap-2">
<span class="w-2 h-2 rounded-full bg-emerald-500"></span>
<span class="text-xs font-bold text-zinc-300">Rotational Motion</span>
</div>
<div class="flex gap-2">
<span class="text-[10px] font-bold bg-zinc-800 text-zinc-400 px-2 py-1 rounded">R3</span>
<span class="text-[10px] font-bold bg-emerald-500/20 text-emerald-400 px-2 py-1 rounded">PYQs ✓</span>
</div>
</div>
</div>
</div>
<!-- Prominent Stat UI -->
<div class="bg-[#09090b] border border-zinc-800 rounded-3xl p-6 md:p-8 w-full md:w-auto md:min-w-[280px] shrink-0 relative z-10 shadow-2xl flex flex-col items-center justify-center">
<div class="text-[10px] font-bold text-zinc-500 uppercase tracking-widest mb-2 w-full text-left">Physics Covered</div>
<div class="flex items-baseline gap-1 w-full text-left mb-5">
<span class="text-7xl font-black text-white tracking-tighter">82</span>
<span class="text-3xl font-black text-emerald-500">%</span>
</div>
<div class="w-full h-2 bg-zinc-900 rounded-full overflow-hidden flex">
<div class="bg-brand-500 w-[45%]"></div>
<div class="bg-emerald-500 w-[37%]"></div>
</div>
</div>
</div>
<!-- 2. Timer (Spans 4 cols) -->
<div class="bento-card md:col-span-4 rounded-3xl p-6 md:p-10 flex flex-col justify-between">
<div class="mb-8">
<div class="flex items-center gap-2 mb-4 text-brand-400">
<i data-lucide="timer" class="w-5 h-5"></i>
<span class="text-xs font-bold uppercase tracking-widest">Deep Work</span>
</div>
<h3 class="text-2xl font-black text-white mb-2">Clock your hours.</h3>
<p class="text-zinc-400 text-sm leading-relaxed">Built-in flow timer with PiP support. Track exact focus hours daily.</p>
</div>
<!-- Prominent Stat UI -->
<div class="bg-[#09090b] border border-zinc-800 rounded-3xl p-6 flex flex-col items-center justify-center relative overflow-hidden shadow-2xl mt-auto">
<div class="text-[10px] font-bold text-zinc-500 uppercase tracking-widest mb-1 relative z-10">Today's Focus</div>
<div class="flex items-baseline gap-1 relative z-10 mb-3">
<span class="text-5xl font-black tabular-nums text-white tracking-tighter">10</span><span class="text-xl font-bold text-zinc-500">h</span>
<span class="text-5xl font-black tabular-nums text-white tracking-tighter ml-1">14</span><span class="text-xl font-bold text-zinc-500">m</span>
</div>
<div class="text-xs font-bold text-brand-400 bg-brand-500/10 px-3 py-1.5 rounded-lg border border-brand-500/20 relative z-10 text-center truncate w-full">Physics • Electrostatics</div>
</div>
</div>
<!-- 3. Mock Analytics (Spans 6 cols) -->
<div class="bento-card md:col-span-6 rounded-3xl p-6 md:p-10 flex flex-col justify-between">
<div class="mb-8">
<div class="flex items-center gap-2 mb-4 text-blue-400">
<i data-lucide="bar-chart-2" class="w-5 h-5"></i>
<span class="text-xs font-bold uppercase tracking-widest">Analytics</span>
</div>
<h3 class="text-2xl font-black text-white mb-2">Measure the trajectory.</h3>
<p class="text-zinc-400 text-sm leading-relaxed">Log your mock tests. Track accuracy ratios, subject-wise breakdowns, and visualize your progress.</p>
</div>
<!-- Prominent Stat UI -->
<div class="grid grid-cols-2 gap-4">
<div class="bg-[#09090b] border border-zinc-800 rounded-2xl p-5 flex flex-col justify-center">
<div class="text-[10px] font-bold text-zinc-500 uppercase tracking-widest mb-1">Target Score</div>
<div class="text-4xl font-black text-white tracking-tighter">220<span class="text-lg text-zinc-600 font-bold tracking-normal">/300</span></div>
</div>
<div class="bg-[#09090b] border border-zinc-800 rounded-2xl p-5 flex flex-col justify-center">
<div class="text-[10px] font-bold text-zinc-500 uppercase tracking-widest mb-1">Accuracy</div>
<div class="text-4xl font-black text-blue-400 tracking-tighter">88%</div>
</div>
<div class="col-span-2 bg-[#09090b] border border-zinc-800 rounded-2xl p-5 flex justify-between items-center">
<div>
<div class="text-[10px] font-bold text-zinc-500 uppercase tracking-widest mb-1">Latest Full Syllabus</div>
<div class="text-3xl font-black text-emerald-400 tracking-tighter flex items-center gap-2">
184 <i data-lucide="trending-up" class="w-6 h-6"></i>
</div>
</div>
</div>
</div>
</div>
<!-- 4. Error Tracking (Spans 6 cols) -->
<div class="bento-card md:col-span-6 rounded-3xl p-6 md:p-10 flex flex-col justify-between">
<div class="mb-8">
<div class="flex items-center gap-2 mb-4 text-rose-400">
<i data-lucide="shield-alert" class="w-5 h-5"></i>
<span class="text-xs font-bold uppercase tracking-widest">Error Log</span>
</div>
<h3 class="text-2xl font-black text-white mb-2">Fix the leaks.</h3>
<p class="text-zinc-400 text-sm leading-relaxed">Top rankers don't just solve; they analyze. Categorize every mistake you make to build an impenetrable defense before D-Day.</p>
</div>
<!-- Prominent Stat UI -->
<div class="bg-[#09090b] border border-zinc-800 rounded-2xl p-5 space-y-3">
<div class="flex flex-col sm:flex-row sm:items-center justify-between p-3.5 bg-zinc-900 rounded-xl border border-zinc-800 gap-3">
<div class="flex items-center gap-3">
<span class="text-[10px] font-black text-zinc-900 bg-white px-2 py-1 rounded">MATH</span>
<span class="text-sm font-bold text-zinc-200">Definite Integration</span>
</div>
<span class="text-[10px] font-black text-rose-400 bg-rose-500/10 border border-rose-500/20 px-2.5 py-1.5 rounded w-fit tracking-widest">CONCEPTUAL</span>
</div>
<div class="flex flex-col sm:flex-row sm:items-center justify-between p-3.5 bg-zinc-900 rounded-xl border border-zinc-800 gap-3">
<div class="flex items-center gap-3">
<span class="text-[10px] font-black text-zinc-900 bg-white px-2 py-1 rounded">CHEM</span>
<span class="text-sm font-bold text-zinc-200">Chemical Kinetics</span>
</div>
<span class="text-[10px] font-black text-amber-400 bg-amber-500/10 border border-amber-500/20 px-2.5 py-1.5 rounded w-fit tracking-widest">SILLY MISTAKE</span>
</div>
</div>
</div>
<!-- 5. Squads (Spans 12 cols) -->
<div class="bento-card md:col-span-12 rounded-3xl p-6 md:p-10 flex flex-col md:flex-row items-center gap-8 md:gap-12 text-center md:text-left">
<div class="flex-1">
<div class="flex items-center justify-center md:justify-start gap-2 mb-4 text-fuchsia-400">
<i data-lucide="users" class="w-5 h-5"></i>
<span class="text-xs font-bold uppercase tracking-widest">Accountability Squads</span>
</div>
<h3 class="text-3xl md:text-4xl font-black text-white mb-4 tracking-tight">Peer pressure, weaponized.</h3>
<p class="text-zinc-400 text-base leading-relaxed max-w-2xl">
Connect 1-on-1 via 6-digit codes. No groups. No chatrooms. No endless feeds. Just see when your friends are studying live, and let the silent competition drive you to study longer.
</p>
</div>
<div class="w-full md:w-auto shrink-0 flex flex-col gap-4">
<div class="flex items-center justify-between gap-8 bg-[#09090b] border border-zinc-800 p-4 pr-6 rounded-2xl shadow-lg">
<div class="flex items-center gap-4">
<div class="w-10 h-10 rounded-xl bg-brand-600 flex items-center justify-center text-sm font-black shadow-inner">Y</div>
<span class="text-base font-bold text-white">You</span>
</div>
<div class="flex items-center gap-2 text-xs font-black uppercase tracking-widest text-brand-400 bg-brand-500/10 px-3 py-1.5 rounded-lg border border-brand-500/20">
<span class="w-2 h-2 rounded-full bg-brand-500"></span> Live
</div>
</div>
<div class="flex items-center justify-between gap-8 bg-[#09090b] border border-zinc-800 p-4 pr-6 rounded-2xl shadow-lg">
<div class="flex items-center gap-4">
<div class="w-10 h-10 rounded-xl bg-zinc-700 flex items-center justify-center text-sm font-black shadow-inner">A</div>
<span class="text-base font-bold text-zinc-300">Air1_Target</span>
</div>
<div class="flex items-center gap-2 text-xs font-black uppercase tracking-widest text-zinc-500 bg-zinc-800/50 px-3 py-1.5 rounded-lg border border-zinc-700/50">
Idle
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="w-full mt-24 pt-8 border-t border-white/5 flex flex-col md:flex-row items-center justify-between gap-4 z-20">
<div class="text-[11px] font-bold text-zinc-600 uppercase tracking-widest">
© 2026 sval.tech
</div>
<div class="flex items-center gap-6 text-[11px] font-bold uppercase tracking-widest text-zinc-500">
<a href="privacypolicy.html" class="hover:text-white transition-colors">Privacy</a>
<a href="termsandconditions.html" class="hover:text-white transition-colors">Terms</a>
</div>
</div>
</div>
</div>
</div>
<!-- Loading Overlay -->
<div id="loading-overlay"
class="fixed inset-0 z-[100] bg-zinc-50 dark:bg-[#09090b] flex items-center justify-center transition-opacity duration-500">
<div class="flex flex-col items-center gap-4">
<img src="logo.png" alt="Loading Logo"
class="w-16 h-16 rounded-2xl shadow-glow animate-pulse-slow object-contain">
<div class="flex flex-col items-center gap-2">
<div class="text-2xl font-black text-zinc-900 dark:text-white tracking-tighter">ChaosPrep</div>
</div>
<div class="spinner w-6 h-6 border-brand-500 border-t-transparent mt-2"></div>
</div>
</div>
<!-- Desktop Sidebar -->
<aside
class="hidden md:flex w-[320px] bg-white/80 dark:bg-[#18181b]/90 backdrop-blur-2xl border-r border-zinc-200/50 dark:border-zinc-800/50 flex-col shrink-0 z-[50] relative h-full transition-all duration-300 shadow-floating"
id="desktop-sidebar">
<div class="p-6 pb-4 shrink-0">
<div class="flex items-center justify-between gap-2 mb-4">
<div class="flex items-center gap-2.5 min-w-0">
<div class="flex flex-col min-w-0">
<span class="text-xl font-black text-zinc-900 dark:text-white tracking-tighter leading-none truncate">ChaosPrep</span>
</div>
</div>
<div class="flex items-center shrink-0 gap-0.5">
<button onclick="switchView('settings')" aria-label="Settings"
class="p-1.5 text-zinc-400 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-zinc-800/50 rounded-xl transition-colors duration-200">
<i data-lucide="settings" class="w-[18px] h-[18px]"></i>
</button>
<button onclick="openSupportModal()" id="support-icon-btn" aria-label="Support"
class="p-1.5 text-zinc-400 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-zinc-800/50 rounded-xl transition-colors duration-200">
<i data-lucide="heart" class="w-[18px] h-[18px]"></i>
</button>
<button onclick="switchView('info')" id="nav-desktop-info" aria-label="Information"
class="p-1.5 text-zinc-400 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-zinc-800/50 rounded-xl transition-colors duration-200">
<i data-lucide="info" class="w-[18px] h-[18px]"></i>
</button>
<button onclick="toggleSidebar()" aria-label="Collapse Sidebar"
class="p-1.5 text-zinc-400 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-zinc-800/50 rounded-xl transition-colors duration-200">
<i data-lucide="panel-left-close" class="w-[18px] h-[18px]"></i>
</button>
</div>
</div>
<div id="desktop-countdown-card" onclick="openRealityCheck()"
class="cursor-pointer bg-white dark:bg-[#18181b] border border-zinc-200/80 dark:border-zinc-800 rounded-2xl p-2.5 flex items-center justify-between shadow-sm relative group mb-6 transition-all duration-200 hover:border-brand-300 dark:hover:border-brand-700 hover:shadow-md">
<div class="flex items-center gap-3 min-w-0">
<div class="w-9 h-9 rounded-xl bg-brand-50 dark:bg-brand-500/10 text-brand-500 flex items-center justify-center shrink-0 shadow-inner-light dark:shadow-inner-dark">
<i data-lucide="crosshair" class="w-4 h-4 group-hover:scale-110 transition-transform"></i>
</div>
<div class="flex flex-col justify-center min-w-0 pt-0.5">
<div class="text-[9px] font-bold text-zinc-400 uppercase tracking-widest leading-none mb-1">Target Exam</div>
<div id="target-date-display-desktop" class="text-[11px] font-bold text-zinc-700 dark:text-zinc-300 truncate leading-none">Goal: --</div>
</div>
</div>
<div class="flex items-baseline gap-0.5 pr-2 pl-3 border-l border-zinc-100 dark:border-zinc-800/50 text-right shrink-0">
<span id="days-left-desktop" class="text-xl font-black text-zinc-900 dark:text-white tracking-tighter">--</span>
<span class="text-[9px] font-bold text-zinc-400 uppercase tracking-wider ml-0.5">Days</span>
</div>
</div>
<nav class="flex flex-col gap-1.5 p-1.5 bg-zinc-100/80 dark:bg-zinc-900/80 rounded-2xl shadow-inner-light dark:shadow-inner-dark">
<div class="grid grid-cols-3 gap-1.5 w-full">
<button onclick="switchView('calendar')" id="nav-desktop-calendar"
class="py-2.5 text-xs font-bold rounded-xl transition-all duration-200 ease-out active:scale-95 hover:scale-[0.98] flex items-center justify-center gap-1.5 bg-white dark:bg-zinc-800 shadow-sm text-brand-600 dark:text-brand-400">
<i data-lucide="calendar" class="w-4 h-4"></i> Planner
</button>
<button onclick="switchView('weekly')" id="nav-desktop-weekly"
class="py-2.5 text-xs font-bold rounded-xl transition-all duration-200 ease-out active:scale-95 hover:scale-[0.98] flex items-center justify-center gap-1.5 text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200 hover:bg-zinc-200/50 dark:hover:bg-zinc-800/50">
<i data-lucide="crosshair" class="w-4 h-4"></i> Targets
</button>
<button onclick="switchView('syllabus')" id="nav-desktop-syllabus"
class="py-2.5 text-xs font-bold rounded-xl transition-all duration-200 ease-out active:scale-95 hover:scale-[0.98] flex items-center justify-center gap-1.5 text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200 hover:bg-zinc-200/50 dark:hover:bg-zinc-800/50">
<i data-lucide="book-open-check" class="w-4 h-4"></i> Syllabus
</button>
</div>
<div class="grid grid-cols-2 gap-1.5 w-full">
<button onclick="switchView('timer')" id="nav-desktop-timer"
class="py-2.5 text-xs font-bold rounded-xl transition-all duration-200 ease-out active:scale-95 hover:scale-[0.98] flex items-center justify-center gap-2 text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200 hover:bg-zinc-200/50 dark:hover:bg-zinc-800/50">
<i data-lucide="timer" class="w-4 h-4"></i> Timer
</button>
<div class="relative group w-full">
<button onclick="switchView('stats-mocks')" id="nav-desktop-stats"
class="w-full py-2.5 text-xs font-bold rounded-xl transition-all duration-200 ease-out active:scale-95 hover:scale-[0.98] flex items-center justify-center gap-2 text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200 hover:bg-zinc-200/50 dark:hover:bg-zinc-800/50">
<i data-lucide="bar-chart-2" class="w-4 h-4"></i> Stats
</button>
<div class="absolute left-full top-0 pl-2 w-52 z-[100] opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto transition-opacity duration-200 flex">
<div class="bg-white/95 dark:bg-[#18181b]/95 backdrop-blur-xl rounded-2xl shadow-floating dark:shadow-floating-dark border border-zinc-200/80 dark:border-zinc-800 flex flex-col w-full scale-95 group-hover:scale-100 transition-transform duration-200 origin-left overflow-hidden">
<button onclick="switchView('stats-mocks')" class="text-left px-4 py-3 text-xs font-bold text-zinc-700 dark:text-zinc-300 hover:bg-zinc-50 dark:hover:bg-zinc-800 transition-colors flex items-center gap-3"><i data-lucide="bar-chart" class="w-4 h-4 text-brand-500"></i> Mocks Data</button>
<button onclick="switchView('stats-errors')" class="text-left px-4 py-3 text-xs font-bold text-zinc-700 dark:text-zinc-300 hover:bg-zinc-50 dark:hover:bg-zinc-800 transition-colors flex items-center gap-3 border-t border-zinc-100 dark:border-zinc-800/50"><i data-lucide="alert-triangle" class="w-4 h-4 text-rose-500"></i> Error Tracking</button>
<button onclick="switchView('stats-questions')" class="text-left px-4 py-3 text-xs font-bold text-zinc-700 dark:text-zinc-300 hover:bg-zinc-50 dark:hover:bg-zinc-800 transition-colors flex items-center gap-3 border-t border-zinc-100 dark:border-zinc-800/50"><i data-lucide="check-square" class="w-4 h-4 text-emerald-500"></i> Daily Questions</button>
</div>
</div>
</div>
</div>
<div class="grid grid-cols-2 gap-1.5 w-full">
<button onclick="switchView('squad')" id="nav-desktop-squad"
class="py-2.5 text-xs font-bold rounded-xl transition-all duration-200 ease-out active:scale-95 hover:scale-[0.98] flex items-center justify-center gap-2 text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200 hover:bg-zinc-200/50 dark:hover:bg-zinc-800/50">
<i data-lucide="users" class="w-4 h-4"></i> Squad
</button>
<button onclick="switchView('groups')" id="nav-desktop-groups"
class="py-2.5 text-xs font-bold rounded-xl transition-all duration-200 ease-out active:scale-95 hover:scale-[0.98] flex items-center justify-center gap-2 text-zinc-500 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200 hover:bg-zinc-200/50 dark:hover:bg-zinc-800/50">
<i data-lucide="globe" class="w-4 h-4"></i> Groups
</button>
</div>
</nav>
</div>
<div id="desktop-add-task-container" class="flex-1 overflow-y-auto px-6 pb-6 space-y-5 custom-scrollbar">
<div class="flex items-center gap-2 mb-2">
<div class="w-1 h-4 bg-brand-500 rounded-full"></div>
<h2 class="text-sm font-bold text-zinc-900 dark:text-white tracking-tight">Quick Add Task</h2>
</div>
<form id="add-task-form" class="space-y-5">
<div class="flex flex-col gap-1">
<label for="task-date" class="sr-only">Date</label>
<input type="date" id="task-date"
class="w-full bg-zinc-50 dark:bg-zinc-900 border border-zinc-200/80 dark:border-zinc-800 rounded-xl px-4 py-3.5 text-sm focus:ring-2 focus:ring-brand-500/50 focus:border-brand-500 outline-none dark:text-white transition-all shadow-inner-light dark:shadow-inner-dark font-medium">
</div>
<div>
<div class="flex justify-between items-center mb-2.5">
<span class="block text-[10px] font-bold text-zinc-500 uppercase tracking-widest">Subject</span>
<button type="button" onclick="openCustomSubjectModal()"
class="text-[10px] font-bold text-brand-600 dark:text-brand-400 hover:bg-brand-50 dark:hover:bg-brand-900/30 px-2 py-1 rounded transition-colors duration-200">
+ Manage
</button>
</div>
<div id="subject-selector" class="grid grid-cols-2 gap-2">
</div>
</div>
<div id="mock-fields-container"
class="hidden animate-slide-up space-y-4 p-4 bg-fuchsia-50/50 dark:bg-fuchsia-900/10 rounded-2xl border border-fuchsia-100 dark:border-fuchsia-900/30">
<div class="flex items-center gap-2 mb-2 text-fuchsia-700 dark:text-fuchsia-300">
<i data-lucide="trophy" class="w-4 h-4"></i>
<span class="text-xs font-bold uppercase tracking-wide">Score Details</span>
</div>
</div>
<div class="flex flex-col gap-1">
<label for="task-input" class="sr-only">Task Objective</label>
<textarea id="task-input" rows="3" placeholder="What's the objective?"
class="w-full bg-zinc-50 dark:bg-zinc-900 border border-zinc-200/80 dark:border-zinc-800 rounded-xl px-4 py-3.5 text-sm focus:ring-2 focus:ring-brand-500/50 focus:border-brand-500 outline-none dark:text-white resize-none transition-all shadow-inner-light dark:shadow-inner-dark font-medium placeholder:text-zinc-500"></textarea>
</div>
<button id="btn-add-task" type="submit"
class="w-full bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 font-bold py-3.5 rounded-xl shadow-floating dark:shadow-white/10 transition-all active:scale-95 flex items-center justify-center gap-2 hover:-translate-y-0.5">
<i data-lucide="plus" class="w-4 h-4 text-brand-400 dark:text-brand-600"></i>
<span>Add to Plan</span>
</button>
</form>
</div>
<div class="p-5 mt-auto border-t border-zinc-200/50 dark:border-zinc-800/50 bg-zinc-50/80 dark:bg-[#18181b]/80 backdrop-blur-xl shrink-0">
<div class="flex items-center justify-between gap-2">
<div onclick="openProfileModal()"
class="flex flex-1 items-center gap-3 cursor-pointer hover:bg-zinc-200/50 dark:hover:bg-zinc-800/50 p-2 -m-2 rounded-xl transition-colors duration-200">
<div id="user-avatar-desktop"
class="w-10 h-10 rounded-full bg-brand-100 dark:bg-brand-900/50 flex items-center justify-center text-brand-600 dark:text-brand-400 font-bold text-sm ring-2 ring-white dark:ring-zinc-800 shadow-sm overflow-hidden shrink-0">
S
</div>
<div class="flex-1 min-w-0">
<p id="user-name-desktop" class="text-sm font-bold text-zinc-900 dark:text-white truncate">svalordev</p>
<p id="user-email-desktop" class="text-[10px] text-zinc-500 truncate font-medium">shaurya.p.singh21@gmail.com</p>
</div>
</div>
<button onclick="handleSignOut()" aria-label="Sign Out"
class="p-2.5 text-zinc-400 hover:text-rose-500 hover:bg-rose-50 dark:hover:bg-rose-900/20 rounded-xl transition-colors duration-200 shrink-0"
title="Sign Out">
<i data-lucide="log-out" class="w-[18px] h-[18px]"></i>
</button>
</div>
</div>
</aside>
<main id="main-content-area"
class="flex-1 flex flex-col h-full overflow-hidden relative bg-transparent touch-pan-x z-10">
<div id="top-announcement-banner"
class="hidden bg-brand-500 text-white px-4 py-2 items-center justify-center relative text-sm font-medium z-50 shadow-md transition-all duration-300">
<div id="banner-text" class="text-center mr-8">
</div>
<button id="dismiss-banner-btn"
class="absolute right-2 top-1/2 -translate-y-1/2 p-1.5 hover:bg-black/20 rounded-md transition-colors"
aria-label="Dismiss">
<i data-lucide="x" class="w-4 h-4"></i>
</button>
</div>
<div id="global-mini-timer"
class="w-full z-[150] transition-all duration-500 overflow-hidden max-h-0 opacity-0 pointer-events-none bg-white/95 dark:bg-[#09090b]/95 backdrop-blur-2xl border-b border-zinc-200/80 dark:border-zinc-800/80 shadow-sm shrink-0">
<div class="flex items-center justify-between px-4 md:px-8 py-2 md:py-3 w-full h-[56px] md:h-[64px]">
<div class="flex items-center gap-3 md:gap-4 flex-1 min-w-0">
<span id="mini-timer-dot"
class="w-2.5 h-2.5 rounded-full bg-brand-500 animate-pulse shadow-sm shrink-0"></span>
<span id="mini-timer-subject"
class="text-xs md:text-sm font-bold text-zinc-900 dark:text-white truncate">Focus</span>
</div>
<div id="mini-timer-display"
class="text-lg md:text-xl font-black tabular-nums tracking-tighter text-brand-600 dark:text-brand-400 text-center shrink-0 px-4">
00:00:00
</div>
<div class="flex items-center justify-end gap-1.5 md:gap-2 flex-1">
<button id="btn-mini-timer-toggle" onclick="toggleTimer()"
class="p-1.5 md:p-2 text-zinc-600 dark:text-zinc-300 hover:text-brand-600 dark:hover:text-brand-400 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-lg transition-all active:scale-95">
<i data-lucide="pause" class="w-4 h-4 md:w-4 md:h-4 fill-current"></i>
</button>
<button id="btn-mini-timer-stop" onclick="stopTimer()"
class="p-1.5 md:p-2 text-rose-500 hover:text-rose-600 hover:bg-rose-50 dark:hover:bg-rose-500/10 rounded-lg transition-all active:scale-95">
<i data-lucide="square" class="w-4 h-4 md:w-4 md:h-4 fill-current"></i>
</button>
<div class="w-px h-5 bg-zinc-200 dark:bg-zinc-800 mx-1 md:mx-2"></div>
<button onclick="switchView('timer')"
class="p-1.5 md:p-2 text-zinc-400 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-lg transition-all flex items-center gap-2 group">
<span
class="hidden md:block text-[10px] font-bold uppercase tracking-wider group-hover:text-zinc-900 dark:group-hover:text-white">View</span>
<i data-lucide="maximize-2" class="w-4 h-4 md:w-4 md:h-4"></i>
</button>
</div>
</div>
</div>
<button id="desktop-sidebar-open" onclick="toggleSidebar()"
class="hidden md:flex absolute top-6 left-6 z-[300] p-2.5 bg-white/80 dark:bg-[#18181b]/80 backdrop-blur-md text-zinc-600 dark:text-zinc-300 hover:text-zinc-900 dark:hover:text-white border border-zinc-200/50 dark:border-zinc-800/50 rounded-xl shadow-sm transition-all duration-300 opacity-0 pointer-events-none -translate-x-4"
title="Expand Sidebar">
<i data-lucide="panel-left-open" class="w-5 h-5"></i>
</button>
<!-- Mobile Header -->
<!-- Mobile Header -->
<!-- Changed: Removed mx-2, mt-2, rounded-2xl. Added w-full and adjusted padding -->
<div
class="md:hidden glass border-b border-zinc-200/50 dark:border-zinc-800/50 p-3.5 px-4 flex justify-between items-center z-20 sticky top-0 shadow-sm w-full">
<div class="flex items-center gap-3">
<img src="logo.png" alt="ChaosPrep Logo" class="w-9 h-9 rounded-lg shadow-md shrink-0 object-contain">
<div class="flex flex-col justify-center">
<h1 class="font-black text-lg text-zinc-900 dark:text-white tracking-tight leading-none">ChaosPrep
</h1>
</div>
</div>
<div class="flex items-center gap-2">
<div id="mobile-countdown-pill" onclick="openRealityCheck()"
class="hidden px-3 py-1.5 bg-zinc-100 dark:bg-zinc-800 rounded-full flex items-center gap-1.5 active:scale-95 transition-transform">
<span id="days-left-mobile"
class="text-[10px] font-black uppercase tracking-wide text-zinc-700 dark:text-zinc-300">--
days</span>
</div>
<button onclick="switchView('info')"
class="w-8 h-8 flex items-center justify-center bg-zinc-100 dark:bg-zinc-800 rounded-full text-zinc-600 dark:text-zinc-300 active:scale-95 transition-transform">
<i data-lucide="info" class="w-4 h-4"></i>
</button>
<button onclick="openSupportModal()"
class="w-8 h-8 flex items-center justify-center bg-rose-50 dark:bg-rose-900/20 rounded-full text-rose-500 active:scale-95 transition-transform">
<i data-lucide="heart" class="w-4 h-4"></i>
</button>
<button onclick="switchView('settings')"
class="w-8 h-8 flex items-center justify-center bg-zinc-100 dark:bg-zinc-800 rounded-full text-zinc-600 dark:text-zinc-300 active:scale-95 transition-transform">
<i data-lucide="settings" class="w-4 h-4"></i>
</button>
</div>
</div>
<!-- VIEW: Calendar -->
<div id="view-container-calendar" class="view-section flex-1 flex flex-col h-full overflow-hidden">
<!-- Planner scroll area -->
<div class="flex-1 overflow-y-auto custom-scrollbar no-scrollbar relative scroll-smooth"
id="calendar-scroll-area">
<!-- Sticky blurred toolbar inside scroll area -->
<div id="toolbar-calendar"
class="sticky top-0 z-30 glass px-4 md:px-8 py-4 flex items-center justify-between border-b border-zinc-200/50 dark:border-zinc-800/50">
<div class="flex items-center gap-4">
<div
class="flex gap-1 bg-white/80 dark:bg-[#18181b]/80 backdrop-blur-md rounded-full p-1 border border-zinc-200 dark:border-zinc-700 shadow-sm">
<button onclick="changeMonth(-1)"
class="p-1.5 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-full transition-colors active:scale-95 text-zinc-600 dark:text-zinc-400"><i
data-lucide="chevron-left" class="w-5 h-5 md:w-4 md:h-4"></i></button>
<button onclick="changeMonth(1)"
class="p-1.5 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-full transition-colors active:scale-95 text-zinc-600 dark:text-zinc-400"><i
data-lucide="chevron-right" class="w-5 h-5 md:w-4 md:h-4"></i></button>
</div>
<h2 id="current-month-display"
class="text-2xl md:text-3xl font-black text-zinc-900 dark:text-white tracking-tighter">--
</h2>
</div>
<button onclick="goToToday()"
class="text-xs font-bold bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 px-4 py-2 rounded-full hover:shadow-lg transition-all active:scale-95 flex items-center gap-1.5"><i
data-lucide="calendar" class="w-3.5 h-3.5 opacity-70"></i> Today</button>
</div>
<div id="calendar-grid"
class="p-4 md:p-8 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-5 pb-32 max-w-7xl mx-auto">
</div>
</div>
</div>
<!-- VIEW: Weekly Goals -->
<div id="view-container-weekly" class="view-section hidden flex-1 flex flex-col h-full overflow-hidden">
<div class="flex-1 overflow-y-auto custom-scrollbar no-scrollbar relative">
<!-- Sticky blurred toolbar inside scroll area -->
<div
class="sticky top-0 z-30 glass px-4 md:px-8 py-4 flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-zinc-200/50 dark:border-zinc-800/50 w-full">
<div>
<h2 class="text-2xl md:text-3xl font-black text-zinc-900 dark:text-white tracking-tighter">
Targets</h2>
</div>
<div
class="flex items-center gap-2 bg-white/80 dark:bg-[#18181b]/80 backdrop-blur-md p-1.5 rounded-2xl shadow-sm border border-zinc-200 dark:border-zinc-700 self-start md:self-auto">
<button onclick="changeWeek(-1)"
class="p-1.5 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-xl transition-colors active:scale-95 text-zinc-600 dark:text-zinc-400"><i
data-lucide="chevron-left" class="w-4 h-4"></i></button>
<div class="text-center min-w-[120px]">
<div class="text-[9px] font-bold text-zinc-400 uppercase tracking-widest mb-0.5">Week Of
</div>
<div id="weekly-date-range" class="text-xs font-bold text-zinc-800 dark:text-zinc-200">--
</div>
</div>
<button onclick="changeWeek(1)"
class="p-1.5 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-xl transition-colors active:scale-95 text-zinc-600 dark:text-zinc-400"><i
data-lucide="chevron-right" class="w-4 h-4"></i></button>
</div>
</div>
<div class="p-4 md:p-8 pb-32 max-w-3xl mx-auto space-y-6">
<!-- Progress Card -->
<div
class="glass-card p-6 md:p-8 rounded-[2rem] flex items-center justify-between relative overflow-hidden">
<div
class="absolute inset-0 bg-gradient-to-r from-brand-500/5 to-transparent pointer-events-none">
</div>
<div class="relative z-10">
<div class="text-xs font-bold text-zinc-500 uppercase tracking-widest mb-2">Weekly
Completion</div>
<div id="weekly-progress-text"
class="text-5xl md:text-6xl font-black text-zinc-900 dark:text-white tracking-tighter">
0%</div>
<p class="text-xs font-medium text-zinc-500 mt-2 bg-zinc-100 dark:bg-zinc-800/50 inline-block px-2.5 py-1 rounded-md"
id="weekly-count-text">0/0 Completed</p>
</div>
<div class="w-24 h-24 md:w-32 md:h-32 relative">
<!-- SVG setup for exactly sizing the ring accurately mapped to viewBox so percentage doesn't break depending on pixel bounds -->
<svg class="w-full h-full transform -rotate-90" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="40" stroke="currentColor" stroke-width="8" fill="transparent"
class="text-zinc-100 dark:text-zinc-800" />
<circle id="weekly-ring" cx="50" cy="50" r="40" stroke="currentColor" stroke-width="8"
fill="transparent" stroke-dasharray="251.3" stroke-dashoffset="251.3"
class="text-brand-500 transition-all duration-1000 ease-out"
stroke-linecap="round" />
</svg>
</div>
</div>
<!-- Input -->
<div
class="flex gap-2 bg-white dark:bg-[#18181b] p-2 rounded-2xl border border-zinc-200/80 dark:border-zinc-800 shadow-sm">
<input type="text" id="target-input" placeholder="e.g. Master Electrostatics concepts..."
class="flex-1 bg-transparent border-none px-4 py-3 text-sm focus:outline-none dark:text-white font-medium placeholder:text-zinc-400">
<button onclick="addWeeklyTarget()"
class="bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 px-6 rounded-xl font-bold shadow-md active:scale-95 transition-transform">Add</button>
</div>
<!-- List -->
<div id="weekly-list" class="space-y-3 pb-10"></div>
</div>
</div>
</div>
<!-- VIEW: Timer -->
<div id="view-container-timer" class="view-section hidden flex-1 flex flex-col h-full overflow-hidden relative">
<div class="flex-1 overflow-y-auto custom-scrollbar no-scrollbar w-full relative">
<div class="max-w-6xl mx-auto p-4 md:p-8 pb-32 space-y-8 mt-2">
<div id="timer-container"
class="relative bg-white/40 dark:bg-[#18181b]/40 backdrop-blur-xl rounded-[2.5rem] md:rounded-[3rem] p-6 md:p-8 flex flex-col lg:flex-row items-center justify-center lg:justify-around min-h-[400px] transition-all duration-700 overflow-hidden group border border-zinc-200/80 dark:border-zinc-800/80 shadow-lg">
<div id="zen-ambient-glow"
class="absolute inset-0 bg-brand-500/10 dark:bg-brand-500/20 blur-[100px] opacity-0 transition-opacity duration-1000 pointer-events-none">
</div>
<canvas id="pip-canvas" width="400" height="400" class="hidden"></canvas>
<video id="pip-video" class="hidden" muted playsinline autoplay></video>
<button onclick="togglePiP()"
class="hidden md:flex items-center justify-center absolute top-6 right-20 p-3 text-zinc-400 hover:text-zinc-900 dark:hover:text-white bg-zinc-100/80 dark:bg-zinc-800/50 hover:bg-zinc-200 dark:hover:bg-zinc-700 rounded-2xl transition-all active:scale-95 z-20 shadow-sm border border-zinc-200/50 dark:border-zinc-700/50 backdrop-blur-md">
<i data-lucide="picture-in-picture-2" class="w-5 h-5"></i>
</button>
<button onclick="toggleFullScreenZen()"
class="absolute top-4 right-4 md:top-6 md:right-6 p-2.5 md:p-3 text-zinc-400 hover:text-zinc-900 dark:hover:text-white bg-zinc-100/80 dark:bg-zinc-800/50 hover:bg-zinc-200 dark:hover:bg-zinc-700 rounded-xl md:rounded-2xl transition-all active:scale-95 z-20 shadow-sm border border-zinc-200/50 dark:border-zinc-700/50 backdrop-blur-md">
<i data-lucide="maximize" id="zen-icon" class="w-4 h-4 md:w-5 md:h-5"></i>
</button>
<div class="flex flex-col items-center relative z-10 shrink-0 w-full lg:w-auto mt-4 lg:mt-0">
<div class="flex bg-zinc-100/80 dark:bg-zinc-800/80 p-1 md:p-1.5 rounded-xl md:rounded-2xl shadow-inner-light dark:shadow-inner-dark border border-zinc-200/50 dark:border-zinc-700/50 backdrop-blur-md mb-6 md:mb-8"
id="timer-mode-switcher">
<button id="btn-mode-flow" onclick="setTimerMode('flow')"
class="px-5 py-2 md:px-6 md:py-2.5 rounded-lg md:rounded-xl text-[11px] md:text-xs font-bold bg-white dark:bg-[#27272a] text-zinc-900 dark:text-white shadow-sm transition-all">Flow</button>
<button id="btn-mode-custom" onclick="setTimerMode('custom')"
class="px-5 py-2 md:px-6 md:py-2.5 rounded-lg md:rounded-xl text-[11px] md:text-xs font-bold text-zinc-500 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-white transition-all bg-transparent">Custom</button>
</div>
<div class="relative w-64 h-40 md:w-80 md:h-48 flex items-center justify-center mb-8 md:mb-10 z-10 transition-all duration-700"
id="timer-dial-wrapper">
<div
class="absolute inset-0 rounded-[28px] border border-zinc-200/50 dark:border-zinc-800/50 shadow-[inset_0_4px_20px_rgba(0,0,0,0.02)] dark:shadow-[inset_0_4px_20px_rgba(255,255,255,0.02)] bg-white/40 dark:bg-[#18181b]/40 backdrop-blur-md">
</div>
<svg class="absolute inset-0 w-full h-full drop-shadow-xl pointer-events-none"
viewBox="0 0 320 192" id="timer-svg-container">
<path
d="M 160 4 h 132 a 24 24 0 0 1 24 24 v 136 a 24 24 0 0 1 -24 24 h -264 a 24 24 0 0 1 -24 -24 v -136 a 24 24 0 0 1 24 -24 Z"
stroke="currentColor" stroke-width="8" fill="transparent"
class="text-zinc-200 dark:text-zinc-800/60" />
<path id="timer-progress-ring"
d="M 160 4 h 132 a 24 24 0 0 1 24 24 v 136 a 24 24 0 0 1 -24 24 h -264 a 24 24 0 0 1 -24 -24 v -136 a 24 24 0 0 1 24 -24 Z"
stroke="currentColor" stroke-width="8" fill="transparent"
class="text-brand-500 transition-all duration-1000 ease-linear hidden"
stroke-linecap="round" />
<path id="timer-active-path"
d="M 160 4 h 132 a 24 24 0 0 1 24 24 v 136 a 24 24 0 0 1 -24 24 h -264 a 24 24 0 0 1 -24 -24 v -136 a 24 24 0 0 1 24 -24 Z"
stroke="currentColor" stroke-width="8" fill="transparent"
class="text-brand-500 animate-flow-border hidden" stroke-linecap="round" />
</svg>
<div class="flex flex-col items-center mt-1 pointer-events-auto z-10">
<div class="text-5xl md:text-6xl font-black text-zinc-900 dark:text-white tabular-nums tracking-tighter leading-none mb-1.5 md:mb-2 drop-shadow-sm transition-all duration-700"
id="timer-display">
00:00:00
</div>
<div id="timer-mode-label"
class="text-[10px] md:text-xs font-bold text-brand-500 uppercase tracking-widest bg-brand-50 dark:bg-brand-500/10 px-3 py-1 rounded-md transition-colors duration-300 shadow-sm border border-brand-100 dark:border-brand-500/20">
Flow State
</div>
</div>
</div>
<div class="flex items-center gap-4 md:gap-6 relative z-10 transition-all duration-500"
id="timer-action-controls">
<button id="btn-timer-toggle" onclick="toggleTimer()"
class="w-16 h-16 md:w-20 md:h-20 rounded-[1.5rem] md:rounded-[1.75rem] bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 flex items-center justify-center shadow-floating active:scale-95 transition-all hover:-translate-y-1 group">
<i data-lucide="play"
class="w-7 h-7 md:w-8 md:h-8 fill-current group-hover:scale-110 transition-transform"></i>
</button>
<button id="btn-timer-stop" onclick="stopTimer()" disabled
class="w-14 h-14 md:w-16 md:h-16 rounded-[1.2rem] bg-white dark:bg-[#18181b] border border-zinc-200 dark:border-zinc-800 text-zinc-400 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-white disabled:dark:hover:bg-[#18181b] disabled:hover:text-zinc-400 disabled:hover:border-zinc-200 disabled:dark:hover:border-zinc-800 hover:border-rose-200 dark:hover:border-rose-900/50 hover:text-rose-500 hover:bg-rose-50 dark:hover:bg-rose-500/10 flex items-center justify-center transition-all active:scale-95 shadow-sm">
<i data-lucide="square" class="w-5 h-5 md:w-6 md:h-6 fill-current"></i>
</button>
</div>
</div>
<div class="flex flex-col gap-4 md:gap-5 w-full lg:w-[320px] max-w-md relative z-10 mt-10 lg:mt-0 transition-all duration-500"
id="timer-top-controls">
<div
class="bg-white/60 dark:bg-zinc-900/40 p-5 rounded-3xl border border-zinc-200/50 dark:border-zinc-800/50 shadow-sm backdrop-blur-md">
<label
class="flex items-center gap-2 text-[10px] font-bold text-zinc-400 uppercase tracking-widest mb-3">
<i data-lucide="book-open" class="w-3.5 h-3.5"></i> Focus Subject
</label>
<div id="timer-subject-selector" class="flex flex-wrap gap-1.5 md:gap-2">
</div>
</div>
<div
class="bg-white/60 dark:bg-zinc-900/40 p-5 rounded-3xl border border-zinc-200/50 dark:border-zinc-800/50 shadow-sm backdrop-blur-md relative group/linker">
<label
class="flex items-center gap-2 text-[10px] font-bold text-zinc-400 uppercase tracking-widest mb-3">
<i data-lucide="target" class="w-3.5 h-3.5"></i> Link Task
</label>
<div class="relative">
<select id="timer-task-linker"
class="w-full bg-zinc-50 dark:bg-[#18181b] border border-zinc-200/80 dark:border-zinc-800 rounded-xl px-10 py-3 md:py-3.5 text-xs md:text-sm font-bold outline-none dark:text-white appearance-none cursor-pointer shadow-inner-light dark:shadow-inner-dark group-hover/linker:border-brand-300 dark:group-hover/linker:border-brand-700 transition-colors">
<option value="">+ Link a task for today</option>
</select>
<i data-lucide="link"
class="absolute left-3.5 top-3.5 w-4 h-4 text-zinc-400 pointer-events-none group-hover/linker:text-brand-500 transition-colors"></i>
<i data-lucide="chevron-down"
class="absolute right-3.5 top-3.5 w-4 h-4 text-zinc-400 pointer-events-none"></i>
</div>
</div>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 md:gap-8">
<!-- LEFT COLUMN: Primary Metrics & Graphs -->
<div class="lg:col-span-2 flex flex-col gap-6 md:gap-8">
<!-- 4 Mini Stat Cards -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<div
class="glass-card p-5 rounded-[2rem] flex flex-col items-center justify-center text-center relative overflow-hidden group border-t-2 border-t-orange-500">
<div
class="absolute -right-4 -top-4 w-16 h-16 bg-orange-500/10 rounded-full blur-xl group-hover:bg-orange-500/20 transition-all">
</div>
<i data-lucide="flame" class="w-6 h-6 text-orange-500 mb-2 relative z-10"></i>
<div
class="text-[10px] font-bold text-zinc-500 uppercase tracking-widest mb-0.5 relative z-10">
Study Streak</div>
<div
class="text-2xl font-black text-zinc-900 dark:text-white leading-none relative z-10">
<span id="streak-count">0</span> <span
class="text-[10px] font-bold text-zinc-400">Days</span>
</div>
</div>
<div
class="glass-card p-5 rounded-[2rem] flex flex-col items-center justify-center text-center relative overflow-hidden group border-t-2 border-t-brand-500">
<div
class="absolute -right-4 -top-4 w-16 h-16 bg-brand-500/10 rounded-full blur-xl group-hover:bg-brand-500/20 transition-all">
</div>
<i data-lucide="clock" class="w-6 h-6 text-brand-500 mb-2 relative z-10"></i>
<div
class="text-[10px] font-bold text-zinc-500 uppercase tracking-widest mb-0.5 relative z-10">
Focused Today</div>
<div class="text-2xl font-black text-zinc-900 dark:text-white leading-none relative z-10"
id="today-total">0m</div>
</div>
<div
class="glass-card p-5 rounded-[2rem] flex flex-col items-center justify-center text-center relative overflow-hidden group border-t-2 border-t-blue-500">
<div
class="absolute -right-4 -top-4 w-16 h-16 bg-blue-500/10 rounded-full blur-xl group-hover:bg-blue-500/20 transition-all">
</div>
<i data-lucide="activity" class="w-6 h-6 text-blue-500 mb-2 relative z-10"></i>
<div
class="text-[10px] font-bold text-zinc-500 uppercase tracking-widest mb-0.5 relative z-10">
7-Day Avg</div>
<div class="text-2xl font-black text-zinc-900 dark:text-white leading-none relative z-10"
id="stat-avg-7d">0m</div>
</div>
<div
class="glass-card p-5 rounded-[2rem] flex flex-col items-center justify-center text-center relative overflow-hidden group border-t-2 border-t-emerald-500">
<div
class="absolute -right-4 -top-4 w-16 h-16 bg-emerald-500/10 rounded-full blur-xl group-hover:bg-emerald-500/20 transition-all">
</div>
<i data-lucide="trophy" class="w-6 h-6 text-emerald-500 mb-2 relative z-10"></i>
<div
class="text-[10px] font-bold text-zinc-500 uppercase tracking-widest mb-0.5 relative z-10">
Record Day</div>
<div class="text-2xl font-black text-zinc-900 dark:text-white leading-none relative z-10"
id="stat-best-day">0m</div>
</div>
</div>
<!-- Stacked Study Trends Chart -->
<div class="glass-card p-6 md:p-8 rounded-[2.5rem] flex-1 flex flex-col">
<div class="flex flex-col sm:flex-row sm:justify-between sm:items-center mb-6 gap-4">
<h3 class="text-lg font-black text-zinc-900 dark:text-white tracking-tight">Study
Trends</h3>
<div
class="flex items-center gap-2 bg-zinc-100 dark:bg-zinc-800 rounded-xl p-1 shadow-inner-light dark:shadow-inner-dark border border-zinc-200/50 dark:border-zinc-700/50 self-start sm:self-auto">
<button onclick="changeTimerChartWeek(-1)"
class="p-1.5 text-zinc-500 hover:text-zinc-900 dark:hover:text-white hover:bg-white dark:hover:bg-[#27272a] rounded-lg transition-all shadow-sm"><i
data-lucide="chevron-left" class="w-4 h-4"></i></button>
<span id="timer-chart-week-label"
class="text-[10px] font-bold text-zinc-600 dark:text-zinc-300 w-24 text-center tracking-widest uppercase">This
Week</span>
<button onclick="changeTimerChartWeek(1)"
class="p-1.5 text-zinc-500 hover:text-zinc-900 dark:hover:text-white hover:bg-white dark:hover:bg-[#27272a] rounded-lg transition-all shadow-sm"><i
data-lucide="chevron-right" class="w-4 h-4"></i></button>
</div>
</div>
<div class="relative flex-1 w-full min-h-[220px]">
<canvas id="timerChart"></canvas>
</div>
</div>
<!-- Heatmap -->
<div class="glass-card p-6 md:p-8 rounded-[2.5rem] flex flex-col overflow-hidden relative">
<div id="heatmap-tooltip"
class="fixed z-[9999] pointer-events-none opacity-0 transition-opacity duration-200 bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 text-[10px] font-bold px-3 py-1.5 rounded-lg shadow-floating whitespace-nowrap transform -translate-x-1/2 -translate-y-full"
style="margin-top: -8px;"></div>
<div class="mb-6 flex justify-between items-center">
<div>
<h3 class="text-lg font-black text-zinc-900 dark:text-white tracking-tight">
Study Activity</h3>
<p class="text-[10px] font-bold text-zinc-400 uppercase tracking-widest mt-1">
Last 6 Months</p>
</div>
</div>
<div class="flex-1 w-full overflow-x-auto custom-scrollbar pb-4 pt-2">
<div class="flex flex-col gap-2 relative w-full min-w-max justify-end">
<div id="heatmap-container" class="flex gap-[6px] justify-start md:justify-end">
</div>