File size: 41,339 Bytes
e35ca57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EduTrack LMS</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* Custom CSS for features Tailwind doesn't cover */
        .sidebar {
            transition: all 0.3s ease;
        }
        .sidebar-collapsed {
            width: 70px;
        }
        .sidebar-expanded {
            width: 250px;
        }
        .main-content {
            transition: margin-left 0.3s ease;
        }
        .content-expanded {
            margin-left: 250px;
        }
        .content-collapsed {
            margin-left: 70px;
        }
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            font-size: 10px;
            background-color: #ef4444;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .file-upload-container {
            border: 2px dashed #cbd5e0;
            transition: all 0.3s ease;
        }
        .file-upload-container:hover {
            border-color: #6366f1;
            background-color: #f8fafc;
        }
        .timetable-cell {
            min-height: 80px;
            border: 1px solid #e2e8f0;
        }
        .timetable-cell:hover {
            background-color: #f1f5f9;
        }
        .chat-message {
            max-width: 70%;
            word-wrap: break-word;
        }
        .grading-progress {
            height: 8px;
            background-color: #e2e8f0;
        }
        .grading-progress-bar {
            height: 100%;
            background-color: #10b981;
        }
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                z-index: 1000;
                height: 100vh;
            }
            .sidebar-collapsed, .sidebar-expanded {
                width: 0;
                overflow: hidden;
            }
            .main-content {
                margin-left: 0 !important;
            }
            .mobile-menu-button {
                display: block !important;
            }
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Mobile Menu Button -->
    <button id="mobileMenuButton" class="md:hidden fixed top-4 left-4 z-50 bg-indigo-600 text-white p-2 rounded-lg shadow-lg">
        <i class="fas fa-bars"></i>
    </button>

    <!-- Sidebar -->
    <div id="sidebar" class="sidebar sidebar-expanded bg-indigo-800 text-white h-screen fixed overflow-y-auto">
        <div class="p-4 flex items-center justify-between border-b border-indigo-700">
            <div class="flex items-center space-x-2">
                <i class="fas fa-graduation-cap text-2xl"></i>
                <span id="logoText" class="text-xl font-bold">EduTrack</span>
            </div>
            <button id="toggleSidebar" class="text-white hover:text-indigo-200">
                <i class="fas fa-chevron-left"></i>
            </button>
        </div>
        
        <!-- User Profile -->
        <div class="p-4 flex items-center space-x-3 border-b border-indigo-700">
            <div class="relative">
                <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Profile" class="w-10 h-10 rounded-full">
                <span class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full border-2 border-indigo-800"></span>
            </div>
            <div id="userInfo">
                <p class="font-medium">Admin User</p>
                <p class="text-xs text-indigo-200">Administrator</p>
            </div>
        </div>
        
        <!-- Navigation -->
        <nav class="mt-4">
            <div class="px-2">
                <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Dashboard</p>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white">
                    <i class="fas fa-home"></i>
                    <span>Dashboard</span>
                </a>
            </div>
            
            <div class="px-2 mt-4">
                <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Management</p>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-users"></i>
                    <span>Users</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-book"></i>
                    <span>Courses</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-calendar-alt"></i>
                    <span>Timetables</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-file-alt"></i>
                    <span>Content</span>
                </a>
            </div>
            
            <div class="px-2 mt-4">
                <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Communication</p>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <div class="relative">
                        <i class="fas fa-envelope"></i>
                        <span class="notification-badge">3</span>
                    </div>
                    <span>Messages</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-bullhorn"></i>
                    <span>Announcements</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-calendar-check"></i>
                    <span>Meetings</span>
                </a>
            </div>
            
            <div class="px-2 mt-4">
                <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Academic</p>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-tasks"></i>
                    <span>Assignments</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-chart-bar"></i>
                    <span>Grades</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-user-check"></i>
                    <span>Attendance</span>
                </a>
            </div>
            
            <div class="px-2 mt-4">
                <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Settings</p>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-cog"></i>
                    <span>Settings</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white">
                    <i class="fas fa-sign-out-alt"></i>
                    <span>Logout</span>
                </a>
            </div>
        </nav>
    </div>

    <!-- Main Content -->
    <div id="mainContent" class="main-content content-expanded min-h-screen">
        <!-- Top Navigation -->
        <header class="bg-white shadow-sm">
            <div class="max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
                <h1 class="text-lg font-semibold text-gray-900">Admin Dashboard</h1>
                <div class="flex items-center space-x-4">
                    <div class="relative">
                        <button class="p-2 rounded-full text-gray-600 hover:text-gray-900 hover:bg-gray-100">
                            <i class="fas fa-bell"></i>
                            <span class="notification-badge">5</span>
                        </button>
                    </div>
                    <div class="relative">
                        <button class="p-2 rounded-full text-gray-600 hover:text-gray-900 hover:bg-gray-100">
                            <i class="fas fa-envelope"></i>
                            <span class="notification-badge">3</span>
                        </button>
                    </div>
                    <div class="relative">
                        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Profile" class="w-8 h-8 rounded-full">
                    </div>
                </div>
            </div>
        </header>

        <!-- Dashboard Content -->
        <main class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8">
            <!-- Stats Cards -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">Total Students</p>
                            <p class="text-2xl font-semibold text-gray-900">1,248</p>
                        </div>
                        <div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
                            <i class="fas fa-users"></i>
                        </div>
                    </div>
                    <div class="mt-4">
                        <span class="text-green-600 text-sm font-medium">+12.5%</span>
                        <span class="text-gray-500 text-sm ml-2">from last semester</span>
                    </div>
                </div>
                
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">Active Lecturers</p>
                            <p class="text-2xl font-semibold text-gray-900">48</p>
                        </div>
                        <div class="p-3 rounded-full bg-green-100 text-green-600">
                            <i class="fas fa-chalkboard-teacher"></i>
                        </div>
                    </div>
                    <div class="mt-4">
                        <span class="text-green-600 text-sm font-medium">+3.2%</span>
                        <span class="text-gray-500 text-sm ml-2">from last semester</span>
                    </div>
                </div>
                
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">Courses Offered</p>
                            <p class="text-2xl font-semibold text-gray-900">36</p>
                        </div>
                        <div class="p-3 rounded-full bg-blue-100 text-blue-600">
                            <i class="fas fa-book"></i>
                        </div>
                    </div>
                    <div class="mt-4">
                        <span class="text-green-600 text-sm font-medium">+2</span>
                        <span class="text-gray-500 text-sm ml-2">new courses</span>
                    </div>
                </div>
                
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">Pending Tasks</p>
                            <p class="text-2xl font-semibold text-gray-900">7</p>
                        </div>
                        <div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
                            <i class="fas fa-tasks"></i>
                        </div>
                    </div>
                    <div class="mt-4">
                        <span class="text-red-600 text-sm font-medium">-2</span>
                        <span class="text-gray-500 text-sm ml-2">since yesterday</span>
                    </div>
                </div>
            </div>

            <!-- Main Sections -->
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
                <!-- Left Column -->
                <div class="lg:col-span-2 space-y-6">
                    <!-- Timetable Management -->
                    <div class="bg-white rounded-lg shadow overflow-hidden">
                        <div class="px-6 py-4 border-b border-gray-200">
                            <h2 class="text-lg font-semibold text-gray-900">Timetable Management</h2>
                        </div>
                        <div class="p-6">
                            <div class="flex justify-between items-center mb-4">
                                <div>
                                    <h3 class="text-md font-medium">Academic Year 2023/2024</h3>
                                    <p class="text-sm text-gray-500">Semester 1 Timetable</p>
                                </div>
                                <div class="flex space-x-2">
                                    <button class="px-3 py-1 bg-indigo-600 text-white rounded-md text-sm hover:bg-indigo-700">
                                        <i class="fas fa-plus mr-1"></i> Add Timetable
                                    </button>
                                    <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm hover:bg-gray-50">
                                        <i class="fas fa-download mr-1"></i> Export
                                    </button>
                                </div>
                            </div>
                            
                            <!-- Timetable View -->
                            <div class="overflow-x-auto">
                                <table class="min-w-full divide-y divide-gray-200">
                                    <thead class="bg-gray-50">
                                        <tr>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time</th>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Monday</th>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tuesday</th>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Wednesday</th>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Thursday</th>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Friday</th>
                                        </tr>
                                    </thead>
                                    <tbody class="bg-white divide-y divide-gray-200">
                                        <tr>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm font-medium text-gray-900">8:00 - 9:30</td>
                                            <td class="px-4 py-4">
                                                <div class="timetable-cell p-2 bg-blue-50 rounded">
                                                    <p class="text-sm font-medium">Mathematics 101</p>
                                                    <p class="text-xs text-gray-500">Prof. Smith</p>
                                                    <p class="text-xs text-gray-500">Room A12</p>
                                                </div>
                                            </td>
                                            <td class="px-4 py-4"></td>
                                            <td class="px-4 py-4">
                                                <div class="timetable-cell p-2 bg-green-50 rounded">
                                                    <p class="text-sm font-medium">Physics 101</p>
                                                    <p class="text-xs text-gray-500">Dr. Johnson</p>
                                                    <p class="text-xs text-gray-500">Lab B3</p>
                                                </div>
                                            </td>
                                            <td class="px-4 py-4"></td>
                                            <td class="px-4 py-4">
                                                <div class="timetable-cell p-2 bg-purple-50 rounded">
                                                    <p class="text-sm font-medium">Computer Science</p>
                                                    <p class="text-xs text-gray-500">Dr. Lee</p>
                                                    <p class="text-xs text-gray-500">Room C5</p>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm font-medium text-gray-900">10:00 - 11:30</td>
                                            <td class="px-4 py-4"></td>
                                            <td class="px-4 py-4">
                                                <div class="timetable-cell p-2 bg-yellow-50 rounded">
                                                    <p class="text-sm font-medium">Literature 101</p>
                                                    <p class="text-xs text-gray-500">Prof. Brown</p>
                                                    <p class="text-xs text-gray-500">Room D8</p>
                                                </div>
                                            </td>
                                            <td class="px-4 py-4"></td>
                                            <td class="px-4 py-4">
                                                <div class="timetable-cell p-2 bg-red-50 rounded">
                                                    <p class="text-sm font-medium">Chemistry</p>
                                                    <p class="text-xs text-gray-500">Dr. Wilson</p>
                                                    <p class="text-xs text-gray-500">Lab A2</p>
                                                </div>
                                            </td>
                                            <td class="px-4 py-4"></td>
                                        </tr>
                                        <!-- More time slots... -->
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Course Management -->
                    <div class="bg-white rounded-lg shadow overflow-hidden">
                        <div class="px-6 py-4 border-b border-gray-200">
                            <h2 class="text-lg font-semibold text-gray-900">Course Management</h2>
                        </div>
                        <div class="p-6">
                            <div class="flex justify-between items-center mb-4">
                                <div>
                                    <h3 class="text-md font-medium">Current Courses</h3>
                                    <p class="text-sm text-gray-500">All active courses in the system</p>
                                </div>
                                <button class="px-3 py-1 bg-indigo-600 text-white rounded-md text-sm hover:bg-indigo-700">
                                    <i class="fas fa-plus mr-1"></i> Add Course
                                </button>
                            </div>
                            
                            <div class="overflow-x-auto">
                                <table class="min-w-full divide-y divide-gray-200">
                                    <thead class="bg-gray-50">
                                        <tr>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Course Code</th>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Course Name</th>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Lecturer</th>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Students</th>
                                            <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                                        </tr>
                                    </thead>
                                    <tbody class="bg-white divide-y divide-gray-200">
                                        <tr>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CS101</td>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Introduction to Computer Science</td>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Dr. Sarah Lee</td>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">142</td>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">
                                                <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></button>
                                                <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm font-medium text-gray-900">MATH201</td>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Calculus II</td>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Prof. John Smith</td>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">98</td>
                                            <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">
                                                <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></button>
                                                <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
                                            </td>
                                        </tr>
                                        <!-- More courses... -->
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Right Column -->
                <div class="space-y-6">
                    <!-- Quick Actions -->
                    <div class="bg-white rounded-lg shadow overflow-hidden">
                        <div class="px-6 py-4 border-b border-gray-200">
                            <h2 class="text-lg font-semibold text-gray-900">Quick Actions</h2>
                        </div>
                        <div class="p-6 grid grid-cols-2 gap-4">
                            <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
                                <div class="p-3 rounded-full bg-indigo-100 text-indigo-600 mb-2">
                                    <i class="fas fa-user-plus"></i>
                                </div>
                                <span class="text-sm font-medium">Add Student</span>
                            </button>
                            <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
                                <div class="p-3 rounded-full bg-green-100 text-green-600 mb-2">
                                    <i class="fas fa-chalkboard-teacher"></i>
                                </div>
                                <span class="text-sm font-medium">Add Lecturer</span>
                            </button>
                            <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
                                <div class="p-3 rounded-full bg-blue-100 text-blue-600 mb-2">
                                    <i class="fas fa-calendar-plus"></i>
                                </div>
                                <span class="text-sm font-medium">Add Event</span>
                            </button>
                            <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
                                <div class="p-3 rounded-full bg-purple-100 text-purple-600 mb-2">
                                    <i class="fas fa-bullhorn"></i>
                                </div>
                                <span class="text-sm font-medium">Send Announcement</span>
                            </button>
                        </div>
                    </div>
                    
                    <!-- Recent Announcements -->
                    <div class="bg-white rounded-lg shadow overflow-hidden">
                        <div class="px-6 py-4 border-b border-gray-200">
                            <h2 class="text-lg font-semibold text-gray-900">Recent Announcements</h2>
                        </div>
                        <div class="p-6 space-y-4">
                            <div class="flex items-start">
                                <div class="flex-shrink-0">
                                    <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/1.jpg" alt="Admin">
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-gray-900">Admin</p>
                                    <p class="text-sm text-gray-500">Midterm exams schedule has been updated. Please check your timetable.</p>
                                    <div class="mt-1 flex items-center text-xs text-gray-500">
                                        <span>2 hours ago</span>
                                        <span class="mx-1">•</span>
                                        <button class="text-indigo-600 hover:text-indigo-900">View Details</button>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="flex items-start">
                                <div class="flex-shrink-0">
                                    <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/2.jpg" alt="President">
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-gray-900">School President</p>
                                    <p class="text-sm text-gray-500">The annual science fair will be held next month. Registration is now open.</p>
                                    <div class="mt-1 flex items-center text-xs text-gray-500">
                                        <span>1 day ago</span>
                                        <span class="mx-1">•</span>
                                        <button class="text-indigo-600 hover:text-indigo-900">View Details</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="px-6 py-3 border-t border-gray-200 bg-gray-50 text-right">
                            <button class="text-sm font-medium text-indigo-600 hover:text-indigo-900">View all announcements</button>
                        </div>
                    </div>
                    
                    <!-- File Upload -->
                    <div class="bg-white rounded-lg shadow overflow-hidden">
                        <div class="px-6 py-4 border-b border-gray-200">
                            <h2 class="text-lg font-semibold text-gray-900">Upload Files</h2>
                        </div>
                        <div class="p-6">
                            <div class="file-upload-container rounded-lg p-6 text-center">
                                <div class="mx-auto h-12 w-12 text-gray-400">
                                    <i class="fas fa-cloud-upload-alt text-3xl"></i>
                                </div>
                                <h3 class="mt-2 text-sm font-medium text-gray-900">Drag and drop files here</h3>
                                <p class="mt-1 text-xs text-gray-500">or</p>
                                <label for="file-upload" class="mt-2 inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
                                    <i class="fas fa-folder-open mr-2"></i>
                                    Browse Files
                                </label>
                                <input id="file-upload" name="file-upload" type="file" class="sr-only">
                            </div>
                            
                            <div class="mt-4">
                                <label for="recipient" class="block text-sm font-medium text-gray-700">Recipient</label>
                                <select id="recipient" name="recipient" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md">
                                    <option>All Students</option>
                                    <option>All Lecturers</option>
                                    <option>Computer Science Students</option>
                                    <option>Mathematics Department</option>
                                </select>
                            </div>
                            
                            <div class="mt-4">
                                <label for="message" class="block text-sm font-medium text-gray-700">Message</label>
                                <textarea id="message" name="message" rows="3" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"></textarea>
                            </div>
                            
                            <div class="mt-4 flex justify-end">
                                <button type="button" class="bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
                                    Cancel
                                </button>
                                <button type="submit" class="ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
                                    Send
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- Database Connection Modal (Hidden by default) -->
    <div id="dbModal" class="hidden fixed z-50 inset-0 overflow-y-auto">
        <div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
            <div class="fixed inset-0 transition-opacity" aria-hidden="true">
                <div class="absolute inset-0 bg-gray-500 opacity-75"></div>
            </div>
            <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
            <div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full">
                <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
                    <h3 class="text-lg leading-6 font-medium text-gray-900 mb-4">MySQL Database Connection</h3>
                    <form>
                        <div class="mb-4">
                            <label for="dbHost" class="block text-sm font-medium text-gray-700">Host</label>
                            <input type="text" id="dbHost" name="dbHost" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" value="localhost">
                        </div>
                        <div class="mb-4">
                            <label for="dbUser" class="block text-sm font-medium text-gray-700">Username</label>
                            <input type="text" id="dbUser" name="dbUser" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" value="root">
                        </div>
                        <div class="mb-4">
                            <label for="dbPass" class="block text-sm font-medium text-gray-700">Password</label>
                            <input type="password" id="dbPass" name="dbPass" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
                        </div>
                        <div class="mb-4">
                            <label for="dbName" class="block text-sm font-medium text-gray-700">Database Name</label>
                            <input type="text" id="dbName" name="dbName" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" value="edutrack_lms">
                        </div>
                    </form>
                </div>
                <div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
                    <button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm">
                        Test Connection
                    </button>
                    <button type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
                        Cancel
                    </button>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Toggle sidebar
        document.getElementById('toggleSidebar').addEventListener('click', function() {
            const sidebar = document.getElementById('sidebar');
            const mainContent = document.getElementById('mainContent');
            const logoText = document.getElementById('logoText');
            
            if (sidebar.classList.contains('sidebar-expanded')) {
                sidebar.classList.remove('sidebar-expanded');
                sidebar.classList.add('sidebar-collapsed');
                mainContent.classList.remove('content-expanded');
                mainContent.classList.add('content-collapsed');
                logoText.classList.add('hidden');
            } else {
                sidebar.classList.remove('sidebar-collapsed');
                sidebar.classList.add('sidebar-expanded');
                mainContent.classList.remove('content-collapsed');
                mainContent.classList.add('content-expanded');
                logoText.classList.remove('hidden');
            }
        });

        // Mobile menu toggle
        document.getElementById('mobileMenuButton').addEventListener('click', function() {
            const sidebar = document.getElementById('sidebar');
            if (sidebar.classList.contains('sidebar-expanded') || sidebar.classList.contains('sidebar-collapsed')) {
                sidebar.classList.remove('sidebar-expanded', 'sidebar-collapsed');
            } else {
                sidebar.classList.add('sidebar-expanded');
                document.getElementById('mainContent').classList.remove('content-collapsed', 'content-expanded');
            }
        });

        // Database connection modal (for demonstration)
        document.addEventListener('DOMContentLoaded', function() {
            // In a real application, this would be handled by your backend
            console.log('EduTrack LMS loaded. Database connection would be established here.');
            
            // Example of connecting to MySQL (this would be server-side in a real app)
            /*
            const mysql = require('mysql');
            const connection = mysql.createConnection({
                host: 'localhost',
                user: 'root',
                password: '',
                database: 'edutrack_lms'
            });
            
            connection.connect((err) => {
                if (err) {
                    console.error('Error connecting to MySQL:', err);
                    return;
                }
                console.log('Connected to MySQL database');
            });
            */
        });

        // File upload interaction
        const fileUploadContainer = document.querySelector('.file-upload-container');
        const fileInput = document.getElementById('file-upload');
        
        fileUploadContainer.addEventListener('dragover', (e) => {
            e.preventDefault();
            fileUploadContainer.classList.add('border-indigo-500', 'bg-indigo-50');
        });
        
        fileUploadContainer.addEventListener('dragleave', () => {
            fileUploadContainer.classList.remove('border-indigo-500', 'bg-indigo-50');
        });
        
        fileUploadContainer.addEventListener('drop', (e) => {
            e.preventDefault();
            fileUploadContainer.classList.remove('border-indigo-500', 'bg-indigo-50');
            fileInput.files = e.dataTransfer.files;
            // Handle file upload in a real application
        });
        
        fileInput.addEventListener('change', () => {
            // Handle file selection in a real application
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Oloud/lms" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>