-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
768 lines (694 loc) · 65.1 KB
/
Copy pathindex.html
File metadata and controls
768 lines (694 loc) · 65.1 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenNotes</title>
<!-- Google Fonts: Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/src/style.css" />
</head>
<body>
<!-- Onboarding Overlay -->
<div id="onboarding-overlay" class="onboarding-overlay" style="display: none;">
<div class="onboarding-card">
<h2>Welcome to OpenNotes</h2>
<p>Let's set up your personal workspace.</p>
<div class="onboarding-input-group">
<label for="onboarding-name">What's your name?</label>
<input type="text" id="onboarding-name" placeholder="e.g. John Doe" />
</div>
<div class="onboarding-input-group">
<label for="onboarding-role">What do you do?</label>
<input type="text" id="onboarding-role" placeholder="e.g. Software Engineer" />
</div>
<button id="onboarding-submit" class="onboarding-btn">Enter Workspace</button>
</div>
</div>
<div id="dynamic-island" class="dynamic-island state-time">
<div class="island-inner">
<!-- Time View -->
<div class="island-time-view" id="island-clock-time">12:00 PM</div>
<!-- Music View -->
<div class="island-music-view">
<div class="island-main">
<div class="island-icon">
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none"><circle cx="5.5" cy="17.5" r="2.5"></circle><circle cx="17.5" cy="15.5" r="2.5"></circle><path d="M8 17V5l12-2v12"></path></svg>
</div>
<div class="island-content">
<div id="mpris-title" class="island-title">Not Playing</div>
<div id="mpris-artist" class="island-artist">--</div>
</div>
<div id="mpris-status" class="island-status"></div>
</div>
<div class="island-controls">
<button class="island-btn" id="mpris-prev-btn">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line></svg>
</button>
<button class="island-btn" id="mpris-play-btn">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>
</button>
<button class="island-btn" id="mpris-next-btn">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line></svg>
</button>
</div>
</div>
</div>
</div>
<div id="app">
<div class="app-container">
<!-- Sidebar -->
<aside class="sidebar">
<!-- Dashboard Sidebar (Home Page Only) -->
<div class="dashboard-only" style="display: flex; flex-direction: column; height: 100%;">
<div class="sidebar-brand">
<h1>OpenNotes</h1>
</div>
<div class="sidebar-profile">
<div class="profile-avatar" id="sidebar-profile-avatar">
U
</div>
<div class="profile-info">
<div class="profile-name" id="sidebar-profile-name">Amanda Smith</div>
<div class="profile-type" id="sidebar-profile-type">Professional Account</div>
</div>
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
<div class="sidebar-nav">
<div class="nav-section">
<div class="nav-title">Workspace</div>
<a href="#" class="nav-link" id="nav-dashboard-btn" onclick="toggleDashboardBanner(); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg> Dashboard</a>
<a href="#" class="nav-link active" id="nav-projects-btn" onclick="document.getElementById('view-grid-btn').click(); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg> Projects</a>
<a href="#" class="nav-link" id="nav-tasks-btn" onclick="toggleTasksPanel(); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg> Tasks</a>
<a href="#" class="nav-link" id="nav-session-btn" onclick="showPanel('home-session', 'nav-session-btn'); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> Session</a>
<a href="#" class="nav-link" id="nav-scratchpad-btn" onclick="showPanel('home-scratchpad', 'nav-scratchpad-btn'); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg> Scratchpad</a>
<a href="#" class="nav-link" id="nav-college-btn" onclick="toggleCollegePanel(); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><path d="M22 10v6M2 10l10-5 10 5-10 5z"></path><path d="M6 12v5c0 2 2 3 6 3s6-1 6-3v-5"></path></svg> College Notes</a>
</div>
<div class="nav-section" style="margin-top: 32px;">
<div class="nav-title" style="display: flex; justify-content: space-between; align-items: center;">
Quicklinks
<button onclick="toggleQuicklinkForm()" style="background: none; border: none; color: var(--accent-color); cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; height: 16px;">+</button>
</div>
<div id="quicklink-form" style="display: none; flex-direction: column; gap: 8px; margin-bottom: 12px;">
<input type="text" id="new-quicklink-title" placeholder="Title (e.g. Figma)" style="padding: 6px 10px; border-radius: 6px; border: 1px solid var(--panel-border); font-family: inherit; font-size: 0.85rem; outline: none; background: transparent; color: var(--text-primary);" />
<input type="text" id="new-quicklink-url" placeholder="URL (e.g. figma.com)" style="padding: 6px 10px; border-radius: 6px; border: 1px solid var(--panel-border); font-family: inherit; font-size: 0.85rem; outline: none; background: transparent; color: var(--text-primary);" />
<button onclick="saveNewQuicklink()" style="background: var(--accent-color); color: #fff; border: none; padding: 6px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.85rem;">Add Link</button>
</div>
<div id="quicklinks-container" style="display: flex; flex-direction: column; gap: 4px;">
<!-- JS injected quicklinks -->
</div>
</div>
</div>
<div style="margin-top: auto; padding: 0 24px 24px 24px;">
<a href="#" class="nav-link" id="nav-settings-btn" style="display: flex; gap: 12px; align-items: center; color: var(--text-secondary); text-decoration: none;" onclick="showPanel('home-settings', 'nav-settings-btn'); return false;">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
Settings
</a>
</div>
</div>
<!-- Editor Sidebar (Editor Mode Only) -->
<div class="editor-only" style="display: flex; flex-direction: column; height: 100%;">
<div class="sidebar-header-old" style="padding: 24px 20px 16px; display: flex; justify-content: space-between; align-items: center;">
<h1 id="editor-home-btn" title="Return to Dashboard" style="cursor: pointer; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; background: linear-gradient(135deg, #4a3c31, #8c7a6b); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">OpenNotes</h1>
<button id="new-note-btn" class="glass-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</button>
</div>
<div class="search-container" style="padding: 0 20px 16px; position: relative;">
<svg class="search-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="position: absolute; left: 32px; top: 10px; color: var(--text-secondary);"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
<input type="text" id="search-input" class="search-input" placeholder="Search notes..." />
</div>
<div class="notes-list" id="notes-list">
<!-- Notes injected by JS -->
</div>
</div>
</aside>
<!-- Main Editor -->
<main class="editor-area">
<div class="editor-header">
<input type="text" id="note-title" placeholder="Note Title" autocomplete="off" />
<div class="editor-actions">
<span id="save-indicator" class="save-indicator">Saved</span>
<button id="export-note-btn" class="icon-btn" title="Export Note">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>
</button>
<button id="delete-note-btn" class="icon-btn" title="Delete Note">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line></svg>
</button>
</div>
</div>
<div class="editor-content">
<div id="note-body" contenteditable="true" data-placeholder="Start typing your note here..."></div>
<ul id="link-dropdown" class="link-dropdown"></ul>
</div>
<!-- Floating Toolbar -->
<div id="floating-toolbar" class="floating-toolbar">
<button class="toolbar-btn" data-command="bold" title="Bold">B</button>
<button class="toolbar-btn" data-command="italic" title="Italic" style="font-style: italic;">I</button>
<button class="toolbar-btn" data-command="underline" title="Underline" style="text-decoration: underline;">U</button>
<div class="toolbar-divider"></div>
<button class="toolbar-btn color-btn" data-command="foreColor" data-value="#ea580c" title="Orange Text"><div style="background:#ea580c; width:14px; height:14px; border-radius:50%;"></div></button>
<button class="toolbar-btn color-btn" data-command="foreColor" data-value="#2563eb" title="Blue Text"><div style="background:#2563eb; width:14px; height:14px; border-radius:50%;"></div></button>
<button class="toolbar-btn color-btn" data-command="foreColor" data-value="#4a3c31" title="Default Text"><div style="background:#4a3c31; width:14px; height:14px; border-radius:50%;"></div></button>
<div class="toolbar-divider"></div>
<button class="toolbar-btn color-btn" data-command="hiliteColor" data-value="#fef08a" title="Yellow Highlight"><div style="background:#fef08a; width:14px; height:14px; border-radius:3px;"></div></button>
<button class="toolbar-btn color-btn" data-command="hiliteColor" data-value="#bbf7d0" title="Green Highlight"><div style="background:#bbf7d0; width:14px; height:14px; border-radius:3px;"></div></button>
<button class="toolbar-btn color-btn" data-command="hiliteColor" data-value="transparent" title="Remove Highlight">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
</div>
<div class="home-page" id="home-page" style="display: none;">
<div class="dashboard-banner" id="dashboard-banner" onclick="toggleDashboardBanner(event)">
<div class="banner-text-overlay">
<div class="banner-text-top">
<div class="banner-line-1">OpenNotes</div>
<div class="banner-line-2">Dashboard</div>
<div class="banner-line-3" id="banner-role-text">Professional Account</div>
</div>
<div class="banner-text-bottom" id="banner-name-text">
Guest.
</div>
</div>
<div class="banner-controls" id="banner-controls">
<div class="banner-color-toggles" onclick="event.stopPropagation()">
<div class="color-toggle white-toggle" id="color-toggle-white" title="Force Light Text"></div>
<div class="color-toggle black-toggle" id="color-toggle-black" title="Force Dark Text"></div>
</div>
<button class="edit-banner-btn" onclick="event.stopPropagation(); document.getElementById('banner-upload').click()">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg> Edit Cover
</button>
</div>
<input type="file" id="banner-upload" accept="image/*" style="display: none;" />
</div>
<div class="home-header">
<h2 id="dashboard-title">Projects</h2>
<div class="home-controls">
<div class="search-container home-search">
<svg class="search-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
<input type="text" id="home-search-input" class="search-input" placeholder="Search projects..." />
</div>
</div>
</div>
<div class="dashboard-controls">
<div class="dashboard-tabs">
<button class="active" id="view-grid-btn">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"></path></svg> Active
</button>
<button id="view-graph-btn">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg> Graph Map
</button>
<button id="view-archived-btn" style="pointer-events:none; opacity:0.5;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line></svg> Archived
</button>
</div>
</div>
<div class="home-grid" id="home-grid">
<!-- Cards injected by JS -->
</div>
<div class="home-graph" id="home-graph" style="display: none;">
<canvas id="graph-canvas"></canvas>
</div>
<div class="home-tasks" id="home-tasks" style="display: none; height: 100%; flex-direction: row; gap: 0; padding: 0; background: var(--bg-color);">
<!-- Tasks Inner Sidebar -->
<div class="tasks-inner-sidebar" style="width: 220px; border-right: 1px solid var(--panel-border); display: flex; flex-direction: column; padding: 32px 16px; background: transparent;">
<div style="font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px 12px;">Tasks Menu</div>
<a href="#" class="nav-link active" id="inner-nav-todo" onclick="showInnerTaskTab('todo'); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg> Todo & Calendar</a>
<a href="#" class="nav-link" id="inner-nav-habits" onclick="showInnerTaskTab('habits'); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg> Habit Tracker</a>
<a href="#" class="nav-link" id="inner-nav-goals" onclick="showInnerTaskTab('goals'); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle></svg> Goals</a>
<a href="#" class="nav-link" id="inner-nav-books" onclick="showInnerTaskTab('books'); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path></svg> Book Library</a>
<a href="#" class="nav-link" id="inner-nav-projects" onclick="showInnerTaskTab('projects'); return false;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg> Project Tracker</a>
</div>
<div class="tasks-inner-content" style="flex: 1; overflow-y: auto; padding: 40px; position: relative; display: flex; flex-direction: column;">
<div id="inner-tab-todo" style="display: flex; flex-direction: column; flex: 1;">
<div class="tasks-row" style="flex: 1;">
<div class="calendar-section">
<div id="calendar-month-view">
<div class="calendar-header">
<div class="calendar-title-group">
<h3>Month: <span id="current-month-name">September</span></h3>
<div class="calendar-nav">
<button id="prev-month-btn"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg> Prev</button>
<button id="next-month-btn" class="active">Next <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg></button>
</div>
</div>
<div class="calendar-search">
<input type="text" id="calendar-search-input" placeholder="Search for deadlines..." autocomplete="off" onkeyup="renderCalendar()" />
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
</div>
</div>
<div class="calendar-days-header">
<span>Mon</span><span>Tue</span><span>Wed</span><span>Thu</span><span>Fri</span><span class="weekend">Sat</span><span class="weekend">Sun</span>
</div>
<div class="calendar-grid" id="calendar-grid">
<!-- Days injected by JS -->
</div>
</div>
<div id="calendar-day-view" style="display: none; height: 100%; flex-direction: column;">
<div class="day-view-header">
<button id="back-to-month-btn" class="back-btn"><svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg> Back to Month</button>
<h3 id="day-view-title">Date</h3>
</div>
<div class="day-events-list" id="day-events-list">
<!-- injected by JS -->
</div>
<div class="task-input-container" style="margin-top: auto; margin-bottom: 0;">
<input type="text" id="new-event-input" placeholder="Add a deadline or meeting..." autocomplete="off" />
<button id="add-event-btn"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg></button>
</div>
</div>
</div>
<div class="todo-section" style="display: flex; flex-direction: column;">
<div class="tasks-header">
<h3>Priority Tasks</h3>
<span class="tasks-count" id="tasks-count">0 Remaining</span>
</div>
<div class="task-input-container">
<input type="text" id="new-task-input" placeholder="What needs to be done?" autocomplete="off" />
<button id="add-todo-btn"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg></button>
</div>
<div class="tasks-list" id="tasks-list" style="flex: 1;">
<!-- Tasks injected by JS -->
</div>
</div>
</div>
</div>
<div id="inner-tab-habits" style="display: none; flex-direction: column; flex: 1;">
<div class="tasks-row" style="flex: 1;">
<div class="tool-section habit-section" style="width: 100%;">
<div class="tasks-header">
<h3>Habit Tracker</h3>
</div>
<div class="habit-content" style="flex: 1; display: flex; flex-direction: column;">
<div class="habit-card" style="flex: 1; display: flex; flex-direction: column;">
<div class="habit-card-header">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
<span id="habit-date">Today</span>
</div>
<div class="habit-progress-container">
<span class="habit-progress-text" id="habit-progress-text">0%</span>
<div class="habit-progress-bar">
<div class="habit-progress-fill" id="habit-progress-fill" style="width: 0%;"></div>
</div>
</div>
<div class="habit-list" id="habit-list" style="flex: 1;">
<!-- Habits injected by JS -->
</div>
<div class="task-input-container" style="margin-top: auto;">
<input type="text" id="new-habit-input" placeholder="Add a habit..." autocomplete="off" />
<button id="add-habit-btn"><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2" fill="none"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg></button>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="inner-tab-goals" style="display: none; flex-direction: column; flex: 1;">
<div class="tasks-row" style="flex: 1;">
<div class="tool-section goals-section" style="width: 100%;">
<div class="tasks-header" style="margin-bottom: 24px;">
<h3>Goals</h3>
</div>
<div class="goals-grid" id="goals-list" style="flex: 1;">
<!-- Goals injected by JS -->
</div>
</div>
</div>
</div>
<div id="inner-tab-books" style="display: none; flex-direction: column; flex: 1;">
<div class="tasks-row" style="flex: 1;">
<div class="tool-section books-section" style="width: 100%;">
<div class="tasks-header" style="margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between;">
<h3>Book Library</h3>
<button id="add-book-btn" class="add-header-btn">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
Add Book
</button>
</div>
<div class="books-grid" id="books-list" style="flex: 1;">
<!-- Books injected by JS -->
</div>
</div>
</div>
</div>
<div id="inner-tab-projects" style="display: none; flex-direction: column; flex: 1;">
<div class="tasks-row" style="flex: 1;">
<div class="project-tracker-section" style="width: 100%; display: flex; flex-direction: column; height: 100%;">
<div class="calendar-header" style="margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between;">
<div class="calendar-title-group" style="display: flex; align-items: center; gap: 16px;">
<h3 style="font-size: 1.8rem; font-weight: 800; color: var(--text-primary);">Project Tracker</h3>
<div class="calendar-nav" style="display: flex; gap: 8px;">
<button id="project-prev-month-btn" style="background: var(--panel-bg); border: 1px solid var(--panel-border); color: var(--text-primary); padding: 6px 12px; border-radius: 8px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 4px;"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg> Prev</button>
<button id="project-next-month-btn" style="background: var(--panel-bg); border: 1px solid var(--panel-border); color: var(--text-primary); padding: 6px 12px; border-radius: 8px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 4px;">Next <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg></button>
</div>
<span id="project-current-month-name" style="font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-left: 8px;">September 2026</span>
</div>
</div>
<div class="project-calendar-container" style="flex: 1; display: flex; flex-direction: column; min-height: 550px; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 20px; padding: 24px; box-shadow: 0 10px 40px var(--shadow-color);">
<div class="project-calendar-days-header" style="display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 12px; border-bottom: 1px solid var(--panel-border); margin-bottom: 12px;">
<span>Sun</span><span>Mon</span><span>Tue</span><span>Wed</span><span>Thu</span><span>Fri</span><span>Sat</span>
</div>
<div class="project-calendar-grid" id="project-calendar-grid" style="display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(100px, 1fr); flex: 1; gap: 8px;">
<!-- Days injected by JS -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Session Panel -->
<div class="home-session" id="home-session" style="display: none; height: 100%; flex-direction: column; gap: 40px; overflow-y: auto; padding: 40px; background: var(--bg-color);">
<div class="tasks-header" style="margin-bottom: 0;">
<h3>Dashboard Session</h3>
<p style="color: var(--text-secondary); margin-top: 8px;">Focus, log, and track your daily rhythm.</p>
</div>
<div class="tasks-row" style="flex: none;">
<!-- Weather & Time (7) -->
<div class="tool-section" style="flex: 1; min-height: 200px; justify-content: center; align-items: center; text-align: center; border: none;">
<h2 id="ambient-time" style="font-size: 3rem; font-weight: 800; color: var(--text-primary); letter-spacing: -2px;">10:42 AM</h2>
<p id="ambient-date" style="font-size: 1.1rem; color: var(--text-secondary); font-weight: 500; margin-top: 8px;">Friday, October 24</p>
<div style="display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--accent-color);">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none"><path d="M12 2v2"></path><path d="M12 20v2"></path><path d="M4.93 4.93l1.41 1.41"></path><path d="M17.66 17.66l1.41 1.41"></path><path d="M2 12h2"></path><path d="M20 12h2"></path><path d="M4.93 19.07l1.41-1.41"></path><path d="M17.66 6.34l1.41-1.41"></path><circle cx="12" cy="12" r="5"></circle></svg>
<span style="font-weight: 600; font-size: 1.2rem;">72°F</span>
</div>
</div>
<!-- Pomodoro Timer (1) -->
<div class="tool-section" style="flex: 1.5; min-height: 200px; display: flex; flex-direction: row; align-items: center; justify-content: space-between;">
<div style="display: flex; flex-direction: column;">
<h4 style="font-size: 1.1rem; color: var(--text-primary); margin-bottom: 4px;">Focus Session</h4>
<p style="color: var(--text-secondary); font-size: 0.9rem;">Deep work in progress</p>
<div style="margin-top: 24px; display: flex; gap: 12px;" id="pomodoro-buttons">
<button onclick="startPomodoro(25); updatePomodoroActive(this)" style="background: var(--text-primary); color: var(--bg-color); border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer;">25m</button>
<button onclick="startPomodoro(60); updatePomodoroActive(this)" style="background: var(--overlay-medium); color: var(--text-primary); border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer;">1 hr</button>
<button onclick="startPomodoro(120); updatePomodoroActive(this)" style="background: var(--overlay-medium); color: var(--text-primary); border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer;">2 hr</button>
</div>
</div>
<div style="position: relative; width: 140px; height: 140px; border-radius: 50%; border: 8px solid var(--overlay-light); display: flex; align-items: center; justify-content: center; border-left-color: var(--accent-color); transform: rotate(-45deg);">
<div id="pomodoro-display" style="transform: rotate(45deg); font-size: 2rem; font-weight: 800; color: var(--accent-color);">25:00</div>
</div>
</div>
</div>
<div class="tasks-row" style="flex: none;">
<!-- Daily Journal / Mood (2) -->
<div class="tool-section" style="flex: 1.5; min-height: 200px; display: flex; flex-direction: column;">
<h4 style="font-size: 1.1rem; color: var(--text-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg>
Daily Log
</h4>
<div style="display: flex; gap: 12px; margin-bottom: 16px;" id="mood-selector">
<div class="mood-btn" onclick="selectMood(this, '😊')" style="width: 36px; height: 36px; border-radius: 50%; background: #dcfce7; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; opacity: 0.5;">😊</div>
<div class="mood-btn" onclick="selectMood(this, '😐')" style="width: 36px; height: 36px; border-radius: 50%; background: var(--panel-bg); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; opacity: 0.5;">😐</div>
<div class="mood-btn" onclick="selectMood(this, '😔')" style="width: 36px; height: 36px; border-radius: 50%; background: #ffedd5; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; opacity: 0.5;">😔</div>
<div class="mood-btn" onclick="selectMood(this, '😫')" style="width: 36px; height: 36px; border-radius: 50%; background: #fee2e2; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; opacity: 0.5;">😫</div>
</div>
<textarea id="journal-textarea" placeholder="How was your day? Write a brief reflection here..." style="flex: 1; min-height: 40px; width: 100%; resize: none; border: 1px solid var(--panel-border); border-radius: 12px; padding: 12px; font-family: inherit; font-size: 0.95rem; background: var(--bg-color); color: var(--text-primary); outline: none; margin-bottom: 12px;"></textarea>
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;">
<div style="font-size: 0.85rem; color: var(--text-secondary); font-weight: 600;">Mood History</div>
<button onclick="saveJournal()" style="background: var(--text-primary); color: var(--bg-color); border: none; padding: 6px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.85rem;">Save</button>
</div>
<!-- GitHub Style Heatmap -->
<div style="width: 100%; overflow-x: auto; padding-bottom: 4px;">
<div id="mood-heatmap" style="display: flex; gap: 3px; min-width: max-content;">
<!-- JavaScript will populate the 52 weeks of 7 days here -->
</div>
</div>
</div>
<!-- Expense Tracker (3) -->
<div class="tool-section" style="flex: 1; min-height: 250px;">
<h4 style="font-size: 1.1rem; color: var(--text-primary); margin-bottom: 20px; display: flex; align-items: center; gap: 8px;">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>
Expenses
</h4>
<div style="display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px;">
<div>
<p style="color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;">This Month</p>
<h2 id="expense-total" style="font-size: 2.2rem; color: var(--text-primary); font-weight: 800; letter-spacing: -1px;">₹0.00</h2>
</div>
</div>
<!-- Tabular Add Form -->
<div style="display: flex; gap: 8px; margin-bottom: 16px;">
<input type="text" id="new-expense-title" placeholder="Expense title..." style="flex: 2; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--panel-border); font-family: inherit; font-size: 0.9rem; outline: none; background: transparent; color: var(--text-primary);" />
<input type="number" id="new-expense-amount" placeholder="Amount (₹)" style="flex: 1; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--panel-border); font-family: inherit; font-size: 0.9rem; outline: none; background: transparent; color: var(--text-primary);" />
<button onclick="addExpense()" style="background: var(--accent-color); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.9rem;">Add</button>
</div>
<!-- Headers -->
<div style="display: flex; gap: 8px; margin-bottom: 8px; padding: 0 4px; font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em;">
<div style="flex: 2;">Item</div>
<div style="flex: 1;">Cost</div>
<div style="width: 28px;"></div>
</div>
<div id="expense-list" style="display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1;">
<!-- Expenses injected by JS -->
</div>
</div>
</div>
</div>
<!-- Scratchpad Panel -->
<div class="home-scratchpad" id="home-scratchpad" style="display: none; height: 100%; flex-direction: row; gap: 40px; overflow-y: auto; padding: 40px; background: var(--bg-color);">
<!-- Brain Dump (4) -->
<div style="flex: 1; display: flex; flex-direction: column; width: 100%;">
<div class="tasks-header" style="margin-bottom: 24px;">
<h3>Scratchpad</h3>
<span style="color: var(--text-secondary); font-size: 0.9rem;">Auto-saving...</span>
</div>
<div style="flex: 1; background: var(--panel-bg); border-radius: 24px; box-shadow: 0 10px 40px var(--shadow-color-focus); border: 1px solid var(--panel-border); padding: 32px; display: flex; flex-direction: column;">
<div id="scratchpad-content" contenteditable="true" style="flex: 1; outline: none; font-size: 1.1rem; line-height: 1.6; color: var(--text-primary); font-family: 'Inter', sans-serif;">
<p style="color: var(--text-secondary); opacity: 0.7;">Drop fleeting thoughts, meeting notes, or quick ideas here...</p>
<br>
<br>
</div>
</div>
</div>
</div>
<!-- Settings Panel -->
<div class="home-settings" id="home-settings" style="display: none; height: 100%; flex-direction: column; overflow-y: auto; padding: 40px; background: var(--bg-color);">
<div class="tasks-header" style="margin-bottom: 24px;">
<h3>Settings</h3>
<span style="color: var(--text-secondary); font-size: 0.9rem;">Manage your preferences</span>
</div>
<div style="display: flex; flex-direction: column; gap: 24px; max-width: 600px;">
<div>
<label style="display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;">Your Name</label>
<input type="text" id="settings-name" style="width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--panel-border); font-family: inherit; font-size: 1rem; outline: none; background: transparent; color: var(--text-primary);" placeholder="Name" onchange="saveSettings()" />
</div>
<div>
<label style="display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;">Designation</label>
<input type="text" id="settings-designation" style="width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--panel-border); font-family: inherit; font-size: 1rem; outline: none; background: transparent; color: var(--text-primary);" placeholder="e.g. Professional Account" onchange="saveSettings()" />
</div>
<div>
<label style="display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;">Theme</label>
<select id="settings-theme" style="width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--panel-border); font-family: inherit; font-size: 1rem; outline: none; background: transparent; color: var(--text-primary); cursor: pointer; appearance: auto;" onchange="saveSettings()">
<option value="light">Day (Light)</option>
<option value="dark">Night (Dark)</option>
</select>
</div>
<div>
<label style="display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;">Currency</label>
<select id="settings-currency" style="width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--panel-border); font-family: inherit; font-size: 1rem; outline: none; background: transparent; color: var(--text-primary); cursor: pointer; appearance: auto;" onchange="saveSettings()">
<option value="₹">₹ (INR)</option>
<option value="$">$ (USD)</option>
<option value="€">€ (EUR)</option>
<option value="£">£ (GBP)</option>
<option value="¥">¥ (JPY)</option>
</select>
</div>
<div style="margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--panel-border);">
<button onclick="resetEverything()" style="width: 100%; padding: 14px; background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s;">⚠️ Factory Reset</button>
<p style="text-align: center; color: var(--text-secondary); font-size: 0.85rem; margin-top: 12px;">This will permanently delete all data.</p>
</div>
<!-- Credits Footer -->
<div style="margin-top: 60px; padding-bottom: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;">
<div style="display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 8px;">
<a href="https://github.com/rajsriv" target="_blank" style="color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: color 0.2s;" onmouseover="this.style.color='var(--accent-color)'" onmouseout="this.style.color='var(--text-secondary)'">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
@rajsriv
</a>
<span style="color: var(--panel-border); font-size: 1.2rem;">|</span>
<a href="https://github.com/rajsriv/OpenNotes" target="_blank" style="color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: color 0.2s;" onmouseover="this.style.color='var(--accent-color)'" onmouseout="this.style.color='var(--text-secondary)'">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>
OpenNotes
</a>
</div>
<p style="color: var(--text-secondary); font-size: 0.85rem; opacity: 0.7;">Designed & Built with <span style="color: var(--danger-color);">♥</span></p>
</div>
</div>
</div>
<!-- College Notes Panel -->
<div class="home-college" id="home-college" style="display: none; height: 100%; flex-direction: column; overflow-y: auto; padding: 40px; background: var(--bg-color);">
<div class="tasks-header" style="margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between;">
<div>
<h3 style="font-size: 1.8rem; font-weight: 800; color: var(--text-primary); margin: 0;">College Notes</h3>
<p style="color: var(--text-secondary); margin-top: 4px; font-size: 0.95rem;">Organize your college lectures, curriculum, and study PDF notes.</p>
</div>
<div style="display: flex; gap: 12px;">
<button id="add-college-folder-btn" class="add-header-btn" style="background: var(--accent-color); color: white; border: none; padding: 10px 18px; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px;">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2.5" fill="none"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
New Folder
</button>
</div>
</div>
<!-- Folders View -->
<div id="college-folders-container" style="display: flex; flex-direction: column; flex: 1; min-height: 0;">
<div id="college-folders-grid" style="display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;">
<!-- Folder cards injected by JS -->
</div>
</div>
<!-- Folder Contents View -->
<div id="college-single-folder-view" style="display: none; flex-direction: column; flex: 1; min-height: 0;">
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;">
<div style="display: flex; align-items: center; gap: 16px;">
<button id="college-folder-back-btn" style="background: var(--panel-bg); border: 1px solid var(--panel-border); color: var(--text-primary); padding: 8px 16px; border-radius: 8px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px;">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2.5" fill="none"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>
Back
</button>
<div>
<h4 id="college-folder-title" style="font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin: 0;">Folder Name</h4>
<span id="college-folder-category" style="font-size: 0.8rem; font-weight: 600; color: var(--accent-color); text-transform: uppercase; letter-spacing: 0.05em;">Category</span>
</div>
</div>
<div>
<input type="file" id="college-pdf-upload-input" accept="application/pdf" style="display: none;" />
<button id="college-upload-pdf-btn" class="add-header-btn" style="background: var(--accent-color); color: white; border: none; padding: 10px 18px; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px;">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2.5" fill="none"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>
Import PDF
</button>
</div>
</div>
<!-- PDF List Grid -->
<div id="college-pdfs-grid" style="display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;">
<!-- PDF Cards injected by JS -->
</div>
</div>
</div>
</div>
</main>
</div>
<!-- Book Modal -->
<div class="modal" id="book-modal" style="display: none;">
<div class="modal-content" style="max-width: 500px;">
<h3 style="margin-bottom: 20px; color: var(--text-primary); font-size: 1.5rem;">Book Details</h3>
<div style="display: flex; flex-direction: column; gap: 14px;">
<input type="text" id="book-title" class="modal-input" placeholder="Title" autocomplete="off" />
<input type="text" id="book-author" class="modal-input" placeholder="Author" autocomplete="off" />
<input type="text" id="book-cover" class="modal-input" placeholder="Cover Image URL (Optional)" autocomplete="off" />
<div style="display: flex; gap: 14px;">
<input type="number" id="book-pages-read" class="modal-input" placeholder="Pages Read" min="0" style="flex: 1;" />
<span style="display: flex; align-items: center; color: var(--text-secondary); font-weight: 600;">/</span>
<input type="number" id="book-total-pages" class="modal-input" placeholder="Total Pages" min="1" style="flex: 1;" />
</div>
<div style="display: flex; justify-content: justify; align-items: center; padding: 0 4px;">
<span style="font-size: 0.95rem; color: var(--text-primary); font-weight: 600;">Rating</span>
<div class="star-rating-input" id="book-rating" style="display: flex; align-items: center; gap: 6px; font-size: 1.8rem; color: #d1d5db; cursor: pointer;">
<span data-val="1">★</span><span data-val="2">★</span><span data-val="3">★</span><span data-val="4">★</span><span data-val="5">★</span>
</div>
</div>
<textarea id="book-review" class="modal-input" placeholder="Write your review here..." style="min-height: 100px; resize: vertical;"></textarea>
</div>
<div style="display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px;">
<button class="modal-btn secondary" id="close-book-modal">Cancel</button>
<button class="modal-btn primary" id="save-book-btn">Save Book</button>
</div>
</div>
</div>
<!-- Project Day Modal (Floating Menu) -->
<div class="modal" id="project-day-modal" style="display: none;">
<div class="modal-content" style="max-width: 450px;">
<h3 id="project-day-modal-title" style="margin-bottom: 20px; color: var(--text-primary); font-size: 1.5rem;">Projects</h3>
<div id="project-day-modal-list" style="display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; padding-right: 4px;">
<!-- project items list injected by JS -->
</div>
<div style="display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px;">
<button class="modal-btn secondary" id="close-project-day-modal">Close</button>
</div>
</div>
</div>
<!-- College Folder Modal -->
<div class="modal" id="college-folder-modal" style="display: none;">
<div class="modal-content" style="max-width: 400px;">
<h3 id="college-folder-modal-title" style="margin-bottom: 20px; color: var(--text-primary); font-size: 1.5rem;">New Folder</h3>
<div style="display: flex; flex-direction: column; gap: 14px;">
<input type="text" id="college-folder-name" class="modal-input" placeholder="Folder Name (e.g. Advanced Calculus)" autocomplete="off" />
<input type="text" id="college-folder-category-input" class="modal-input" placeholder="Category/Subject (e.g. Mathematics)" autocomplete="off" />
</div>
<div style="display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px;">
<button class="modal-btn secondary" id="close-college-folder-modal">Cancel</button>
<button class="modal-btn primary" id="save-college-folder-btn">Create Folder</button>
</div>
</div>
</div>
<!-- College PDF Viewer Modal -->
<div class="modal" id="college-pdf-viewer-modal" style="display: none; z-index: 10000; padding: 0;">
<div class="modal-content" style="max-width: 100%; width: 100vw; height: 100vh; border-radius: 0; display: flex; flex-direction: column; padding: 20px; margin: 0; box-shadow: none; border: none;">
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;">
<h3 id="college-pdf-viewer-title" style="color: var(--text-primary); font-size: 1.3rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%;">Document Viewer</h3>
<button class="modal-btn secondary" id="close-college-pdf-viewer-modal" style="padding: 6px 12px; margin: 0;">Close</button>
</div>
<div style="flex: 1; min-height: 0; background: #1a1a1a; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;">
<iframe id="college-pdf-iframe" style="width: 100%; height: 100%; border: none; display: none;"></iframe>
<div id="college-note-viewer-content" style="width: 100%; height: 100%; overflow-y: auto; padding: 40px; background: var(--bg-color); color: var(--text-primary); font-family: inherit; line-height: 1.6; display: none; box-sizing: border-box;">
<!-- Note content HTML goes here -->
</div>
</div>
</div>
</div>
<!-- Custom College Context Menu -->
<div id="college-context-menu" style="display: none; position: fixed; z-index: 20000; background: var(--bg-color); border: 1px solid rgba(128, 128, 128, 0.3); border-radius: 12px; box-shadow: 0 10px 30px var(--shadow-color); padding: 6px; min-width: 160px; flex-direction: column; gap: 2px;">
<button class="context-item" id="context-open-btn" style="background: transparent; border: none; padding: 10px 14px; border-radius: 8px; font-family: inherit; font-size: 0.9rem; text-align: left; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.15s;">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2.5" fill="none"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>
Open
</button>
<button class="context-item" id="context-rename-btn" style="background: transparent; border: none; padding: 10px 14px; border-radius: 8px; font-family: inherit; font-size: 0.9rem; text-align: left; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.15s;">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2.5" fill="none"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg>
Rename / Edit
</button>
<div id="context-add-to-folder-wrapper" style="position: relative; display: none;">
<button class="context-item" id="context-add-to-folder-btn" style="background: transparent; border: none; padding: 10px 14px; border-radius: 8px; font-family: inherit; font-size: 0.9rem; text-align: left; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: 100%; transition: background 0.15s;">
<span style="display: flex; align-items: center; gap: 8px;">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2.5" fill="none"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg>
Add to Folder
</span>
<svg viewBox="0 0 24 24" width="12" height="12" stroke="currentColor" stroke-width="2" fill="none"><polyline points="9 18 15 12 9 6"></polyline></svg>
</button>
<!-- Sub-menu listing all college folders -->
<div id="college-context-submenu" style="display: none; position: absolute; left: 100%; top: 0; background: var(--bg-color); border: 1px solid rgba(128, 128, 128, 0.3); border-radius: 12px; box-shadow: 0 10px 30px var(--shadow-color); padding: 6px; min-width: 160px; flex-direction: column; gap: 2px; margin-left: 4px;">
<!-- Folder items injected by JS -->
</div>
</div>
<div style="height: 1px; background: var(--panel-border); margin: 4px 0;"></div>
<button class="context-item" id="context-delete-btn" style="background: transparent; border: none; padding: 10px 14px; border-radius: 8px; font-family: inherit; font-size: 0.9rem; text-align: left; color: #ef4444; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.15s;">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2.5" fill="none"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>
Delete
</button>
</div>
<!-- Background Ambient Glows -->
<div class="ambient-glow glow-1"></div>
<div class="ambient-glow glow-2"></div>
</div>
<!-- Pomodoro Fullscreen Overlay -->
<div id="pomodoro-fullscreen-modal" style="display: none; position: fixed; inset: 0; z-index: 9999; background: var(--bg-color); align-items: center; justify-content: center; overflow: hidden;">
<!-- Lava Lamp Background -->
<div class="lava-lamp-bg" style="position: absolute; inset: 0; z-index: 1;">
<div class="lava-blob blob-1"></div>
<div class="lava-blob blob-2"></div>
<div class="lava-blob blob-3"></div>
</div>
<!-- Frosted Glass UI -->
<div style="position: relative; z-index: 2; background: var(--panel-bg); border: 1px solid var(--panel-border); box-shadow: 0 30px 60px rgba(168, 123, 81, 0.15); border-radius: 40px; padding: 60px 100px; display: flex; flex-direction: column; align-items: center; text-align: center; backdrop-filter: blur(20px);">
<h2 style="color: var(--text-secondary); font-size: 1.5rem; font-weight: 600; letter-spacing: 2px; margin-bottom: 24px; text-transform: uppercase;">Deep Work Session</h2>
<div id="pomodoro-large-display" style="font-size: 8rem; font-weight: 800; color: var(--text-primary); letter-spacing: -4px; text-shadow: 0 10px 30px var(--overlay-medium); font-variant-numeric: tabular-nums;">25:00</div>
<div style="display: flex; gap: 16px; margin-top: 40px;">
<button onclick="restPomodoro()" style="background: var(--overlay-medium); color: var(--accent-color); border: 1px solid var(--panel-border); padding: 12px 32px; border-radius: 12px; font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: all 0.2s;">Rest (5m)</button>
<button onclick="exitFullscreenPomodoro()" style="background: var(--accent-color); color: #fff; border: none; padding: 12px 32px; border-radius: 12px; font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; box-shadow: 0 8px 24px rgba(168, 123, 81, 0.25);">Exit Focus Mode</button>
</div>
</div>
</div>
<div id="resize-overlay">
<h2 style="font-size: 2rem; margin-bottom: 16px; color: var(--text-primary);">Optimize Your Experience</h2>
<p style="font-size: 1.1rem; color: var(--text-secondary); max-width: 400px; line-height: 1.5;">Please maximize the window or use full screen mode to use OpenNotes elegantly.</p>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>