-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
3633 lines (3440 loc) · 216 KB
/
index.html
File metadata and controls
3633 lines (3440 loc) · 216 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">
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-58B2CXSK');</script>
<!-- End Google Tag Manager -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-54MC4JMJVQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-54MC4JMJVQ');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, maximum-scale=5.0">
<title>StudyFlow - Focus & Productivity Timer | Pomodoro Study App</title>
<meta name="title" content="StudyFlow - Focus & Productivity Timer | Pomodoro Study App">
<meta name="description"
content="Boost your productivity with StudyFlow - a beautiful focus timer app featuring Pomodoro technique, task management, study analytics, and ambient music. Perfect for students and professionals.">
<meta name="keywords"
content="pomodoro timer, focus timer, study app, productivity app, task manager, study tracker, focus music, time management, student productivity">
<meta name="author" content="Salah Uddin Kader">
<meta name="robots" content="index, follow">
<meta name="language" content="English">
<meta name="revisit-after" content="7 days">
<meta name="google-site-verification" content="WJxBg6PfsLLZco7402kiWpUazOhNS1XIvAxQE8PMVxU" />
<meta property="og:type" content="website">
<meta property="og:url" content="https://studyflow.salahuddin.codes">
<meta property="og:title" content="StudyFlow - Focus & Productivity Timer">
<meta property="og:description"
content="Boost your productivity with StudyFlow - a beautiful focus timer app featuring Pomodoro technique, task management, and study analytics.">
<meta property="og:image" content="https://studyflow.salahuddin.codes/Assets/brain-duotone.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="StudyFlow - Focus & Productivity Timer">
<meta property="og:type" content="website">
<meta property="og:site_name" content="StudyFlow">
<meta property="og:locale" content="en_US">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://studyflow.salahuddin.codes/">
<meta property="twitter:title" content="StudyFlow - Focus & Productivity Timer">
<meta property="twitter:description"
content="Boost your productivity with StudyFlow - a beautiful focus timer app featuring Pomodoro technique, task management, and study analytics.">
<meta property="twitter:image" content="https://studyflow.salahuddin.codes/Assets/brain-duotone.png">
<meta property="twitter:image:alt" content="StudyFlow - Focus & Productivity Timer">
<meta property="twitter:creator" content="@studyflowapp">
<meta name="theme-color" content="#8b5cf6">
<meta name="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="StudyFlow">
<meta name="application-name" content="StudyFlow">
<meta name="msapplication-TileColor" content="#8b5cf6">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<!-- Performance: Preload critical assets -->
<link rel="preload" href="Assets/critical.css" as="style">
<link rel="preload" href="Assets/style.css" as="style">
<link rel="preload" href="Assets/script.js" as="script">
<!-- Performance: DNS prefetch for external resources -->
<link rel="dns-prefetch" href="//cdn.tailwindcss.com">
<link rel="dns-prefetch" href="//unpkg.com">
<link rel="dns-prefetch" href="//cdn.jsdelivr.net">
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com">
<!-- Performance: Preconnect to critical origins -->
<link rel="preconnect" href="https://cdn.tailwindcss.com" crossorigin>
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<!-- Performance: Resource hints -->
<link rel="prefetch" href="Assets/notes.js" as="script">
<link rel="prefetch" href="Assets/export.js" as="script">
<link rel="prefetch" href="Assets/v25-integration.js" as="script">
<link rel="icon" type="image/png" sizes="32x32" href="Assets/brain-duotone.png">
<link rel="icon" type="image/png" sizes="16x16" href="Assets/brain-duotone.png">
<link rel="apple-touch-icon" sizes="180x180" href="Assets/brain-duotone.png">
<link rel="manifest" href="manifest.json">
<link rel="canonical" href="https://studyflow.salahuddin.codes/">
<!-- Critical CSS Inline -->
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box
}
:root {
--primary: #8b5cf6;
--bg-dark: #0f172a;
--bg-card: rgba(30, 41, 59, .5);
--text-primary: #f8fafc
}
body {
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
color: var(--text-primary);
overflow-x: hidden;
min-height: 100vh
}
[v-cloak] {
display: none !important
}
.glass {
background: rgba(30, 41, 59, .4);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, .1)
}
.gradient-text {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
transition: all .3s ease
}
.animate-fadeIn {
animation: fadeIn .6s ease-out
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px)
}
to {
opacity: 1;
transform: translateY(0)
}
}
</style>
<link rel="stylesheet" href="Assets/style.css" media="print" onload="this.media='all'">
<noscript>
<link rel="stylesheet" href="Assets/style.css">
</noscript>
<link rel="stylesheet" href="Assets/custom-ai-fix.css">
<!-- Load Tailwind CSS -->
<script>
// Tailwind config must be defined before loading
window.tailwindConfig = {
theme: { extend: {} },
corePlugins: { preflight: true }
};
</script>
<script src="https://cdn.tailwindcss.com"></script>
<!-- Core Libraries -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.4.15/vue.global.prod.min.js"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@phosphor-icons/web" defer crossorigin="anonymous"></script>
<script src="Assets/chart.umd.min.js?v=8"
onerror="(function(){var s=document.createElement('script');s.src='https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js';document.head.appendChild(s);}())"></script>
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/index.global.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js" defer></script>
<script src="https://cdn.socket.io/4.7.2/socket.io.min.js" defer></script>
<script src="https://www.youtube.com/iframe_api" defer></script>
<!-- Translations -->
<script src="Assets/translations.js"></script>
<!-- Structured Data for SEO -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "StudyFlow",
"url": "https://studyflow.salahuddin.codes",
"description": "Focus & Productivity Timer with Pomodoro technique, task management, study analytics, and ambient music",
"applicationCategory": "ProductivityApplication",
"operatingSystem": "Web Browser, iOS, Android",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"author": {
"@type": "Person",
"name": "Salah Uddin Kader",
"url": "https://github.com/salahuddingfx"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.8",
"ratingCount": "127"
},
"screenshot": "https://studyflow.salahuddin.codes/Assets/brain-duotone.png"
}
</script>
<style>
@view-transition {
navigation: auto;
}
</style>
<!-- Error Handler for Blank Screen Issues -->
<script>
window.onerror = function (msg, url, line, col, error) {
console.error("Global Error:", msg, url, line, error);
// If Vue fails to mount, v-cloak might hide everything. specific fallback:
setTimeout(() => {
const app = document.getElementById('app');
if (app && getComputedStyle(app).display === 'none') {
// Force show
app.style.display = 'block';
alert("StudyFlow encountered an error starting up:\n" + msg + "\n\nPlease check console for details.");
}
}, 2000);
return false;
};
</script>
</head>
<body class="theme-dark">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-58B2CXSK"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="app" v-cloak>
<div :class="{ 'hidden': isTouchDevice }" class="custom-cursor" ref="cursor"></div>
<div :class="{ 'hidden': isTouchDevice }" class="custom-cursor-dot" ref="cursorDot"></div>
<div class="particle-container" ref="particleContainer"></div><audio ref="audioPlayer" @ended="onTrackEnded"
@error="handleAudioError" crossorigin="anonymous"></audio>
<div v-if="showYouTubePlayer && youtubeVideoId"
class="fixed bottom-20 sm:bottom-4 right-4 z-40 glass rounded-2xl p-3 sm:p-4 shadow-2xl w-[calc(100vw-2rem)] sm:w-auto max-w-sm">
<div class="flex items-center justify-between mb-2 sm:mb-3">
<div class="flex items-center gap-2">
<div class="w-6 h-6 sm:w-8 sm:h-8 rounded-lg bg-red-600 flex items-center justify-center"><i
class="ph-bold ph-youtube-logo text-xs sm:text-sm text-white"></i></div>
<div>
<div class="font-semibold text-xs sm:text-sm">YouTube Music</div>
<div class="text-[10px] sm:text-xs opacity-70">Playing from YouTube</div>
</div>
</div>
<button @click="stopYouTubeVideo" class="text-red-400 hover:text-red-300"><i
class="ph-bold ph-x text-base sm:text-lg"></i></button>
</div>
<div class="aspect-video rounded-lg overflow-hidden mb-2 sm:mb-3">
<div id="youtube-player" class="w-full h-full"></div>
</div>
<div class="flex items-center justify-center gap-1 sm:gap-2 flex-wrap">
<button @click="toggleYouTubeMute"
class="btn-secondary p-1 sm:p-1.5 rounded-full hover:bg-purple-600 transition-colors">
<i :class="youtubeMuted ? 'ph-bold ph-speaker-x' : 'ph-bold ph-speaker-high'" class="text-xs sm:text-sm"></i>
</button>
<div class="flex items-center gap-1">
<i class="ph-bold ph-speaker-low text-purple-400 text-[10px] sm:text-xs"></i>
<input type="range" min="0" max="100" v-model="youtubeVolume" @input="setYouTubeVolume"
class="w-10 sm:w-12 accent-purple-500">
<i class="ph-bold ph-speaker-high text-purple-400 text-[10px] sm:text-xs"></i>
</div>
<div class="flex items-center gap-1">
<span class="text-[10px] sm:text-xs text-purple-400">Speed</span>
<input type="range" min="0.25" max="2" step="0.25" v-model="youtubeSpeed" @input="setYouTubeSpeed"
class="w-8 sm:w-10 accent-purple-500">
<span class="text-[10px] sm:text-xs text-purple-400">{{ youtubeSpeed }}x</span>
</div>
<button @click="playYouTubeManually"
class="btn-primary p-1 sm:p-1.5 rounded-full hover:bg-pink-600 transition-colors">
<i :class="isPlaying ? 'ph-bold ph-pause' : 'ph-bold ph-play'" class="text-xs sm:text-sm"></i>
</button>
<button @click="openInYouTube"
class="btn-secondary p-1 sm:p-1.5 rounded-full hover:bg-red-600 transition-colors">
<i class="ph-bold ph-youtube-logo text-xs sm:text-sm"></i>
</button>
</div>
</div>
<div v-if="showLoginSuccess"
class="fixed inset-0 z-50 flex items-center justify-center bg-gradient-to-br from-indigo-900 via-purple-900 to-pink-900 modal-backdrop">
<div class="text-center animate-fadeIn">
<div class="mb-6 relative"><i class="ph-bold ph-check-circle text-8xl text-green-400 animate-pulse"></i>
<div class="absolute inset-0 flex items-center justify-center">
<div class="w-32 h-32 border-4 border-green-400 rounded-full animate-ping opacity-20"></div>
</div>
</div>
<h1 class="text-5xl font-bold gradient-text mb-4">Welcome Back!</h1>
<p class="text-purple-200 text-lg">{{ userFullName }}</p>
<div class="mt-8 flex justify-center">
<div class="flex gap-2">
<div class="w-3 h-3 bg-purple-400 rounded-full animate-bounce" style="animation-delay: 0s;"></div>
<div class="w-3 h-3 bg-pink-400 rounded-full animate-bounce" style="animation-delay: 0.1s;"></div>
<div class="w-3 h-3 bg-blue-400 rounded-full animate-bounce" style="animation-delay: 0.2s;"></div>
</div>
</div>
</div>
</div>
<div v-if="showLoginDoor"
class="fixed inset-0 z-50 flex items-center justify-center bg-gradient-to-br from-indigo-900 via-purple-900 to-pink-900">
<div class="relative w-full h-full flex items-center justify-center">
<div
class="login-door-animation absolute inset-0 bg-gradient-to-br from-purple-800 to-indigo-900 flex items-center justify-center"
style="transform-origin: left center;">
<div class="text-center"><i class="ph-bold ph-door-open text-9xl text-purple-300 mb-4"></i>
<h2 class="text-4xl font-bold text-white">Opening...</h2>
</div>
</div>
<div class="login-content-animation text-center"><i
class="ph-bold ph-check-circle text-8xl text-green-400 mb-4"></i>
<h1 class="text-5xl font-bold gradient-text">Welcome!</h1>
</div>
</div>
</div>
<div v-if="showLogoutAnimation" class="fixed inset-0 z-50 pointer-events-none overflow-hidden">
<div class="logout-animation absolute" :style="logoutButtonPosition">
<div class="glass-strong px-6 py-3 rounded-xl flex items-center gap-2 text-red-400"><i
class="ph-bold ph-sign-out text-xl"></i> <span class="font-semibold">Logout</span>
</div>
</div>
</div>
<div v-if="showLoader"
class="fixed inset-0 z-50 flex items-center justify-center bg-gradient-to-br from-indigo-900 via-purple-900 to-pink-900">
<div class="text-center animate-fadeIn">
<div class="mb-6"><i class="ph-bold ph-brain text-7xl text-purple-300 animate-spin"
style="animation-duration: 3s;"></i>
</div>
<h1 class="text-5xl font-bold gradient-text mb-4">StudyFlow</h1>
<p class="text-purple-200 text-lg">Your Focus Companion</p>
<div class="mt-8 flex justify-center">
<div class="w-48 h-1 bg-purple-900 rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-purple-400 to-pink-400 animate-pulse" style="width: 100%;"></div>
</div>
</div>
</div>
</div>
<div v-if="showOutro"
class="fixed inset-0 z-50 flex items-center justify-center bg-gradient-to-br from-indigo-900 via-purple-900 to-pink-900 modal-backdrop">
<div class="text-center animate-fadeIn">
<div class="mb-6"><i class="ph-bold ph-hand-waving text-7xl text-yellow-300 animate-pulse"></i>
</div>
<h1 class="text-5xl font-bold gradient-text mb-4">See You Soon!</h1>
<p class="text-purple-200 text-lg">Keep up the great work 🚀</p>
</div>
</div>
<div v-if="showDeveloperModal"
class="fixed inset-0 z-50 flex items-center justify-center p-4 modal-backdrop"
@click="showDeveloperModal = false">
<div
class="glass-strong rounded-3xl w-full max-w-2xl max-h-[85vh] flex flex-col animate-slideUp relative"
@click.stop>
<!-- Close Button -->
<button @click="showDeveloperModal = false" class="absolute top-4 right-4 z-10 p-2 rounded-full bg-black/20 hover:bg-black/40 text-white transition-colors">
<i class="ph-bold ph-x text-lg"></i>
</button>
<!-- Scrollable Content -->
<div class="overflow-y-auto p-4 sm:p-6 md:p-8 custom-scrollbar">
<div class="text-center mb-6 sm:mb-8 mt-2">
<div
class="w-24 h-24 sm:w-32 sm:h-32 mx-auto mb-4 rounded-full bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center text-4xl sm:text-5xl font-bold overflow-hidden border-4 border-white/10 shadow-lg">
<img src="https://avatars.githubusercontent.com/salahuddingfx" alt="Salah Uddin Kader"
class="w-full h-full object-cover">
</div>
<h3 class="text-2xl sm:text-3xl font-bold mb-2 text-white">Salah Uddin Kader</h3>
<p class="text-sm sm:text-base text-purple-300 font-medium bg-purple-500/10 py-1 px-4 rounded-full inline-block">Full Stack Developer & UI/UX Designer</p>
</div>
<div class="glass p-4 sm:p-6 rounded-xl mb-4 sm:mb-6 text-left">
<div class="flex items-center gap-2 mb-3"><i
class="ph-bold ph-user-circle text-xl sm:text-2xl text-purple-400"></i>
<h4 class="text-lg sm:text-xl font-bold">About</h4>
</div>
<p class="text-sm sm:text-base leading-relaxed text-gray-200">Passionate developer focused on creating beautiful, functional
applications that enhance productivity. Specialized in building intuitive user experiences with modern web
technologies.</p>
</div>
<div class="glass p-4 sm:p-6 rounded-xl mb-4 sm:mb-6 text-left">
<div class="flex items-center gap-2 mb-4"><i class="ph-bold ph-code text-xl sm:text-2xl text-purple-400"></i>
<h4 class="text-lg sm:text-xl font-bold">Skills</h4>
</div>
<div class="grid grid-cols-2 sm:grid-cols-2 md:grid-cols-3 gap-2 sm:gap-3">
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-file-vue text-lg sm:text-xl text-green-400"></i> <span
class="text-xs sm:text-sm font-medium">Vue.js</span>
</div>
<!-- Added Skills -->
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-atom text-lg sm:text-xl text-cyan-400"></i> <span
class="text-xs sm:text-sm font-medium">React.js</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-triangle text-lg sm:text-xl text-white"></i> <span
class="text-xs sm:text-sm font-medium">Next.js</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-file-js text-lg sm:text-xl text-yellow-400"></i> <span
class="text-xs sm:text-sm font-medium">JavaScript</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-file-code text-lg sm:text-xl text-blue-400"></i> <span
class="text-xs sm:text-sm font-medium">TypeScript</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-terminal-window text-lg sm:text-xl text-green-500"></i> <span
class="text-xs sm:text-sm font-medium">Node.js</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-brackets-curly text-lg sm:text-xl text-gray-300"></i> <span
class="text-xs sm:text-sm font-medium">Express.js</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-file-code text-lg sm:text-xl text-yellow-300"></i> <span
class="text-xs sm:text-sm font-medium">Python</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-rows text-lg sm:text-xl text-green-600"></i> <span
class="text-xs sm:text-sm font-medium">Django</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-database text-lg sm:text-xl text-green-400"></i> <span
class="text-xs sm:text-sm font-medium">MongoDB</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-database text-lg sm:text-xl text-blue-500"></i> <span
class="text-xs sm:text-sm font-medium">MySQL</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-rocket-launch text-lg sm:text-xl text-orange-500"></i> <span
class="text-xs sm:text-sm font-medium">Astro</span>
</div>
<!-- End Added Skills -->
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-file-css text-lg sm:text-xl text-blue-400"></i> <span
class="text-xs sm:text-sm font-medium">CSS/Tailwind</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-file-html text-lg sm:text-xl text-orange-400"></i> <span
class="text-xs sm:text-sm font-medium">HTML5</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-figma-logo text-lg sm:text-xl text-purple-400"></i> <span
class="text-xs sm:text-sm font-medium">Figma</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-git-branch text-lg sm:text-xl text-red-400"></i> <span
class="text-xs sm:text-sm font-medium">Git</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-image text-lg sm:text-xl text-blue-500"></i> <span
class="text-xs sm:text-sm font-medium">Photoshop</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-pen-nib text-lg sm:text-xl text-orange-500"></i> <span
class="text-xs sm:text-sm font-medium">Illustrator</span>
</div>
<div class="glass-strong p-2 sm:p-3 rounded-lg flex items-center gap-2"><i
class="ph-bold ph-copyright text-lg sm:text-xl text-blue-600"></i> <span
class="text-xs sm:text-sm font-medium">C</span>
</div>
</div>
</div>
<div class="glass p-4 sm:p-6 rounded-xl mb-4 sm:mb-6">
<div class="flex items-center gap-2 mb-4"><i
class="ph-bold ph-share-network text-xl sm:text-2xl text-purple-400"></i>
<h4 class="text-lg sm:text-xl font-bold">Connect</h4>
</div>
<div class="grid grid-cols-2 gap-2 sm:gap-3"><a href="https://github.com/salahuddingfx" target="_blank"
rel="noopener noreferrer"
class="glass-strong px-3 sm:px-4 py-2 sm:py-3 rounded-lg flex items-center gap-2 hover:bg-white/10"> <i
class="ph-bold ph-github-logo text-lg sm:text-xl"></i> <span
class="text-xs sm:text-sm font-medium">GitHub</span> </a> <a href="https://facebook.com/salahuddingfx"
target="_blank" rel="noopener noreferrer"
class="glass-strong px-3 sm:px-4 py-2 sm:py-3 rounded-lg flex items-center gap-2 hover:bg-white/10"> <i
class="ph-bold ph-facebook-logo text-lg sm:text-xl text-blue-400"></i> <span
class="text-xs sm:text-sm font-medium">Facebook</span> </a> <a href="https://twitter.com/salahuddingfx"
target="_blank" rel="noopener noreferrer"
class="glass-strong px-3 sm:px-4 py-2 sm:py-3 rounded-lg flex items-center gap-2 hover:bg-white/10"> <i
class="ph-bold ph-twitter-logo text-lg sm:text-xl text-sky-400"></i> <span
class="text-xs sm:text-sm font-medium">Twitter</span> </a> <a href="mailto:salauddinkaderappy@gmail.com"
class="glass-strong px-3 sm:px-4 py-2 sm:py-3 rounded-lg flex items-center gap-2 hover:bg-white/10"> <i
class="ph-bold ph-envelope text-lg sm:text-xl text-purple-400"></i> <span
class="text-xs sm:text-sm font-medium">Email</span> </a>
</div>
</div>
<!-- Close Button (Bottom) -->
<button @click="showDeveloperModal = false"
class="w-full btn-primary px-6 py-3 rounded-xl font-semibold text-white mb-2 sm:hidden"> Close </button>
</div> <!-- Close overflow-y-auto -->
</div> <!-- Close glass-strong -->
</div> <!-- Close backdrop -->
<!-- Achievement Level Modal -->
<div v-if="showAchievementModal"
class="fixed inset-0 z-50 flex items-center justify-center p-4 modal-backdrop overflow-y-auto"
@click="showAchievementModal = false">
<div class="glass-strong rounded-3xl p-1 max-w-3xl w-full my-8 animate-slideUp overflow-hidden" @click.stop>
<div class="bg-gradient-to-br from-purple-900/50 to-indigo-900/50 p-6 sm:p-8">
<div class="flex justify-between items-start mb-6">
<h2 class="text-3xl font-bold gradient-text">Achievement System</h2>
<button @click="showAchievementModal = false" class="text-white/60 hover:text-white transition-colors"><i
class="ph-bold ph-x text-2xl"></i></button>
</div>
<!-- User Level Info -->
<div
class="bg-gradient-to-r from-indigo-900/40 to-purple-900/40 rounded-2xl p-6 mb-6 border border-purple-500/30">
<div class="flex items-center justify-between mb-4">
<div>
<p class="text-sm text-gray-300 mb-1">Current Level</p>
<h3 class="text-4xl font-bold gradient-text">{{ userLevel.levelName }}</h3>
</div>
<div class="text-right">
<div class="text-5xl font-bold text-purple-400">{{ userLevel.level }}/5</div>
<p class="text-sm text-gray-300 mt-2">{{ userLevel.points }} points</p>
</div>
</div>
<!-- Level Progress Bar -->
<div class="w-full bg-black/30 rounded-full h-3 overflow-hidden">
<div :style="{ width: levelProgressPercent + '%' }"
class="bg-gradient-to-r from-purple-500 to-pink-500 h-full transition-all duration-500"></div>
</div>
<p class="text-xs text-gray-400 mt-2">{{ userLevel.points }}/3000 points to Diamond</p>
</div>
<!-- Level Tiers -->
<div class="mb-6">
<h3 class="text-lg font-semibold mb-3">Achievement Levels</h3>
<div class="grid grid-cols-1 sm:grid-cols-5 gap-2">
<div v-for="tier in levelTiers" :key="tier.level"
:class="{'ring-2 ring-yellow-400 scale-105': userLevel.level >= tier.level}"
class="p-3 rounded-lg text-center transition-all duration-300"
:style="{ backgroundColor: tier.color + '20', borderColor: tier.color + '60' }"
style="border: 1px solid;">
<div class="font-bold text-sm" :style="{ color: tier.color }">{{ tier.name }}</div>
<div class="text-xs text-gray-300">{{ tier.range }}</div>
</div>
</div>
</div>
<!-- Stats -->
<div class="grid grid-cols-2 gap-3 mb-6">
<div class="bg-black/20 rounded-lg p-4">
<p class="text-gray-300 text-sm mb-1">Achievements Unlocked</p>
<p class="text-2xl font-bold text-purple-400">{{ userLevel.totalUnlocked }}/{{ totalAchievements }}</p>
</div>
<div class="bg-black/20 rounded-lg p-4">
<p class="text-gray-300 text-sm mb-1">Completion Rate</p>
<p class="text-2xl font-bold text-pink-400">{{ Math.round((userLevel.totalUnlocked/totalAchievements)*100)
}}%</p>
</div>
</div>
<button @click="showAchievementModal = false"
class="w-full btn-primary px-6 py-3 rounded-xl font-semibold text-white"> {{ t('close') }} </button>
</div>
</div>
</div>
<!-- Language Modal -->
<div v-if="showLanguageModal" class="fixed inset-0 z-50 flex items-center justify-center p-4 modal-backdrop"
@click="showLanguageModal = false">
<div
class="glass-strong rounded-3xl p-1 max-w-sm w-full animate-slideUp overflow-hidden transform scale-100 transition-all"
@click.stop>
<div class="bg-gradient-to-br from-purple-900/50 to-indigo-900/50 p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold gradient-text">{{ t('switch_lang') }}</h2>
<button @click="showLanguageModal = false" class="text-white/60 hover:text-white transition-colors"><i
class="ph-bold ph-x text-2xl"></i></button>
</div>
<div class="space-y-3">
<button @click="setLanguage('en')"
class="w-full p-4 rounded-xl flex items-center justify-between transition-all group border border-transparent"
:class="currentLang === 'en' ? 'bg-purple-600 border-purple-400' : 'glass hover:bg-white/5'">
<div class="flex items-center gap-3">
<span class="text-2xl">🇺🇸</span>
<span class="font-semibold text-lg">English</span>
</div>
<i v-if="currentLang === 'en'" class="ph-bold ph-check-circle text-2xl text-white"></i>
</button>
<button @click="setLanguage('bn')"
class="w-full p-4 rounded-xl flex items-center justify-between transition-all group border border-transparent"
:class="currentLang === 'bn' ? 'bg-purple-600 border-purple-400' : 'glass hover:bg-white/5'">
<div class="flex items-center gap-3">
<span class="text-2xl">🇧🇩</span>
<span class="font-semibold text-lg">বাংলা</span>
</div>
<i v-if="currentLang === 'bn'" class="ph-bold ph-check-circle text-2xl text-white"></i>
</button>
</div>
<p class="text-center text-xs opacity-50 mt-6">Select your preferred language interface.</p>
</div>
</div>
</div>
<!-- PWA Install Modal -->
<div v-if="showInstallModal" class="fixed inset-0 z-50 flex items-center justify-center p-4 modal-backdrop"
@click="showInstallModal = false">
<div
class="glass-strong rounded-3xl p-1 max-w-sm w-full animate-slideUp overflow-hidden transform scale-100 transition-all border border-purple-500/30 shadow-2xl shadow-purple-900/50"
@click.stop>
<div class="bg-gradient-to-br from-purple-900/80 to-indigo-900/80 p-8 text-center relative overflow-hidden">
<!-- Decorative Background Elements -->
<div class="absolute top-0 right-0 w-32 h-32 bg-purple-500/20 rounded-full blur-3xl -mr-16 -mt-16"></div>
<div class="absolute bottom-0 left-0 w-32 h-32 bg-blue-500/20 rounded-full blur-3xl -ml-16 -mb-16"></div>
<div class="relative z-10">
<div class="w-20 h-20 mx-auto bg-gradient-to-br from-purple-500 to-pink-500 rounded-2xl flex items-center justify-center mb-6 shadow-lg shadow-purple-500/30 rotate-3 hover:rotate-6 transition-transform duration-500">
<i class="ph-bold ph-download-simple text-4xl text-white"></i>
</div>
<h2 class="text-2xl font-bold gradient-text mb-2">Install App</h2>
<p class="text-gray-300 text-sm mb-8 leading-relaxed">
Install StudyFlow for the best experience. Get offline access, smoother performance, and quick access from your home screen.
</p>
<div class="space-y-3">
<button @click="installApp"
class="w-full btn-primary py-3.5 rounded-xl font-bold text-white shadow-lg shadow-purple-500/25 flex items-center justify-center gap-2 group transform hover:scale-[1.02] transition-all">
<i class="ph-bold ph-download-simple group-hover:animate-bounce"></i>
Install Now
</button>
<button @click="showInstallModal = false"
class="w-full py-3 rounded-xl font-medium text-gray-400 hover:text-white hover:bg-white/5 transition-colors text-sm">
Maybe Later
</button>
</div>
</div>
</div>
</div>
</div>
<div v-if="showDataModal"
class="fixed inset-0 z-50 flex items-center justify-center p-4 modal-backdrop overflow-y-auto"
@click="showDataModal = false">
<div class="glass-strong rounded-3xl p-1 max-w-2xl w-full my-4 sm:my-8 animate-slideUp overflow-hidden" @click.stop>
<div class="bg-gradient-to-br from-purple-900/50 to-indigo-900/50 p-4 sm:p-8">
<div class="flex items-center justify-between mb-6 sm:mb-8">
<div>
<h3 class="text-xl sm:text-2xl font-bold flex items-center gap-2"><i class="ph-bold ph-database text-purple-400"></i>
Data Center</h3>
<p class="text-xs sm:text-sm opacity-60">Manage your progress and backups</p>
</div>
<button @click="showDataModal = false"
class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center hover:bg-white/20 transition-colors"><i
class="ph-bold ph-x"></i></button>
</div>
<div class="grid grid-cols-3 gap-2 sm:gap-3 mb-6 sm:mb-8">
<div class="glass p-2 sm:p-3 rounded-xl text-center">
<i class="ph-bold ph-clock text-purple-400 text-lg sm:text-xl mb-1"></i>
<div class="text-base sm:text-lg font-bold">{{ Math.floor(totalFocusTime / 60) }}h</div>
<div class="text-[10px] sm:text-xs opacity-60">Focus Time</div>
</div>
<div class="glass p-2 sm:p-3 rounded-xl text-center">
<i class="ph-bold ph-check-circle text-green-400 text-lg sm:text-xl mb-1"></i>
<div class="text-base sm:text-lg font-bold">{{ completedTasksCount }}</div>
<div class="text-[10px] sm:text-xs opacity-60">Tasks Done</div>
</div>
<div class="glass p-2 sm:p-3 rounded-xl text-center">
<i class="ph-bold ph-fire text-orange-400 text-lg sm:text-xl mb-1"></i>
<div class="text-base sm:text-lg font-bold">{{ currentStreak }}</div>
<div class="text-[10px] sm:text-xs opacity-60">Day Streak</div>
</div>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4">
<div
class="glass p-4 sm:p-5 rounded-2xl hover:bg-white/5 transition-colors border border-purple-500/20 relative overflow-hidden group">
<div
class="absolute top-0 right-0 w-20 h-20 bg-purple-500/10 rounded-bl-full -mr-4 -mt-4 transition-transform group-hover:scale-110">
</div>
<div class="relative z-10">
<div class="flex items-center gap-3 mb-3">
<div
class="w-10 h-10 sm:w-12 sm:h-12 rounded-xl bg-purple-600/20 flex items-center justify-center text-purple-400">
<i class="ph-bold ph-file-pdf text-xl sm:text-2xl"></i>
</div>
<h4 class="text-base sm:text-lg font-bold">Performance Report</h4>
</div>
<p class="text-xs opacity-70 mb-4 min-h-[2rem] sm:h-8">Download a beautifully designed PDF summary.</p>
<button @click="exportUserData"
class="w-full btn-primary py-2.5 rounded-xl font-semibold text-sm flex items-center justify-center gap-2">
<i class="ph-bold ph-download-simple"></i> Download PDF
</button>
</div>
</div>
<div
class="glass p-4 sm:p-5 rounded-2xl hover:bg-white/5 transition-colors border border-blue-500/20 relative overflow-hidden group">
<div
class="absolute top-0 right-0 w-20 h-20 bg-blue-500/10 rounded-bl-full -mr-4 -mt-4 transition-transform group-hover:scale-110">
</div>
<div class="relative z-10">
<div class="flex items-center gap-3 mb-3">
<div class="w-10 h-10 sm:w-12 sm:h-12 rounded-xl bg-blue-600/20 flex items-center justify-center text-blue-400">
<i class="ph-bold ph-cloud-arrow-up text-xl sm:text-2xl"></i>
</div>
<h4 class="text-base sm:text-lg font-bold">System Backup</h4>
</div>
<p class="text-xs opacity-70 mb-4 min-h-[2rem] sm:h-8">Save raw data to restore later or transfer.</p>
<div class="flex gap-2">
<button @click="downloadBackup"
class="flex-1 glass-strong py-2.5 rounded-xl font-semibold text-sm hover:bg-white/10 flex items-center justify-center gap-1">
<i class="ph-bold ph-download"></i> Backup
</button>
<label
class="flex-1 glass-strong py-2.5 rounded-xl font-semibold text-sm hover:bg-white/10 flex items-center justify-center gap-1 cursor-pointer">
<input type="file" accept=".json" @change="handleImportFile" class="hidden">
<i class="ph-bold ph-upload"></i> Restore
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div v-if="showChangeCredentials" class="fixed inset-0 z-50 flex items-center justify-center p-4 modal-backdrop"
@click="showChangeCredentials = false">
<div class="glass-strong rounded-3xl p-8 max-w-md w-full animate-slideUp" @click.stop>
<h3 class="text-2xl font-bold mb-6">Change Credentials</h3>
<form @submit.prevent="handleChangeCredentials">
<div class="mb-4"><label class="block text-sm font-medium mb-2">New Username</label> <input
v-model="credentialsForm.newUsername" type="text" required class="w-full px-4 py-3 rounded-xl glass"
placeholder="Enter new username">
</div>
<div class="mb-4"><label class="block text-sm font-medium mb-2">Current Password</label>
<div class="relative"><input v-model="credentialsForm.currentPassword"
:type="showCurrentPassword ? 'text' : 'password'" required
class="w-full px-4 py-3 rounded-xl glass pr-12" placeholder="Verify current password"> <button
type="button" @click="showCurrentPassword = !showCurrentPassword"
class="absolute right-3 top-1/2 transform -translate-y-1/2 hover:text-purple-400"> <i
:class="showCurrentPassword ? 'ph-bold ph-eye-slash' : 'ph-bold ph-eye'" class="text-xl"></i>
</button>
</div>
</div>
<div class="mb-6"><label class="block text-sm font-medium mb-2">New Password (Optional)</label>
<div class="relative"><input v-model="credentialsForm.newPassword"
:type="showNewPassword ? 'text' : 'password'" class="w-full px-4 py-3 rounded-xl glass pr-12"
placeholder="Leave blank to keep current" @input="checkNewPasswordStrength"> <button type="button"
@click="showNewPassword = !showNewPassword"
class="absolute right-3 top-1/2 transform -translate-y-1/2 hover:text-purple-400"> <i
:class="showNewPassword ? 'ph-bold ph-eye-slash' : 'ph-bold ph-eye'" class="text-xl"></i> </button>
</div>
<div v-if="credentialsForm.newPassword" class="mt-2">
<div class="flex items-center gap-2 mb-1">
<div class="flex-1 h-2 bg-gray-700 rounded-full overflow-hidden">
<div class="h-full transition-all duration-300" :class="newPasswordStrengthColor"
:style="{ width: newPasswordStrengthWidth }"></div>
</div><span class="text-xs font-medium" :class="newPasswordStrengthTextColor"> {{
newPasswordStrengthText }} </span>
</div>
</div>
</div>
<div class="flex gap-3"><button type="button" @click="showChangeCredentials = false"
class="flex-1 btn-secondary px-6 py-3 rounded-xl font-semibold text-white"> Cancel </button> <button
type="submit" class="flex-1 btn-primary px-6 py-3 rounded-xl font-semibold text-white"> Update </button>
</div>
</form>
</div>
</div>
<div v-if="showThemeModal"
class="fixed inset-0 z-50 flex items-center justify-center p-4 modal-backdrop overflow-y-auto"
@click="showThemeModal = false">
<div class="theme-modal-panel glass-strong rounded-3xl p-6 md:p-8 max-w-2xl w-full my-8 animate-slideUp max-h-[85vh] flex flex-col" @click.stop>
<div class="flex items-center justify-between mb-4 shrink-0">
<h3 class="text-2xl font-bold flex items-center gap-2"><i class="ph-bold ph-paint-brush-broad text-purple-400"></i>
Choose Your Theme</h3>
<button @click="showThemeModal = false" class="w-10 h-10 rounded-xl hover:bg-white/10 flex items-center justify-center"
aria-label="Close theme selector" title="Close">
<i class="ph-bold ph-x text-xl"></i>
</button>
</div>
<div class="theme-grid grid grid-cols-2 md:grid-cols-3 gap-3 md:gap-4 mb-4 overflow-y-auto custom-scrollbar p-1"><button @click="changeTheme('dark')"
:class="currentTheme === 'dark' ? 'ring-4 ring-purple-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center"><i class="ph-bold ph-moon text-3xl mb-2"></i>
<div class="font-semibold">
Dark
</div>
</div>
</div>
</button> <button @click="changeTheme('light')"
:class="currentTheme === 'light' ? 'ring-4 ring-blue-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 50%, #bcccdc 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center text-gray-800"><i class="ph-bold ph-sun text-3xl mb-2"></i>
<div class="font-semibold">
Light
</div>
</div>
</div>
</button> <button @click="changeTheme('midnight')"
:class="currentTheme === 'midnight' ? 'ring-4 ring-purple-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center"><i class="ph-bold ph-moon-stars text-3xl mb-2"></i>
<div class="font-semibold">
Midnight
</div>
</div>
</div>
</button> <button @click="changeTheme('morning')"
:class="currentTheme === 'morning' ? 'ring-4 ring-orange-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 50%, #ffecd2 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center"><i class="ph-bold ph-sun-horizon text-3xl mb-2"></i>
<div class="font-semibold">
Morning
</div>
</div>
</div>
</button> <button @click="changeTheme('evening')"
:class="currentTheme === 'evening' ? 'ring-4 ring-blue-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center"><i class="ph-bold ph-cloud-sun text-3xl mb-2"></i>
<div class="font-semibold">
Evening
</div>
</div>
</div>
</button> <button @click="changeTheme('forest')"
:class="currentTheme === 'forest' ? 'ring-4 ring-green-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #134e5e 0%, #71b280 50%, #0a3d3a 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center"><i class="ph-bold ph-tree text-3xl mb-2"></i>
<div class="font-semibold">
Forest
</div>
</div>
</div>
</button> <button @click="changeTheme('sunset')"
:class="currentTheme === 'sunset' ? 'ring-4 ring-red-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #ff512f 0%, #dd2476 50%, #f09819 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center"><i class="ph-bold ph-sunset text-3xl mb-2"></i>
<div class="font-semibold">
Sunset
</div>
</div>
</div>
</button> <button @click="changeTheme('ocean')"
:class="currentTheme === 'ocean' ? 'ring-4 ring-cyan-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #667db6 0%, #0082c8 50%, #667db6 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center"><i class="ph-bold ph-drop text-3xl mb-2"></i>
<div class="font-semibold">
Ocean
</div>
</div>
</div>
</button> <button @click="changeTheme('lavender')"
:class="currentTheme === 'lavender' ? 'ring-4 ring-purple-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #a8c0ff 0%, #3f2b96 50%, #a8c0ff 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center"><i class="ph-bold ph-flower text-3xl mb-2"></i>
<div class="font-semibold">
Lavender
</div>
</div>
</div>
</button> <button @click="changeTheme('cherry')"
:class="currentTheme === 'cherry' ? 'ring-4 ring-pink-500' : ''"
class="relative overflow-hidden rounded-xl h-32 transition-all hover:scale-105"
style="background: linear-gradient(135deg, #eb3349 0%, #f45c43 50%, #eb3349 100%)">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center"><i class="ph-bold ph-heart text-3xl mb-2"></i>
<div class="font-semibold">
Cherry
</div>
</div>
</div>
</button>
</div>
<div class="theme-modal-footer">
<button @click="showThemeModal = false"
class="w-full btn-primary px-6 py-3 rounded-xl font-semibold text-white"> Done </button>
</div>
</div>
</div>
<div v-if="showNotificationSettings"
class="fixed inset-0 z-50 flex items-center justify-center p-4 modal-backdrop overflow-y-auto"
@click="showNotificationSettings = false">
<div class="glass-strong rounded-3xl p-6 md:p-8 max-w-md w-full my-8 animate-slideUp" @click.stop>
<h3 class="text-2xl font-bold mb-6 flex items-center gap-2"><i class="ph-bold ph-bell text-purple-400"></i>
Notifications</h3>
<div class="space-y-6">
<div class="flex items-center justify-between">
<div>
<div class="font-semibold">Enable Notifications</div>
<div class="text-sm text-gray-400">Allow browser notifications</div>
</div>
<button @click="requestNotificationPermission()"
:class="notificationsEnabled ? 'bg-green-500' : 'bg-gray-600'"
class="relative inline-flex h-6 w-11 items-center rounded-full transition-colors">
<span :class="notificationsEnabled ? 'translate-x-6' : 'translate-x-1'"
class="inline-block h-4 w-4 transform rounded-full bg-white transition-transform"></span>
</button>
</div>
<div class="flex items-center justify-between">
<div>
<div class="font-semibold">Study Reminders</div>
<div class="text-sm text-gray-400">Remind to study when inactive</div>
</div>
<button @click="studyReminders = !studyReminders; saveNotificationSettings()"
:class="studyReminders ? 'bg-purple-500' : 'bg-gray-600'"
class="relative inline-flex h-6 w-11 items-center rounded-full transition-colors">
<span :class="studyReminders ? 'translate-x-6' : 'translate-x-1'"
class="inline-block h-4 w-4 transform rounded-full bg-white transition-transform"></span>
</button>
</div>
<div v-if="studyReminders" class="ml-4">
<label class="block text-sm font-medium mb-2">Reminder Interval (minutes)</label>
<input v-model.number="reminderInterval" @change="saveNotificationSettings()" type="number" min="15"
max="240" class="w-full px-3 py-2 rounded-xl glass border-0 focus:ring-2 focus:ring-purple-500">
</div>
<div class="flex items-center justify-between">
<div>
<div class="font-semibold">Goal Deadlines</div>
<div class="text-sm text-gray-400">Alert for upcoming deadlines</div>
</div>
<button @click="goalDeadlines = !goalDeadlines; saveNotificationSettings()"
:class="goalDeadlines ? 'bg-purple-500' : 'bg-gray-600'"
class="relative inline-flex h-6 w-11 items-center rounded-full transition-colors">
<span :class="goalDeadlines ? 'translate-x-6' : 'translate-x-1'"
class="inline-block h-4 w-4 transform rounded-full bg-white transition-transform"></span>
</button>
</div>
<div class="flex items-center justify-between">
<div>
<div class="font-semibold">Streak Alerts</div>
<div class="text-sm text-gray-400">Warn when streak is at risk</div>
</div>
<button @click="streakAlerts = !streakAlerts; saveNotificationSettings()"
:class="streakAlerts ? 'bg-purple-500' : 'bg-gray-600'"
class="relative inline-flex h-6 w-11 items-center rounded-full transition-colors">
<span :class="streakAlerts ? 'translate-x-6' : 'translate-x-1'"
class="inline-block h-4 w-4 transform rounded-full bg-white transition-transform"></span>
</button>
</div>
</div>
<button @click="showNotificationSettings = false"
class="w-full btn-primary px-6 py-3 rounded-xl font-semibold text-white mt-6"> Done </button>
</div>
</div>
<div v-if="showAdvancedTimer"
class="fixed inset-0 z-50 flex items-center justify-center p-4 modal-backdrop overflow-y-auto"
@click="showAdvancedTimer = false">
<div class="glass-strong rounded-3xl p-6 md:p-8 max-w-md w-full my-8 animate-slideUp" @click.stop>
<h3 class="text-2xl font-bold mb-6 flex items-center gap-2"><i class="ph-bold ph-timer text-purple-400"></i>
Advanced Timer</h3>
<div class="space-y-6">
<div>
<label class="block text-sm font-medium mb-2">Focus Duration (minutes)</label>
<input v-model.number="focusDuration" @change="saveTimerSettings()" type="number" min="1" max="120"
class="w-full px-3 py-2 rounded-xl glass border-0 focus:ring-2 focus:ring-purple-500">
</div>
<div>
<label class="block text-sm font-medium mb-2">Short Break Duration (minutes)</label>
<input v-model.number="shortBreakDuration" @change="saveTimerSettings()" type="number" min="1" max="30"
class="w-full px-3 py-2 rounded-xl glass border-0 focus:ring-2 focus:ring-purple-500">
</div>
<div>
<label class="block text-sm font-medium mb-2">Long Break Duration (minutes)</label>
<input v-model.number="longBreakDuration" @change="saveTimerSettings()" type="number" min="1" max="60"