This repository was archived by the owner on May 28, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.html
More file actions
1574 lines (1524 loc) · 88.6 KB
/
Copy pathdata.html
File metadata and controls
1574 lines (1524 loc) · 88.6 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>
<meta charset="UTF-8">
<title>Monever</title>
<link rel="icon" href="assets/Monever%20Logo.png" sizes="32x32">
<link rel="shortcut icon" href="assets/Monever%20Logo.png">
<link rel="apple-touch-icon" href="assets/Monever%20Logo.png">
<meta name="theme-color" content="#404040">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div id="mobile-block">
<div class="win95-dialog">
<div class="win95-title-bar">
<span>⚠️ Incompatible Device</span>
</div>
<div class="win95-dialog-body">
<p>This application is optimised for desktop computers. Mobile handsets were not commonplace during the era this
software was designed for. Please access Monever from a desktop or laptop computer for the intended
experience.</p>
<p class="mt-4 fw-bold text-uppercase" style="font-size: 12px; letter-spacing: 1px; color: #606060;">Access from
a computer</p>
</div>
</div>
</div>
<nav class="navbar" style="position: relative;">
<div class="container-fluid px-4" style="display: flex; justify-content: space-between; align-items: center;">
<a class="navbar-brand" href="index.html" style="flex: 1; display: flex; align-items: center;">
<img src="assets/Monever%20Logo.png" alt="Monever" height="40" class="brand-logo">
<div class="brand-wordmark">
<span class="brand-name">Monever</span>
<span class="brand-tagline">Money Saver, Forever</span>
</div>
</a>
<!-- PROFILE BUTTON - CENTERED VIA FLEX -->
<button id="profileNavBtn" onclick="openProfileModal()" style="background-color: #c0c0c0; border: 2px solid; border-color: #ffffff #808080 #808080 #ffffff;
padding: 2px 10px; font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; gap: 5px;
white-space: nowrap; flex-shrink: 0;" title="My Profile" onmouseenter="this.style.backgroundColor='#d0d0d0'"
onmouseleave="this.style.backgroundColor='#c0c0c0'">
<i class="bi bi-person-fill"></i> My Profile
</button>
<div class="navbar-nav ms-0 d-flex flex-row gap-1" style="flex: 1; justify-content: flex-end;">
<a class="nav-link" href="index.html"><i class="bi bi-house-door me-2"></i>Home</a>
<a class="nav-link active" href="data.html"><i class="bi bi-bar-chart me-2"></i>Insights</a>
<a class="nav-link" href="tools.html"><i class="bi bi-tools me-2"></i>Tools</a>
<a class="nav-link" href="lab.html"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="black"
class="me-2" viewBox="0 0 16 16" style="vertical-align: -0.125em; position: relative; top: 0.5px;">
<path
d="M2 4.5A.5.5 0 0 1 2.5 4h1a.5.5 0 0 1 .5.5v.5h1v-1a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v1h1v-.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1.238L14.502 11h-1.074l-3.292-3.292A.5.5 0 0 0 9.782 7.5h-3.564a.5.5 0 0 0-.354.146L2.572 11H1.498L2 5.738V4.5zM13.372 12l1.64-1.64a.5.5 0 0 0 .134-.354V8.5h-1v1.238L11.502 12h1.87zM2.628 12 1 10.36V8.5h1v1.238L4.498 12H2.628zM10 13H6v1h4v-1zm4 1.5c0 .276-.224.5-.5.5h-11a.5.5 0 0 1-.5-.5V14h12v.5z" />
</svg>Lab</a>
<a class="nav-link" href="about.html"><i class="bi bi-info-circle me-2"></i>About</a>
<li class="nav-item">
<a class="nav-link" href="help.html">
<i class="bi bi-question-circle me-1"></i>Help
</a>
</li>
</div>
</div>
</nav>
<div class="container"
style="max-width: 100% !important; padding: 0 1rem; overflow-y: hidden; display: flex; flex-direction: column;">
<div id="pageLayout"
style="display: grid; grid-template-columns: 200px 1fr 200px; gap: 12px; align-items: stretch; padding-top: 1rem; flex: 1; overflow: hidden;">
<!-- LEFT WIDGETS COLUMN -->
<div id="leftWidgets"
style="display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100%;">
<div class="widget-slot" id="slot-L1">
<div class="widget-add-btn" onclick="openWidgetPicker('slot-L1')"
style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer;">
<span style="font-size: 1.75rem; color: #808080; display: block; margin-bottom: 6px;">
<i class="bi bi-plus-lg"></i>
</span>
<span
style="font-size: 0.75rem; color: #808080; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;">
Add Widget
</span>
</div>
</div>
<div class="widget-slot" id="slot-L2">
<div class="widget-add-btn" onclick="openWidgetPicker('slot-L2')"
style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer;">
<span style="font-size: 1.75rem; color: #808080; display: block; margin-bottom: 6px;">
<i class="bi bi-plus-lg"></i>
</span>
<span
style="font-size: 0.75rem; color: #808080; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;">
Add Widget
</span>
</div>
</div>
<div class="widget-slot" id="slot-L3">
<div class="widget-add-btn" onclick="openWidgetPicker('slot-L3')"
style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer;">
<span style="font-size: 1.75rem; color: #808080; display: block; margin-bottom: 6px;">
<i class="bi bi-plus-lg"></i>
</span>
<span
style="font-size: 0.75rem; color: #808080; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;">
Add Widget
</span>
</div>
</div>
</div>
<!-- MAIN CONTENT COLUMN -->
<div id="mainContent" style="overflow-y: auto; padding-right: 8px; height: 100%; padding-bottom: 2rem;">
<section class="hero-banner">
<h1 class="page-title">Financial Insights</h1>
<p id="profileGreeting" style="display:none; font-size: 0.85rem; color: #404040; font-weight: bold;"></p>
<p class="hero-subtitle">Deep dive into your spending habits and financial health.</p>
<div class="quote-box">
<div class="quote-label">Financial Wisdom</div>
<div class="quote-inner">
<span>"Beware of little expenses; a small leak will sink a great ship." ~ Benjamin Franklin</span>
</div>
</div>
</section>
<div class="text-center">
<ul class="nav nav-pills mb-5" id="dataTabs" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="stats-tab" data-bs-toggle="tab" data-bs-target="#stats" type="button"
role="tab">
<i class="bi bi-eye me-2"></i>Overview
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="expenses-tab" data-bs-toggle="tab" data-bs-target="#expenses" type="button"
role="tab">
<i class="bi bi-cart me-2"></i>Expenses
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="emis-tab" data-bs-toggle="tab" data-bs-target="#emis" type="button"
role="tab">
<i class="bi bi-calendar-check me-2"></i>EMIs
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="people-tab" data-bs-toggle="tab" data-bs-target="#people" type="button"
role="tab">
<i class="bi bi-people me-2"></i>Ledger
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="history-tab" data-bs-toggle="tab" data-bs-target="#history" type="button"
role="tab">
<i class="bi bi-clock-history me-2"></i>History
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="summary-tab" data-bs-toggle="tab" data-bs-target="#summary" type="button"
role="tab">
<i class="bi bi-graph-up me-2"></i>Analytics
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="goals-tab" data-bs-toggle="pill" data-bs-target="#goals" type="button"
role="tab">
<i class="bi bi-flag me-2"></i>Goals
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="networth-tab" data-bs-toggle="pill" data-bs-target="#networth" type="button"
role="tab">
<i class="bi bi-bank me-2"></i>Net Worth
</button>
</li>
</ul>
<div class="tab-content" id="dataTabsContent">
<div class="tab-pane fade show active" id="stats" role="tabpanel">
<div class="card section-card">
<div class="win95-title-bar mb-4">
<i class="bi bi-eye me-2"></i>MONTHLY FINANCIAL OVERVIEW
</div>
<div class="row g-4 mb-4 align-items-end">
<div class="col-md-4">
<label for="monthSelector" class="form-label text-muted small fw-bold">Select Analysis Month</label>
<input type="month" id="monthSelector" class="form-control" onchange="updateStats()">
</div>
<div class="col-md-8">
<div id="budgetAlert"></div>
<div id="categoryAlerts" class="mt-2"></div>
</div>
</div>
<div class="row g-4 mb-5">
<div class="col-md-3">
<div class="summary-stat-card shadow-sm">
<h6>Monthly Spend</h6>
<p id="totalExpense" class="stat-value">₹0</p>
</div>
</div>
<div class="col-md-3">
<div class="summary-stat-card shadow-sm">
<h6>Daily Burn</h6>
<p id="avgDaily" class="stat-value">₹0</p>
</div>
</div>
<div class="col-md-3">
<div class="summary-stat-card shadow-sm">
<h6>Projected Total</h6>
<p id="projected" class="stat-value text-secondary">₹0</p>
</div>
</div>
<div class="col-md-3">
<div class="summary-stat-card shadow-sm">
<h6>Savings Rate</h6>
<p id="savingsRate" class="stat-value"></p>
</div>
</div>
</div>
<!-- Chart moved to Summary Tab -->
</div>
</div>
<div class="tab-pane fade" id="expenses" role="tabpanel" aria-labelledby="expenses-tab">
<div class="card section-card">
<div class="win95-title-bar mb-4">
<i class="bi bi-cart me-2"></i>EXPENSE LISTING
</div>
<ul id="expenseList" class="list-group mb-3"></ul>
</div>
</div>
<div class="tab-pane fade" id="emis" role="tabpanel" aria-labelledby="emis-tab">
<div class="card section-card mt-4">
<div class="win95-title-bar mb-4">
<i class="bi bi-calendar-check me-2"></i>EMI SCHEDULES
</div>
<ul id="emiList" class="list-group mb-3"></ul>
</div>
</div>
<div class="tab-pane fade" id="people" role="tabpanel" aria-labelledby="people-tab">
<div class="card section-card mt-4">
<div class="win95-title-bar mb-4">
<i class="bi bi-people me-2"></i>PEOPLE LEDGER
</div>
<ul id="peopleList" class="list-group"></ul>
</div>
</div>
<div class="tab-pane fade" id="history" role="tabpanel" aria-labelledby="history-tab">
<div class="card section-card p-0">
<div class="win95-title-bar mb-4">
<i class="bi bi-clock-history me-2"></i>EXPENSE HISTORY
</div>
<div class="p-3">
<div class="mb-3">
<input type="text" id="historySearchInput" class="form-control" placeholder="Search by category..."
onkeyup="filterHistory()">
<p id="historyCount" class="mt-2 text-muted">Showing 0 of 0 expenses</p>
</div>
<ul id="historyList" class="list-group"></ul>
</div>
</div>
</div>
<div class="tab-pane fade" id="summary" role="tabpanel">
<div class="card section-card">
<div class="win95-title-bar mb-4">
<i class="bi bi-graph-up me-2"></i>DEEP ANALYTICS
</div>
<div class="row g-3 mb-4">
<div class="col-md-3">
<div class="summary-stat-card">
<h6><i class="bi bi-wallet2 me-2"></i>All-Time Total</h6>
<p id="allTimeTotal" class="stat-value">₹0</p>
</div>
</div>
<div class="col-md-3">
<div class="summary-stat-card shadow-sm">
<h6><i class="bi bi-fire me-2"></i>Biggest Spend</h6>
<p id="biggestExpense" class="stat-value">—</p>
</div>
</div>
<div class="col-md-3">
<div class="summary-stat-card shadow-sm">
<h6><i class="bi bi-tag me-2"></i>Top Category</h6>
<p id="topCategory" class="stat-value">—</p>
</div>
</div>
<div class="col-md-3">
<div class="summary-stat-card shadow-sm">
<h6><i class="bi bi-arrow-left-right me-2"></i>Net Lent</h6>
<p id="totalLent" class="stat-value">₹0</p>
</div>
</div>
</div>
<div class="row g-3">
<div class="col-md-6">
<div class="card section-card p-0">
<div class="win95-title-bar mb-3" style="font-size:0.8rem;">SPENDING DISTRIBUTION</div>
<div class="p-3"><canvas id="expenseChart" style="max-height:350px;"></canvas></div>
</div>
</div>
<div class="col-md-6">
<div class="card section-card p-0">
<div class="win95-title-bar mb-3" style="font-size:0.8rem;">EXPENDITURE TRENDS</div>
<div class="p-3"><canvas id="summaryChart" style="max-height:350px;"></canvas></div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="goals" role="tabpanel">
<div class="card section-card">
<h4><i class="bi bi-flag me-3"></i>Financial Goals</h4>
<!-- Add Goal Form -->
<div class="row g-3 mb-4">
<div class="col-md-4">
<label class="form-label text-muted small fw-bold">Goal Name</label>
<input type="text" id="goalName" class="form-control" placeholder="Europe Trip, Emergency Fund...">
</div>
<div class="col-md-4">
<label class="form-label text-muted small fw-bold">Target Amount</label>
<div class="input-group">
<span class="input-group-text currency-prefix">₹</span>
<input type="number" id="goalTarget" class="form-control" placeholder="0.00">
</div>
</div>
<div class="col-md-4">
<label class="form-label text-muted small fw-bold">Target Date</label>
<input type="date" id="goalDate" class="form-control">
</div>
<div class="col-md-4">
<label class="form-label text-muted small fw-bold">Starting Amount (optional)</label>
<div class="input-group">
<span class="input-group-text currency-prefix">₹</span>
<input type="number" id="goalStarting" class="form-control" placeholder="0.00">
</div>
</div>
<div class="col-12 mt-2">
<button class="btn btn-primary btn-wide" onclick="addGoal()">
Add Financial Goal
</button>
</div>
</div>
<!-- Goals List -->
<h5 class="fw-bold mb-3 border-top pt-4">Your Goals</h5>
<div id="goalsList" class="row g-3"></div>
</div>
</div>
<div class="tab-pane fade" id="networth" role="tabpanel">
<div class="card section-card">
<h4><i class="bi bi-bank me-3"></i>Net Worth Tracker</h4>
<p class="text-muted small mb-4">Track your assets and liabilities to see your true financial picture.
</p>
<div class="row g-4">
<!-- Assets Column -->
<div class="col-md-6">
<h5 class="fw-bold mb-3" style="color: #808080;">
<i class="bi bi-plus-circle me-2"></i>Assets
</h5>
<div class="row g-2 mb-3">
<div class="col-7">
<input type="text" id="assetName" class="form-control"
placeholder="Asset name (Savings, Stocks...)">
</div>
<div class="col-5">
<div class="input-group">
<span class="input-group-text currency-prefix">₹</span>
<input type="number" id="assetAmount" class="form-control" placeholder="Value">
</div>
</div>
<div class="col-12">
<select id="assetType" class="form-control">
<option value="Cash">Cash / Savings</option>
<option value="Investments">Investments</option>
<option value="Property">Property</option>
<option value="Other">Other</option>
</select>
</div>
<div class="col-12">
<button class="btn btn-primary w-100" onclick="addAsset()">
Add Asset
</button>
</div>
</div>
<ul id="assetList" class="list-group list-group-flush"></ul>
<div class="mt-3 fw-bold">
Total Assets: <span id="totalAssetsDisplay" style="color: #808080;">₹0</span>
</div>
</div>
<!-- Liabilities Column -->
<div class="col-md-6">
<h5 class="fw-bold mb-3" style="color: #606060;">
<i class="bi bi-dash-circle me-2"></i>Liabilities
</h5>
<div class="row g-2 mb-3">
<div class="col-7">
<input type="text" id="liabilityName" class="form-control"
placeholder="Liability name (Loan, Credit Card...)">
</div>
<div class="col-5">
<div class="input-group">
<span class="input-group-text currency-prefix">₹</span>
<input type="number" id="liabilityAmount" class="form-control" placeholder="Amount">
</div>
</div>
<div class="col-12">
<button class="btn btn-primary w-100" onclick="addLiability()">
Add Liability
</button>
</div>
</div>
<ul id="liabilityList" class="list-group list-group-flush"></ul>
<div class="mt-3 fw-bold">
Total Liabilities: <span id="totalLiabilitiesDisplay" style="color:#606060;">₹0</span>
</div>
</div>
</div>
<!-- Net Worth Summary -->
<div class="mt-5 border-top pt-4">
<div class="row g-3 text-center">
<div class="col-md-4">
<div class="summary-stat-card">
<div class="stat-value" id="nwAssetsTotal">₹0</div>
<div class="stat-label">Total Assets</div>
</div>
</div>
<div class="col-md-4">
<div class="summary-stat-card">
<div class="stat-value" id="nwLiabilitiesTotal">₹0</div>
<div class="stat-label">Total Liabilities</div>
</div>
</div>
<div class="col-md-4">
<div class="summary-stat-card">
<div class="stat-value" id="nwNetTotal">₹0</div>
<div class="stat-label">Net Worth</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end mainContent -->
<!-- RIGHT WIDGETS COLUMN -->
<div id="rightWidgets"
style="display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100%;">
<div class="widget-slot" id="slot-R1">
<div class="widget-add-btn" onclick="openWidgetPicker('slot-R1')"
style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer;">
<span style="font-size: 1.75rem; color: #808080; display: block; margin-bottom: 6px;">
<i class="bi bi-plus-lg"></i>
</span>
<span
style="font-size: 0.75rem; color: #808080; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;">
Add Widget
</span>
</div>
</div>
<div class="widget-slot" id="slot-R2">
<div class="widget-add-btn" onclick="openWidgetPicker('slot-R2')"
style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer;">
<span style="font-size: 1.75rem; color: #808080; display: block; margin-bottom: 6px;">
<i class="bi bi-plus-lg"></i>
</span>
<span
style="font-size: 0.75rem; color: #808080; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;">
Add Widget
</span>
</div>
</div>
<div class="widget-slot" id="slot-R3">
<div class="widget-add-btn" onclick="openWidgetPicker('slot-R3')"
style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer;">
<span style="font-size: 1.75rem; color: #808080; display: block; margin-bottom: 6px;">
<i class="bi bi-plus-lg"></i>
</span>
<span
style="font-size: 0.75rem; color: #808080; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;">
Add Widget
</span>
</div>
</div>
</div>
</div> <!-- end pageLayout -->
</div> <!-- end container -->
<div class="modal" id="profileModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">SYSTEM PROPERTIES & USER PROFILE</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="d-flex" style="min-height: 500px;">
<!-- Left Navigation (Win95 style sidebar tabs) -->
<div class="win95-sidebar d-none d-md-flex">
<div class="nav flex-column nav-pills" id="profileTabs" role="tablist">
<button class="nav-link active mb-1 text-start" id="profile-bio-tab" data-bs-toggle="pill"
data-bs-target="#profile-bio" type="button" role="tab"><i class="bi bi-person-badge me-2"></i>User
Bio</button>
<button class="nav-link mb-1 text-start" id="profile-cash-tab" data-bs-toggle="pill"
data-bs-target="#profile-cash" type="button" role="tab"><i
class="bi bi-wallet2 me-2"></i>Cashflow</button>
<button class="nav-link mb-1 text-start" id="profile-strat-tab" data-bs-toggle="pill"
data-bs-target="#profile-strat" type="button" role="tab"><i
class="bi bi-graph-up-arrow me-2"></i>Strategy</button>
<button class="nav-link mb-1 text-start" id="profile-settings-tab" data-bs-toggle="pill"
data-bs-target="#profile-settings" type="button" role="tab"><i
class="bi bi-gear me-2"></i>Settings</button>
</div>
<div class="mt-auto p-2 text-center">
<img src="assets/Monever%20Logo.png" alt="Monever"
style="width: 40px; opacity: 0.5; filter: grayscale(1);">
<div class="small text-muted mt-2" style="font-size: 0.65rem; line-height: 1.2;">
Made With love,<br>Made For You,<br>By Hero Harshit.
</div>
</div>
</div>
<!-- Right Content Area -->
<div class="flex-grow-1 d-flex flex-column">
<div class="modal-body-scroll flex-grow-1">
<div class="tab-content" id="profileTabsContent">
<!-- TAB 1: BIO -->
<div class="tab-pane fade show active" id="profile-bio" role="tabpanel">
<fieldset class="win95-fieldset">
<legend class="win95-legend">Identity Card</legend>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Full Name</label>
<input type="text" id="profName" class="form-control" placeholder="User Name">
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Age</label>
<input type="number" id="profAge" class="form-control" placeholder="25">
</div>
</div>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Employment</label>
<select id="profEmployment" class="form-control">
<option value="">Select Type</option>
<option value="Salaried">Salaried</option>
<option value="Freelancer">Freelancer</option>
<option value="Business Owner">Business Owner</option>
<option value="Student">Student</option>
</select>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Partner's Name</label>
<input type="text" id="profPartnerName" class="form-control">
</div>
</div>
</fieldset>
<fieldset class="win95-fieldset">
<legend class="win95-legend">Regional Identity</legend>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Location (City)</label>
<select id="profCity" class="form-control">
<option value="">Select City</option>
<option value="Mumbai">Mumbai</option>
<option value="Delhi">Delhi</option>
<option value="Bangalore">Bangalore</option>
<option value="Hyderabad">Hyderabad</option>
<option value="Chennai">Chennai</option>
<option value="Pune">Pune</option>
<option value="Kolkata">Kolkata</option>
<option value="Other">Other</option>
</select>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">City Tier</label>
<select id="profCityType" class="form-control">
<option value="">Select Tier</option>
<option value="Metro">Tier 1 (Metro)</option>
<option value="Non-Metro">Tier 2/3 (Non-Metro)</option>
</select>
</div>
</div>
</fieldset>
</div>
<!-- TAB 2: CASHFLOW -->
<div class="tab-pane fade" id="profile-cash" role="tabpanel">
<fieldset class="win95-fieldset">
<legend class="win95-legend">Monthly Liquidity</legend>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">In-Hand Salary (₹)</label>
<input type="number" id="profInHand" class="form-control">
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Side Income (₹)</label>
<input type="number" id="profSideIncome" class="form-control" value="0">
</div>
</div>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Fixed Expenses (₹)</label>
<input type="number" id="profExpenses" class="form-control">
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Monthly Rent (₹)</label>
<input type="number" id="profRent" class="form-control" value="0">
</div>
</div>
</fieldset>
<fieldset class="win95-fieldset">
<legend class="win95-legend">Budgeting Constraints</legend>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Spending Limit (₹)</label>
<input type="number" id="profBudget" class="form-control">
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Target Savings (₹)</label>
<input type="number" id="profMonthlySavings" class="form-control">
</div>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Income for Tracking (₹)</label>
<input type="number" id="profTrackingIncome" class="form-control">
<div class="form-text text-muted small" style="font-size: 0.65rem;">Used as base for percentage
calculations.</div>
</div>
</fieldset>
</div>
<!-- TAB 3: STRATEGY -->
<div class="tab-pane fade" id="profile-strat" role="tabpanel">
<fieldset class="win95-fieldset">
<legend class="win95-legend">Wealth Strategy</legend>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Current Net Worth (₹)</label>
<input type="number" id="profCorpus" class="form-control">
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Expected Return (%)</label>
<input type="number" id="profExpectedReturn" class="form-control" value="12">
</div>
</div>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Risk Appetite</label>
<select id="profRisk" class="form-control">
<option value="">Select Risk</option>
<option value="Conservative">Conservative</option>
<option value="Moderate">Moderate</option>
<option value="Aggressive">Aggressive</option>
</select>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Primary Goal</label>
<select id="profGoal" class="form-control">
<option value="">Select Goal</option>
<option value="Wealth Building">Wealth Building</option>
<option value="Early Retirement">Early Retirement</option>
<option value="Buying a Home">Buying a Home</option>
<option value="Emergency Fund">Emergency Fund</option>
<option value="Child's Education">Child's Education</option>
<option value="Business">Business</option>
</select>
</div>
</div>
</fieldset>
<fieldset class="win95-fieldset">
<legend class="win95-legend">Professional Profile</legend>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Annual CTC (₹)</label>
<input type="number" id="profCTC" class="form-control">
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Basic Salary %</label>
<select id="profBasicPercent" class="form-control">
<option value="">Select %</option>
<option value="40%">40% of CTC</option>
<option value="50%">50% of CTC</option>
<option value="60%">60% of CTC</option>
</select>
</div>
</div>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Tax Regime</label>
<select id="profTaxRegime" class="form-control">
<option value="">Select Regime</option>
<option value="New Regime">New Regime</option>
<option value="Old Regime">Old Regime</option>
</select>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Target Retirement Age</label>
<input type="number" id="profRetirementAge" class="form-control" value="60">
</div>
</div>
</fieldset>
<fieldset class="win95-fieldset">
<legend class="win95-legend">Work & Taxes (Advanced)</legend>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Work Hours/Day</label>
<input type="number" id="profWorkHours" class="form-control" value="8">
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Work Days/Week</label>
<input type="number" id="profWorkDays" class="form-control" value="5">
</div>
</div>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">PF Contribution</label>
<select id="profPF" class="form-control">
<option value="">Select PF</option>
<option value="12% of Basic (Standard)">12% (Standard)</option>
<option value="Opt Out">Opt Out</option>
</select>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">HRA % of Basic</label>
<select id="profHRAPercent" class="form-control">
<option value="">Select %</option>
<option value="40% (Non-Metro)">40% (Non-Metro)</option>
<option value="50% (Metro)">50% (Metro)</option>
</select>
</div>
</div>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">WFH Days/Week</label>
<input type="number" id="profWFHDays" class="form-control" value="0">
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Prof. Tax State</label>
<select id="profProfTax" class="form-control">
<option value="">Select State</option>
<option value="Maharashtra (₹2400/yr)">Maharashtra</option>
<option value="Karnataka (₹2400/yr)">Karnataka</option>
<option value="Other (₹0)">Other</option>
</select>
</div>
</div>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Commute (min)</label>
<input type="number" id="profCommute" class="form-control" value="0">
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Monthly Work Exp (₹)</label>
<input type="number" id="profWorkExpenses" class="form-control" value="0">
</div>
</div>
</fieldset>
</div>
<!-- TAB 4: SETTINGS -->
<div class="tab-pane fade" id="profile-settings" role="tabpanel">
<fieldset class="win95-fieldset">
<legend class="win95-legend">Budget & Income</legend>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Monthly Budget</label>
<div class="input-group">
<span class="input-group-text currency-prefix">₹</span>
<input type="number" id="monthlyBudgetInput" class="form-control" placeholder="0.00">
<button class="btn btn-primary" onclick="saveBudget()">Save</button>
</div>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Monthly Income</label>
<div class="input-group">
<span class="input-group-text currency-prefix">₹</span>
<input type="number" id="incomeInput" class="form-control" placeholder="0.00">
<button class="btn btn-primary" onclick="saveIncome()">Save</button>
</div>
</div>
<div class="mt-4">
<h6 class="fw-bold mb-3"><i class="bi bi-tag me-2"></i>Category Budgets</h6>
<div class="row g-2 mb-3">
<div class="col-6">
<input type="text" id="budgetCategoryName" class="form-control" placeholder="Category"
list="categoryList">
</div>
<div class="col-6">
<div class="input-group">
<span class="input-group-text currency-prefix">₹</span>
<input type="number" id="budgetCategoryAmount" class="form-control" placeholder="Limit">
</div>
</div>
<div class="col-12 mt-2">
<button class="btn btn-primary w-100" onclick="addCategoryBudget()">Set Category
Limit</button>
</div>
</div>
<ul id="categoryBudgetList" class="list-group small mb-2"></ul>
</div>
</fieldset>
<fieldset class="win95-fieldset">
<legend class="win95-legend">Display & Regional</legend>
<div class="prof-grid">
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Currency Symbol</label>
<div class="input-group">
<input type="text" id="currencySymbol" class="form-control" maxlength="3" placeholder="₹">
<button class="btn btn-primary" onclick="savePreferences()">Apply</button>
</div>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Date Format</label>
<select id="dateFormat" class="form-control">
<option value="DD/MM/YYYY">DD/MM/YYYY</option>
<option value="MM/DD/YYYY">MM/DD/YYYY</option>
<option value="YYYY-MM-DD">YYYY-MM-DD</option>
</select>
</div>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Background Style</label>
<div class="input-group">
<select id="bgStyle" class="form-control">
<option value="Soft Gradient">Soft Gradient</option>
<option value="Corporate Blue">Corporate Blue</option>
<option value="Classic Gray">Classic Gray</option>
</select>
<button class="btn btn-primary" onclick="saveAppearance()">Apply</button>
</div>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Widget Layout</label>
<select id="widgetSeparation" class="form-control">
<option value="global">Global (Same on all pages)</option>
<option value="local">Local (Different for each page)</option>
</select>
</div>
</fieldset>
<fieldset class="win95-fieldset">
<legend class="win95-legend">Maintenance & Data</legend>
<div class="mb-3">
<div class="row g-2">
<div class="col-6"><button class="btn btn-primary w-100 btn-sm" data-bs-toggle="modal"
data-bs-target="#compactModal">Compact DB</button></div>
<div class="col-6"><button class="btn btn-primary w-100 btn-sm" data-bs-toggle="modal"
data-bs-target="#rebuildModal">Rebuild Index</button></div>
</div>
</div>
<div class="mb-3">
<label class="form-label text-muted small fw-bold">Portability</label>
<div class="row g-2">
<div class="col-4"><button class="btn btn-primary w-100 btn-sm"
onclick="exportData()">JSON</button></div>
<div class="col-4"><button class="btn btn-primary w-100 btn-sm"
onclick="exportCSV()">CSV</button></div>
<div class="col-4">
<label for="importFile" class="btn btn-primary w-100 btn-sm mb-0">Import</label>
<input type="file" id="importFile" hidden accept=".json" onchange="importData()">
</div>
</div>
</div>
<div class="p-2 border" style="border-color:#808080 !important; margin-top:1rem;">
<button class="btn btn-sm w-100" onclick="showEraseModal()">FACTORY RESET SYSTEM</button>
</div>
</fieldset>
<fieldset class="win95-fieldset mt-3">
<legend class="win95-legend">Evaluation & Testing</legend>
<div class="mb-2">
<button onclick="loadDemoData()" id="demo-load-btn" class="btn btn-primary w-100 btn-sm">▶ Load
Demo Data</button>
</div>
<div id="demo-banner" style="display:none; background-color:#c0c0c0; color:#000;
padding:6px 12px; font-size:0.75rem; font-family:'Courier New',monospace;
margin-top:8px; display:flex; justify-content:space-between; align-items:center;
border:2px solid; border-color:#808080 #ffffff #ffffff #808080;">
<span style="font-weight:bold;">⚠ DEMO ACTIVE</span>
<button onclick="clearDemoData()" style="background:#c0c0c0; color:#000;
border:2px solid; border-color:#fff #808080 #808080 #fff;
font-size:0.7rem; padding:1px 8px; cursor:pointer; font-family:inherit;">
[Clear]
</button>
</div>
</fieldset>
</div>
</div>
</div>
<div class="win95-modal-footer">
<button type="button" class="btn btn-secondary" onclick="clearProfile()">Wipe Profile</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary px-4" onclick="saveProfile()">Apply Changes</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- MAINTENANCE MODALS -->
<div class="modal" id="compactModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Compact Database</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
This will optimize the local storage and remove empty data fragments. Proceed with optimization?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="runMaintenanceTask('Compact Database')">Execute
Optimization</button>
</div>
</div>
</div>
</div>
<div class="modal" id="rebuildModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Rebuild Index</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Are you sure you want to rebuild the data indexes? This may take a few seconds.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="runMaintenanceTask('Rebuild Index')">Rebuild
Now</button>
</div>
</div>
</div>
</div>
<div class="modal" id="eraseModal" tabindex="-1" aria-labelledby="eraseLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="eraseLabel">Confirm Erase</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Are you sure you want to permanently erase all data? This action cannot be undone.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn" onclick="eraseAllData()">Erase All Data</button>
</div>
</div>
</div>
</div>
<div class="modal" id="maintenanceProgressModal" tabindex="-1" data-bs-backdrop="static">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="maintenanceTaskTitle">System Maintenance</h5>
</div>
<div class="modal-body">
<p id="maintenanceStatus" class="mb-3">Initializing subsystem...</p>
<div class="retro-progress-container">
<div id="retroProgressBar" class="retro-progress-bar"></div>
</div>
<p class="text-muted small mt-2">Please do not close your browser or navigate away.</p>
</div>
</div>
</div>
</div>
<footer>
<div class="footer-content">
<div class="status-indicator">
<div class="status-dot"></div>
<span>Data Status: Local / Secure</span>
</div>