-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
547 lines (511 loc) · 32.7 KB
/
Copy pathindex.html
File metadata and controls
547 lines (511 loc) · 32.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AuraStudy | Smart Student Dashboard</title>
<!-- Google Fonts -->
<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=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- Main Stylesheet -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Background Glow Blobs -->
<div class="glow-bg">
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
<div class="blob blob-3"></div>
</div>
<div class="app-container">
<!-- Sidebar Navigation (Desktop & Tablet) -->
<aside class="sidebar" id="sidebar">
<div class="sidebar-header">
<div class="brand">
<span class="brand-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1-2.5-2.5Z"/><path d="M6 6h10"/><path d="M6 10h10"/></svg>
</span>
<span class="brand-name">AuraStudy</span>
</div>
</div>
<div class="user-profile">
<div class="avatar-container">
<div class="avatar">🎓</div>
<span class="status-indicator"></span>
</div>
<div class="user-info">
<h4 id="user-name">Guest Student</h4>
<p id="user-grade">Computer Science</p>
</div>
</div>
<nav class="nav-menu">
<a href="#dashboard" class="nav-link active" data-view="dashboard">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="7" height="9" x="3" y="3" rx="1"/><rect width="7" height="5" x="14" y="3" rx="1"/><rect width="7" height="9" x="14" y="12" rx="1"/><rect width="7" height="5" x="3" y="16" rx="1"/></svg>
</span>
<span>Dashboard</span>
</a>
<a href="#assignments" class="nav-link" data-view="assignments">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg>
</span>
<span>Assignments</span>
<span class="badge badge-pending" id="badge-assignments-count">0</span>
</a>
<a href="#attendance" class="nav-link" data-view="attendance">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="m9 11 3 3L22 4"/></svg>
</span>
<span>Attendance</span>
</a>
<a href="#planner" class="nav-link" data-view="planner">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="m9 16 2 2 4-4"/></svg>
</span>
<span>Study Planner</span>
</a>
<a href="#notes" class="nav-link" data-view="notes">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5L15.5 3Z"/><path d="M15 3v6h6"/><path d="M12 18h-4"/><path d="M12 14h-4"/></svg>
</span>
<span>Notes</span>
</a>
</nav>
<div class="sidebar-footer">
<button class="btn btn-logout" id="btn-reset-data">
<span class="btn-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"/><path d="M16 16h5v5"/><path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M8 8H3V3"/></svg>
</span>
<span>Reset All Data</span>
</button>
</div>
</aside>
<!-- Mobile Bottom Navigation Bar -->
<nav class="mobile-nav">
<a href="#dashboard" class="mobile-nav-link active" data-view="dashboard">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="7" height="9" x="3" y="3" rx="1"/><rect width="7" height="5" x="14" y="3" rx="1"/><rect width="7" height="9" x="14" y="12" rx="1"/><rect width="7" height="5" x="3" y="16" rx="1"/></svg>
<span>Home</span>
</a>
<a href="#assignments" class="mobile-nav-link" data-view="assignments">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg>
<span>Tasks</span>
</a>
<a href="#attendance" class="mobile-nav-link" data-view="attendance">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="m9 11 3 3L22 4"/></svg>
<span>Attendance</span>
</a>
<a href="#planner" class="mobile-nav-link" data-view="planner">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="m9 16 2 2 4-4"/></svg>
<span>Planner</span>
</a>
<a href="#notes" class="mobile-nav-link" data-view="notes">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5L15.5 3Z"/><path d="M15 3v6h6"/><path d="M12 18h-4"/><path d="M12 14h-4"/></svg>
<span>Notes</span>
</a>
</nav>
<!-- Main Content Panel -->
<main class="main-panel">
<!-- Header bar -->
<header class="main-header">
<div class="header-title-wrapper">
<h1 id="view-title">Dashboard</h1>
<p class="current-date" id="current-date">Sunday, June 14, 2026</p>
</div>
<div class="header-actions">
<button class="btn btn-primary btn-glow" id="btn-header-action">
<span class="btn-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>
</span>
<span id="header-action-text">Quick Action</span>
</button>
</div>
</header>
<!-- Dynamic Views Container -->
<div class="view-content-wrapper">
<!-- 1. DASHBOARD VIEW -->
<section id="view-dashboard" class="view-section active">
<!-- Welcome Banner Card -->
<div class="welcome-card card">
<div class="welcome-text">
<h2>Welcome back, <span class="student-name-fill">Student</span>! 👋</h2>
<p>Here is a summary of your academic progress. Keep going, you are doing great!</p>
</div>
<div class="welcome-illustration">🏆</div>
</div>
<!-- Metrics Grid -->
<div class="metrics-grid">
<!-- Card: Total Subjects -->
<div class="metric-card card clickable" data-target-view="attendance">
<div class="metric-icon subjects-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1-2.5-2.5Z"/><path d="M6 6h10"/><path d="M6 10h10"/></svg>
</div>
<div class="metric-details">
<span class="metric-title">Active Subjects</span>
<h3 class="metric-value" id="dashboard-total-subjects">0</h3>
</div>
</div>
<!-- Card: Pending Assignments -->
<div class="metric-card card clickable" data-target-view="assignments">
<div class="metric-icon assignments-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg>
</div>
<div class="metric-details">
<span class="metric-title">Pending Tasks</span>
<h3 class="metric-value" id="dashboard-pending-assignments">0</h3>
</div>
</div>
<!-- Card: Attendance Percentage -->
<div class="metric-card card clickable" data-target-view="attendance">
<div class="metric-icon attendance-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m16.2 7.8-2 2.6c-.07.1-.08.23-.02.32l.7.9c.1.13.06.32-.08.38l-2.4 1.1a.3.3 0 0 1-.37-.37l1.1-2.4c.06-.14.25-.18.38-.08l.9.7c.09.06.22.05.32-.02l2.6-2c.16-.12.38.07.26.23Z"/></svg>
</div>
<div class="metric-details">
<span class="metric-title">Avg Attendance</span>
<h3 class="metric-value" id="dashboard-avg-attendance">0%</h3>
</div>
</div>
<!-- Card: Today's Exam Info / Countdown -->
<div class="metric-card card clickable" id="dashboard-exams-metric" data-target-view="assignments">
<div class="metric-icon exams-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" x2="12" y1="9" y2="13"/><line x1="12" x2="12.01" y1="17" y2="17"/></svg>
</div>
<div class="metric-details">
<span class="metric-title">Upcoming Exams</span>
<h3 class="metric-value" id="dashboard-upcoming-exams">0</h3>
</div>
</div>
</div>
<!-- Split Section -->
<div class="dashboard-split">
<!-- Left Panel: Attendance Rings Summary -->
<div class="card panel-card">
<div class="panel-header">
<h3>Attendance Target Tracker</h3>
<p>Progress towards meeting target rates</p>
</div>
<div class="panel-body flex-center-col">
<div class="circular-progress-wrapper">
<svg class="circular-progress-svg" viewBox="0 0 120 120">
<circle class="bg-circle" cx="60" cy="60" r="50" />
<circle class="fg-circle" id="dashboard-attendance-ring" cx="60" cy="60" r="50" stroke-dasharray="314.16" stroke-dashoffset="314.16" />
</svg>
<div class="circular-progress-text">
<span id="dashboard-attendance-percent">0%</span>
<span class="subtext">Average</span>
</div>
</div>
<div id="dashboard-attendance-verdict" class="attendance-verdict mt-4">
No attendance data added. Go to the Attendance tab to add subjects.
</div>
</div>
</div>
<!-- Right Panel: Today's Tasks Checklist -->
<div class="card panel-card">
<div class="panel-header">
<h3>Today's Study Progress</h3>
<span class="badge badge-primary" id="dashboard-planner-progress-text">0/0 Tasks</span>
</div>
<div class="panel-body">
<div class="progress-bar-container mb-4">
<div class="progress-bar" id="dashboard-planner-progress-bar" style="width: 0%"></div>
</div>
<div class="dashboard-task-list" id="dashboard-task-list">
<!-- Tasks dynamically inserted -->
<div class="empty-state">
<p>No study tasks created for today.</p>
<button class="btn btn-secondary btn-sm mt-2" data-target-view="planner">Go to Planner</button>
</div>
</div>
</div>
</div>
</div>
<!-- Row: Urgent Assignments & Mini Notes -->
<div class="dashboard-split mt-4">
<!-- Urgent Assignments -->
<div class="card panel-card">
<div class="panel-header">
<h3>Urgent Assignments</h3>
<p>Deadlines approaching in less than 3 days</p>
</div>
<div class="panel-body">
<div class="dashboard-assignment-list" id="dashboard-assignment-list">
<!-- Dynamic List -->
</div>
</div>
</div>
<!-- Quick Notes / Subject Tracker -->
<div class="card panel-card">
<div class="panel-header">
<h3>Recent Study Notes</h3>
<button class="btn btn-secondary btn-sm" id="btn-quick-note">Write Note</button>
</div>
<div class="panel-body">
<div class="dashboard-notes-list" id="dashboard-notes-list">
<!-- Dynamic List -->
</div>
</div>
</div>
</div>
</section>
<!-- 2. ASSIGNMENTS TRACKER VIEW -->
<section id="view-assignments" class="view-section">
<div class="controls-row">
<div class="search-box">
<span class="search-icon">
<svg xmlns="http://www.w3.org/2000/svg" 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"/><path d="m21 21-4.3-4.3"/></svg>
</span>
<input type="text" id="search-assignments" placeholder="Search assignments or subjects...">
</div>
<div class="filters-group" id="assignment-filters">
<button class="filter-btn active" data-filter="all">All</button>
<button class="filter-btn" data-filter="pending">Pending</button>
<button class="filter-btn" data-filter="completed">Completed</button>
<button class="filter-btn" data-filter="overdue">Overdue</button>
</div>
<button class="btn btn-primary" id="btn-add-assignment">
<span class="btn-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>
</span>
<span>Add Assignment</span>
</button>
</div>
<div class="items-grid" id="assignments-grid">
<!-- Dynamic items -->
</div>
</section>
<!-- 3. ATTENDANCE VIEW -->
<section id="view-attendance" class="view-section">
<div class="overall-attendance-banner card mb-4">
<div class="banner-info">
<h2>Average Attendance Status</h2>
<p>Target rate threshold: <strong id="global-target-value">75%</strong>. Keep your attendance above this level to avoid warning markers.</p>
<div class="target-control mt-3">
<label for="input-attendance-target">Set Target Target (%): </label>
<input type="number" id="input-attendance-target" min="50" max="100" value="75" class="input-inline">
<button class="btn btn-secondary btn-sm" id="btn-update-target">Update</button>
</div>
</div>
<div class="banner-metric">
<span class="percentage" id="attendance-total-percentage">0%</span>
<span class="status-badge status-good" id="attendance-total-badge">Good</span>
</div>
</div>
<div class="controls-row">
<h3 class="section-subtitle">Subject Wise Attendance Log</h3>
<button class="btn btn-primary" id="btn-add-subject">
<span class="btn-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>
</span>
<span>Add Subject</span>
</button>
</div>
<div class="items-grid" id="subjects-grid">
<!-- Subject Cards Dynamically Logged -->
</div>
</section>
<!-- 4. STUDY PLANNER VIEW -->
<section id="view-planner" class="view-section">
<div class="planner-grid">
<!-- Today's stats & Progress card -->
<div class="card panel-card planner-stats-card">
<div class="panel-header">
<h3>Planner Stats</h3>
<p>Today's task summary</p>
</div>
<div class="panel-body">
<div class="task-circle-container">
<div class="progress-ring-lg">
<svg viewBox="0 0 120 120">
<circle class="bg-circle" cx="60" cy="60" r="50" />
<circle class="fg-circle" id="planner-big-ring" cx="60" cy="60" r="50" stroke-dasharray="314.16" stroke-dashoffset="314.16" />
</svg>
<div class="progress-ring-text" id="planner-big-text">0%</div>
</div>
</div>
<div class="planner-numbers-row mt-4">
<div class="num-item">
<span class="count-label">High Priority</span>
<h4 id="planner-high-count">0</h4>
</div>
<div class="num-item border-side">
<span class="count-label">Medium Priority</span>
<h4 id="planner-medium-count">0</h4>
</div>
<div class="num-item">
<span class="count-label">Low Priority</span>
<h4 id="planner-low-count">0</h4>
</div>
</div>
</div>
</div>
<!-- Study Planner Manager -->
<div class="card panel-card planner-manager-card">
<div class="panel-header">
<h3>Today's Study Checklist</h3>
<button class="btn btn-secondary btn-sm" id="btn-clear-completed-tasks">Clear Completed</button>
</div>
<div class="panel-body">
<!-- Quick add task -->
<form id="form-quick-add-task" class="quick-add-form mb-4">
<input type="text" id="input-task-title" placeholder="Add a new task..." required>
<select id="select-task-priority" class="select-inline">
<option value="high">High</option>
<option value="medium" selected>Medium</option>
<option value="low">Low</option>
</select>
<button type="submit" class="btn btn-primary">Add</button>
</form>
<div class="planner-lists-container">
<div class="planner-list-section">
<h4>Tasks</h4>
<ul class="task-list" id="planner-task-list">
<!-- Tasks loaded dynamically -->
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- 5. NOTES SECTION VIEW -->
<section id="view-notes" class="view-section">
<div class="controls-row">
<div class="search-box">
<span class="search-icon">
<svg xmlns="http://www.w3.org/2000/svg" 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"/><path d="m21 21-4.3-4.3"/></svg>
</span>
<input type="text" id="search-notes" placeholder="Search notes by title, tag, content...">
</div>
<div class="filters-group" id="note-subject-filters">
<!-- Dynamic Subject Filter Tags -->
</div>
<button class="btn btn-primary" id="btn-add-note">
<span class="btn-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>
</span>
<span>Create Note</span>
</button>
</div>
<div class="items-grid notes-grid" id="notes-grid">
<!-- Notes Dynamic Grid Layout -->
</div>
</section>
</div>
</main>
</div>
<!-- MODAL: ADD/EDIT SUBJECT -->
<div class="modal-backdrop" id="modal-subject">
<div class="modal card">
<div class="modal-header">
<h3 id="subject-modal-title">Add Subject</h3>
<button class="btn-close" id="btn-close-subject-modal">×</button>
</div>
<form id="form-subject">
<input type="hidden" id="input-subject-id">
<div class="form-group">
<label for="input-subject-name">Subject Name</label>
<input type="text" id="input-subject-name" placeholder="e.g. Mathematics, Operating Systems" required>
</div>
<div class="form-group row-split">
<div>
<label for="input-subject-attended">Classes Attended</label>
<input type="number" id="input-subject-attended" min="0" value="0" required>
</div>
<div>
<label for="input-subject-total">Total Classes</label>
<input type="number" id="input-subject-total" min="0" value="0" required>
</div>
</div>
<div class="modal-actions">
<button type="button" class="btn btn-secondary" id="btn-cancel-subject-modal">Cancel</button>
<button type="submit" class="btn btn-primary">Save Subject</button>
</div>
</form>
</div>
</div>
<!-- MODAL: ADD/EDIT ASSIGNMENT -->
<div class="modal-backdrop" id="modal-assignment">
<div class="modal card">
<div class="modal-header">
<h3 id="assignment-modal-title">Add Assignment</h3>
<button class="btn-close" id="btn-close-assignment-modal">×</button>
</div>
<form id="form-assignment">
<input type="hidden" id="input-assignment-id">
<div class="form-group">
<label for="input-assignment-title">Assignment Title</label>
<input type="text" id="input-assignment-title" placeholder="e.g. Lab Report 1, Homework 3" required>
</div>
<div class="form-group">
<label for="select-assignment-subject">Subject</label>
<select id="select-assignment-subject" required>
<option value="" disabled selected>Select Subject</option>
<!-- Injected dynamically -->
</select>
</div>
<div class="form-group row-split">
<div>
<label for="input-assignment-deadline">Deadline Date & Time</label>
<input type="datetime-local" id="input-assignment-deadline" required>
</div>
<div>
<label for="select-assignment-priority">Priority</label>
<select id="select-assignment-priority" required>
<option value="high">High</option>
<option value="medium" selected>Medium</option>
<option value="low">Low</option>
</select>
</div>
</div>
<div class="form-group">
<label for="input-assignment-notes">Additional Notes</label>
<textarea id="input-assignment-notes" rows="3" placeholder="Optional comments or requirements..."></textarea>
</div>
<div class="form-group-checkbox">
<input type="checkbox" id="checkbox-assignment-exam">
<label for="checkbox-assignment-exam">This is an Exam (tracks under upcoming exams)</label>
</div>
<div class="modal-actions">
<button type="button" class="btn btn-secondary" id="btn-cancel-assignment-modal">Cancel</button>
<button type="submit" class="btn btn-primary">Save Assignment</button>
</div>
</form>
</div>
</div>
<!-- MODAL: ADD/EDIT NOTE -->
<div class="modal-backdrop" id="modal-note">
<div class="modal card note-modal-wide">
<div class="modal-header">
<h3 id="note-modal-title">Create Note</h3>
<button class="btn-close" id="btn-close-note-modal">×</button>
</div>
<form id="form-note">
<input type="hidden" id="input-note-id">
<div class="form-group row-split-3">
<div style="flex: 2;">
<label for="input-note-title">Note Title</label>
<input type="text" id="input-note-title" placeholder="e.g. Fourier Transforms, React Lifecycle Hooks" required>
</div>
<div>
<label for="input-note-subject">Subject Tag</label>
<input type="text" id="input-note-subject" placeholder="e.g. Maths, Physics, CS" required>
</div>
</div>
<div class="form-group">
<label for="textarea-note-content">Notes Content</label>
<textarea id="textarea-note-content" rows="10" placeholder="Write down your detailed study notes here..." required></textarea>
</div>
<div class="modal-actions">
<button type="button" class="btn btn-secondary" id="btn-cancel-note-modal">Cancel</button>
<button type="submit" class="btn btn-primary">Save Note</button>
</div>
</form>
</div>
</div>
<!-- Interactive Toast Notification System -->
<div class="toast-container" id="toast-container"></div>
<!-- Core App Logic -->
<script src="app.js"></script>
</body>
</html>