File size: 35,661 Bytes
a3575ac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>پنل مدیریت مدرسه</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">
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: '#10b981',
                        dark: '#111827',
                        dark2: '#1f2937',
                        dark3: '#374151',
                    }
                }
            }
        }
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');
        
        body {
            font-family: 'Vazirmatn', sans-serif;
        }
        
        .sidebar {
            transition: all 0.3s ease;
        }
        
        .sidebar.collapsed {
            width: 80px;
        }
        
        .sidebar.collapsed .nav-text {
            display: none;
        }
        
        .sidebar.collapsed .logo-text {
            display: none;
        }
        
        .sidebar.collapsed .nav-item {
            justify-content: center;
        }
        
        .content-area {
            transition: all 0.3s ease;
        }
        
        .content-area.expanded {
            margin-right: 80px;
        }
        
        .dropdown-menu {
            display: none;
        }
        
        .dropdown:hover .dropdown-menu {
            display: block;
        }
        
        .chart-container {
            height: 300px;
        }
        
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                top: 0;
                right: 0;
                bottom: 0;
                z-index: 1000;
                transform: translateX(100%);
                transition: transform 0.3s ease;
                width: 260px !important;
            }
            
            .sidebar.active {
                transform: translateX(0);
                box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
            }
            
            .sidebar-overlay {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 999;
                display: none;
            }
            
            .sidebar-overlay.active {
                display: block;
            }
            
            .content-area {
                margin-right: 0 !important;
            }
        }
    </style>
</head>
<body class="bg-dark text-gray-200">
    <div class="flex h-screen overflow-hidden">
        <div class="sidebar-overlay"></div>
        <!-- Sidebar -->
        <div class="sidebar bg-dark2 w-64 flex flex-col border-l border-dark3">
            <!-- Logo -->
            <div class="p-4 flex items-center border-b border-dark3">
                <div class="bg-primary p-2 rounded-lg">
                    <i class="fas fa-school text-white text-xl"></i>
                </div>
                <span class="logo-text mr-3 text-xl font-bold">مدرسه هوشمند</span>
            </div>
            
            <!-- User Profile -->
            <div class="p-4 flex items-center border-b border-dark3">
                <div class="w-12 h-12 rounded-full bg-primary flex items-center justify-center">
                    <i class="fas fa-user text-white text-xl"></i>
                </div>
                <div class="mr-3">
                    <div class="font-bold">مدیر سیستم</div>
                    <div class="text-xs text-gray-400">admin@school.com</div>
                </div>
            </div>
            
            <!-- Navigation -->
            <div class="flex-1 overflow-y-auto">
                <ul class="py-2">
                    <li class="nav-item px-4 py-3 flex items-center bg-dark3 border-r-4 border-primary">
                        <i class="fas fa-tachometer-alt text-primary"></i>
                        <span class="nav-text mr-3">داشبورد</span>
                    </li>
                    <li class="nav-item px-4 py-3 flex items-center hover:bg-dark3 cursor-pointer">
                        <i class="fas fa-users"></i>
                        <span class="nav-text mr-3">مدیریت دانش‌آموزان</span>
                    </li>
                    <li class="nav-item px-4 py-3 flex items-center hover:bg-dark3 cursor-pointer">
                        <i class="fas fa-chalkboard-teacher"></i>
                        <span class="nav-text mr-3">مدیریت معلمان</span>
                    </li>
                    <li class="nav-item px-4 py-3 flex items-center hover:bg-dark3 cursor-pointer">
                        <i class="fas fa-door-open"></i>
                        <span class="nav-text mr-3">مدیریت کلاس‌ها</span>
                    </li>
                    <li class="nav-item px-4 py-3 flex items-center hover:bg-dark3 cursor-pointer">
                        <i class="fas fa-book"></i>
                        <span class="nav-text mr-3">دروس و محتوا</span>
                    </li>
                    <li class="dropdown relative px-4 py-3">
                        <div class="flex items-center hover:bg-dark3 cursor-pointer">
                            <i class="fas fa-chart-bar"></i>
                            <span class="nav-text mr-3">گزارش‌ها و آمار</span>
                            <i class="fas fa-chevron-down text-xs mr-auto"></i>
                        </div>
                        <ul class="dropdown-menu mt-1 mr-8 bg-dark2 rounded shadow-lg">
                            <li class="px-4 py-2 hover:bg-dark3">گزارش حضور و غیاب</li>
                            <li class="px-4 py-2 hover:bg-dark3">میانگین نمرات</li>
                            <li class="px-4 py-2 hover:bg-dark3">تحلیل عملکرد</li>
                        </ul>
                    </li>
                    <li class="nav-item px-4 py-3 flex items-center hover:bg-dark3 cursor-pointer">
                        <i class="fas fa-envelope"></i>
                        <span class="nav-text mr-3">پیام‌ها و اطلاعیه‌ها</span>
                    </li>
                    <li class="nav-item px-4 py-3 flex items-center hover:bg-dark3 cursor-pointer">
                        <i class="fas fa-money-bill-wave"></i>
                        <span class="nav-text mr-3">شهریه و پرداخت‌ها</span>
                    </li>
                    <li class="nav-item px-4 py-3 flex items-center hover:bg-dark3 cursor-pointer">
                        <i class="fas fa-file-alt"></i>
                        <span class="nav-text mr-3">مدیریت فایل‌ها</span>
                    </li>
                    <li class="nav-item px-4 py-3 flex items-center hover:bg-dark3 cursor-pointer">
                        <i class="fas fa-cog"></i>
                        <span class="nav-text mr-3">تنظیمات</span>
                    </li>
                </ul>
            </div>
            
            <!-- Collapse Button -->
            <div class="p-4 border-t border-dark3 flex justify-center hidden md:flex">
                <button id="sidebarToggle" class="text-gray-400 hover:text-white">
                    <i class="fas fa-chevron-right"></i>
                </button>
            </div>
        </div>
        
        <!-- Main Content -->
        <div class="content-area flex-1 overflow-y-auto">
            <!-- Top Navigation -->
            <div class="bg-dark2 p-4 flex items-center justify-between border-b border-dark3">
                <div class="flex items-center">
                    <button id="mobileMenuBtn" class="mobile-menu-btn mr-4 text-gray-400 hover:text-white md:hidden">
                        <i class="fas fa-bars text-xl"></i>
                    </button>
                    <h1 class="text-xl font-bold">داشبورد مدیریتی</h1>
                </div>
                
                <div class="flex items-center space-x-4 space-x-reverse">
                    <div class="relative">
                        <button class="text-gray-400 hover:text-white">
                            <i class="fas fa-bell text-xl"></i>
                            <span class="absolute -top-1 -right-1 bg-primary text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
                        </button>
                    </div>
                    <div class="relative">
                        <button class="text-gray-400 hover:text-white">
                            <i class="fas fa-envelope text-xl"></i>
                            <span class="absolute -top-1 -right-1 bg-primary text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">5</span>
                        </button>
                    </div>
                    <div class="relative dropdown">
                        <button class="flex items-center text-gray-400 hover:text-white">
                            <div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center">
                                <i class="fas fa-user text-white"></i>
                            </div>
                            <span class="mr-2">مدیر سیستم</span>
                            <i class="fas fa-chevron-down text-xs"></i>
                        </button>
                        <div class="dropdown-menu absolute left-0 mt-2 w-48 bg-dark2 rounded shadow-lg py-1 z-50">
                            <a href="#" class="block px-4 py-2 hover:bg-dark3">پروفایل</a>
                            <a href="#" class="block px-4 py-2 hover:bg-dark3">تنظیمات</a>
                            <a href="#" class="block px-4 py-2 hover:bg-dark3 border-t border-dark3">خروج</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Dashboard Content -->
            <div class="p-6">
                <!-- Quick Actions -->
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
                    <button class="bg-primary hover:bg-opacity-90 text-white py-3 px-4 rounded-lg flex items-center justify-center">
                        <i class="fas fa-user-plus ml-2"></i>
                        <span>افزودن کاربر جدید</span>
                    </button>
                    <button class="bg-dark3 hover:bg-opacity-90 text-white py-3 px-4 rounded-lg flex items-center justify-center">
                        <i class="fas fa-bullhorn ml-2"></i>
                        <span>ارسال اطلاعیه</span>
                    </button>
                    <button class="bg-dark3 hover:bg-opacity-90 text-white py-3 px-4 rounded-lg flex items-center justify-center">
                        <i class="fas fa-file-invoice-dollar ml-2"></i>
                        <span>گزارش مالی</span>
                    </button>
                </div>
                
                <!-- Stats Cards -->
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
                    <div class="bg-dark2 p-6 rounded-lg border border-dark3">
                        <div class="flex justify-between items-center">
                            <div>
                                <p class="text-gray-400">تعداد دانش‌آموزان</p>
                                <h3 class="text-2xl font-bold">1,248</h3>
                            </div>
                            <div class="bg-primary bg-opacity-20 p-3 rounded-full">
                                <i class="fas fa-users text-primary"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <span class="text-green-500 text-sm"><i class="fas fa-arrow-up ml-1"></i> 12% نسبت به ماه قبل</span>
                        </div>
                    </div>
                    
                    <div class="bg-dark2 p-6 rounded-lg border border-dark3">
                        <div class="flex justify-between items-center">
                            <div>
                                <p class="text-gray-400">تعداد معلمان</p>
                                <h3 class="text-2xl font-bold">48</h3>
                            </div>
                            <div class="bg-blue-500 bg-opacity-20 p-3 rounded-full">
                                <i class="fas fa-chalkboard-teacher text-blue-500"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <span class="text-green-500 text-sm"><i class="fas fa-arrow-up ml-1"></i> 5% نسبت به ماه قبل</span>
                        </div>
                    </div>
                    
                    <div class="bg-dark2 p-6 rounded-lg border border-dark3">
                        <div class="flex justify-between items-center">
                            <div>
                                <p class="text-gray-400">تعداد کلاس‌ها</p>
                                <h3 class="text-2xl font-bold">36</h3>
                            </div>
                            <div class="bg-purple-500 bg-opacity-20 p-3 rounded-full">
                                <i class="fas fa-door-open text-purple-500"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <span class="text-green-500 text-sm"><i class="fas fa-arrow-up ml-1"></i> 8% نسبت به ماه قبل</span>
                        </div>
                    </div>
                </div>
                
                <!-- Charts Row -->
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
                    <!-- Grades Chart -->
                    <div class="bg-dark2 p-6 rounded-lg border border-dark3">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-bold">میانگین نمرات ترم</h3>
                            <select class="bg-dark3 text-gray-300 rounded px-3 py-1 text-sm">
                                <option>ترم اول</option>
                                <option>ترم دوم</option>
                                <option>کل سال</option>
                            </select>
                        </div>
                        <div class="chart-container">
                            <canvas id="gradesChart"></canvas>
                        </div>
                    </div>
                    
                    <!-- Attendance Chart -->
                    <div class="bg-dark2 p-6 rounded-lg border border-dark3">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-bold">حضور و غیاب ماهانه</h3>
                            <select class="bg-dark3 text-gray-300 rounded px-3 py-1 text-sm">
                                <option>مهر</option>
                                <option>آبان</option>
                                <option>آذر</option>
                            </select>
                        </div>
                        <div class="chart-container">
                            <canvas id="attendanceChart"></canvas>
                        </div>
                    </div>
                </div>
                
                <!-- Recent Payments -->
                <div class="bg-dark2 p-6 rounded-lg border border-dark3 mb-6">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="font-bold">پرداخت‌های اخیر</h3>
                        <button class="text-primary hover:text-opacity-80 text-sm">مشاهده همه</button>
                    </div>
                    <div class="overflow-x-auto">
                        <table class="min-w-full">
                            <thead>
                                <tr class="border-b border-dark3 text-gray-400 text-right">
                                    <th class="pb-3 pr-6">دانش‌آموز</th>
                                    <th class="pb-3 pr-6">مقطع</th>
                                    <th class="pb-3 pr-6">مبلغ</th>
                                    <th class="pb-3 pr-6">تاریخ</th>
                                    <th class="pb-3 pr-6">وضعیت</th>
                                    <th class="pb-3"></th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="border-b border-dark3 hover:bg-dark3">
                                    <td class="py-3 pr-6">محمد رضایی</td>
                                    <td class="py-3 pr-6">پایه هفتم</td>
                                    <td class="py-3 pr-6">2,500,000 تومان</td>
                                    <td class="py-3 pr-6">1402/07/15</td>
                                    <td class="py-3 pr-6">
                                        <span class="bg-green-500 bg-opacity-20 text-green-500 px-2 py-1 rounded text-xs">پرداخت شده</span>
                                    </td>
                                    <td class="py-3">
                                        <button class="text-gray-400 hover:text-white">
                                            <i class="fas fa-ellipsis-v"></i>
                                        </button>
                                    </td>
                                </tr>
                                <tr class="border-b border-dark3 hover:bg-dark3">
                                    <td class="py-3 pr-6">فاطمه محمدی</td>
                                    <td class="py-3 pr-6">پایه نهم</td>
                                    <td class="py-3 pr-6">3,000,000 تومان</td>
                                    <td class="py-3 pr-6">1402/07/14</td>
                                    <td class="py-3 pr-6">
                                        <span class="bg-green-500 bg-opacity-20 text-green-500 px-2 py-1 rounded text-xs">پرداخت شده</span>
                                    </td>
                                    <td class="py-3">
                                        <button class="text-gray-400 hover:text-white">
                                            <i class="fas fa-ellipsis-v"></i>
                                        </button>
                                    </td>
                                </tr>
                                <tr class="border-b border-dark3 hover:bg-dark3">
                                    <td class="py-3 pr-6">علی حسینی</td>
                                    <td class="py-3 pr-6">پایه هشتم</td>
                                    <td class="py-3 pr-6">2,800,000 تومان</td>
                                    <td class="py-3 pr-6">1402/07/12</td>
                                    <td class="py-3 pr-6">
                                        <span class="bg-yellow-500 bg-opacity-20 text-yellow-500 px-2 py-1 rounded text-xs">در انتظار پرداخت</span>
                                    </td>
                                    <td class="py-3">
                                        <button class="text-gray-400 hover:text-white">
                                            <i class="fas fa-ellipsis-v"></i>
                                        </button>
                                    </td>
                                </tr>
                                <tr class="hover:bg-dark3">
                                    <td class="py-3 pr-6">زهرا اکبری</td>
                                    <td class="py-3 pr-6">پایه دهم</td>
                                    <td class="py-3 pr-6">3,200,000 تومان</td>
                                    <td class="py-3 pr-6">1402/07/10</td>
                                    <td class="py-3 pr-6">
                                        <span class="bg-red-500 bg-opacity-20 text-red-500 px-2 py-1 rounded text-xs">منقضی شده</span>
                                    </td>
                                    <td class="py-3">
                                        <button class="text-gray-400 hover:text-white">
                                            <i class="fas fa-ellipsis-v"></i>
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                
                <!-- Calendar and Notifications -->
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                    <!-- Calendar -->
                    <div class="bg-dark2 p-6 rounded-lg border border-dark3">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-bold">تقویم رویدادها</h3>
                            <button class="text-primary hover:text-opacity-80 text-sm">مشاهده همه</button>
                        </div>
                        <div class="grid grid-cols-7 gap-1 mb-4 text-center">
                            <div class="text-gray-400 text-sm">ش</div>
                            <div class="text-gray-400 text-sm">ی</div>
                            <div class="text-gray-400 text-sm">د</div>
                            <div class="text-gray-400 text-sm">س</div>
                            <div class="text-gray-400 text-sm">چ</div>
                            <div class="text-gray-400 text-sm">پ</div>
                            <div class="text-gray-400 text-sm">ج</div>
                        </div>
                        <div class="grid grid-cols-7 gap-1">
                            <div class="h-8 flex items-center justify-center text-gray-400">30</div>
                            <div class="h-8 flex items-center justify-center text-gray-400">31</div>
                            <div class="h-8 flex items-center justify-center">1</div>
                            <div class="h-8 flex items-center justify-center">2</div>
                            <div class="h-8 flex items-center justify-center">3</div>
                            <div class="h-8 flex items-center justify-center">4</div>
                            <div class="h-8 flex items-center justify-center">5</div>
                            <div class="h-8 flex items-center justify-center">6</div>
                            <div class="h-8 flex items-center justify-center">7</div>
                            <div class="h-8 flex items-center justify-center">8</div>
                            <div class="h-8 flex items-center justify-center">9</div>
                            <div class="h-8 flex items-center justify-center">10</div>
                            <div class="h-8 flex items-center justify-center">11</div>
                            <div class="h-8 flex items-center justify-center">12</div>
                            <div class="h-8 flex items-center justify-center">13</div>
                            <div class="h-8 flex items-center justify-center">14</div>
                            <div class="h-8 flex items-center justify-center">15</div>
                            <div class="h-8 flex items-center justify-center bg-primary rounded-full text-white">16</div>
                            <div class="h-8 flex items-center justify-center">17</div>
                            <div class="h-8 flex items-center justify-center">18</div>
                            <div class="h-8 flex items-center justify-center">19</div>
                            <div class="h-8 flex items-center justify-center">20</div>
                            <div class="h-8 flex items-center justify-center">21</div>
                            <div class="h-8 flex items-center justify-center">22</div>
                            <div class="h-8 flex items-center justify-center">23</div>
                            <div class="h-8 flex items-center justify-center">24</div>
                            <div class="h-8 flex items-center justify-center">25</div>
                            <div class="h-8 flex items-center justify-center">26</div>
                            <div class="h-8 flex items-center justify-center">27</div>
                            <div class="h-8 flex items-center justify-center">28</div>
                            <div class="h-8 flex items-center justify-center">29</div>
                            <div class="h-8 flex items-center justify-center">30</div>
                            <div class="h-8 flex items-center justify-center text-gray-400">1</div>
                        </div>
                        <div class="mt-6">
                            <div class="flex items-center mb-2">
                                <div class="w-2 h-2 bg-primary rounded-full ml-2"></div>
                                <span>امتحان میان‌ترم ریاضی</span>
                            </div>
                            <div class="flex items-center mb-2">
                                <div class="w-2 h-2 bg-blue-500 rounded-full ml-2"></div>
                                <span>جلسه اولیا و مربیان</span>
                            </div>
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-purple-500 rounded-full ml-2"></div>
                                <span>برگزاری مسابقات علمی</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Recent Notifications -->
                    <div class="bg-dark2 p-6 rounded-lg border border-dark3">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-bold">آخرین اطلاعیه‌ها</h3>
                            <button class="text-primary hover:text-opacity-80 text-sm">مشاهده همه</button>
                        </div>
                        <div class="space-y-4">
                            <div class="flex items-start p-3 hover:bg-dark3 rounded-lg cursor-pointer">
                                <div class="bg-primary bg-opacity-20 p-2 rounded-full">
                                    <i class="fas fa-bullhorn text-primary"></i>
                                </div>
                                <div class="mr-3">
                                    <h4 class="font-medium">برگزاری جلسه اولیا و مربیان</h4>
                                    <p class="text-gray-400 text-sm mt-1">جلسه اولیا و مربیان روز سه‌شنبه 18 مهرماه برگزار خواهد شد.</p>
                                    <span class="text-xs text-gray-500 mt-1">2 ساعت پیش</span>
                                </div>
                            </div>
                            <div class="flex items-start p-3 hover:bg-dark3 rounded-lg cursor-pointer">
                                <div class="bg-blue-500 bg-opacity-20 p-2 rounded-full">
                                    <i class="fas fa-book text-blue-500"></i>
                                </div>
                                <div class="mr-3">
                                    <h4 class="font-medium">تغییر برنامه درسی</h4>
                                    <p class="text-gray-400 text-sm mt-1">برنامه درسی پایه هشتم در روزهای چهارشنبه تغییر کرده است.</p>
                                    <span class="text-xs text-gray-500 mt-1">دیروز</span>
                                </div>
                            </div>
                            <div class="flex items-start p-3 hover:bg-dark3 rounded-lg cursor-pointer">
                                <div class="bg-purple-500 bg-opacity-20 p-2 rounded-full">
                                    <i class="fas fa-money-bill-wave text-purple-500"></i>
                                </div>
                                <div class="mr-3">
                                    <h4 class="font-medium">تذکر پرداخت شهریه</h4>
                                    <p class="text-gray-400 text-sm mt-1">لطفا تا پایان هفته نسبت به پرداخت قسط اول شهریه اقدام فرمایید.</p>
                                    <span class="text-xs text-gray-500 mt-1">2 روز پیش</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script>
        // Toggle Sidebar
        const sidebar = document.querySelector('.sidebar');
        const contentArea = document.querySelector('.content-area');
        const sidebarToggle = document.getElementById('sidebarToggle');
        const mobileMenuBtn = document.getElementById('mobileMenuBtn');
        
        sidebarToggle.addEventListener('click', () => {
            sidebar.classList.toggle('collapsed');
            contentArea.classList.toggle('expanded');
            
            if (sidebar.classList.contains('collapsed')) {
                sidebarToggle.innerHTML = '<i class="fas fa-chevron-left"></i>';
            } else {
                sidebarToggle.innerHTML = '<i class="fas fa-chevron-right"></i>';
            }
        });
        
        // Mobile menu toggle
        const sidebarOverlay = document.querySelector('.sidebar-overlay');
        
        mobileMenuBtn.addEventListener('click', () => {
            sidebar.classList.toggle('active');
            sidebarOverlay.classList.toggle('active');
        });
        
        sidebarOverlay.addEventListener('click', () => {
            sidebar.classList.remove('active');
            sidebarOverlay.classList.remove('active');
        });
        
        // Initialize Charts
        const gradesCtx = document.getElementById('gradesChart').getContext('2d');
        const gradesChart = new Chart(gradesCtx, {
            type: 'bar',
            data: {
                labels: ['ریاضی', 'علوم', 'ادبیات', 'دینی', 'زبان', 'ورزش'],
                datasets: [{
                    label: 'میانگین نمرات',
                    data: [16.5, 17.2, 15.8, 18.3, 14.7, 19.2],
                    backgroundColor: [
                        'rgba(16, 185, 129, 0.7)',
                        'rgba(59, 130, 246, 0.7)',
                        'rgba(168, 85, 247, 0.7)',
                        'rgba(234, 179, 8, 0.7)',
                        'rgba(239, 68, 68, 0.7)',
                        'rgba(6, 182, 212, 0.7)'
                    ],
                    borderColor: [
                        'rgba(16, 185, 129, 1)',
                        'rgba(59, 130, 246, 1)',
                        'rgba(168, 85, 247, 1)',
                        'rgba(234, 179, 8, 1)',
                        'rgba(239, 68, 68, 1)',
                        'rgba(6, 182, 212, 1)'
                    ],
                    borderWidth: 1
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                scales: {
                    y: {
                        beginAtZero: true,
                        max: 20,
                        ticks: {
                            color: '#9CA3AF'
                        },
                        grid: {
                            color: 'rgba(156, 163, 175, 0.1)'
                        }
                    },
                    x: {
                        ticks: {
                            color: '#9CA3AF'
                        },
                        grid: {
                            color: 'rgba(156, 163, 175, 0.1)'
                        }
                    }
                },
                plugins: {
                    legend: {
                        labels: {
                            color: '#9CA3AF'
                        }
                    }
                }
            }
        });
        
        const attendanceCtx = document.getElementById('attendanceChart').getContext('2d');
        const attendanceChart = new Chart(attendanceCtx, {
            type: 'line',
            data: {
                labels: ['هفته 1', 'هفته 2', 'هفته 3', 'هفته 4'],
                datasets: [{
                    label: 'حضور',
                    data: [95, 92, 97, 94],
                    borderColor: 'rgba(16, 185, 129, 1)',
                    backgroundColor: 'rgba(16, 185, 129, 0.1)',
                    tension: 0.3,
                    fill: true
                },
                {
                    label: 'غیبت',
                    data: [5, 8, 3, 6],
                    borderColor: 'rgba(239, 68, 68, 1)',
                    backgroundColor: 'rgba(239, 68, 68, 0.1)',
                    tension: 0.3,
                    fill: true
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                scales: {
                    y: {
                        beginAtZero: true,
                        ticks: {
                            color: '#9CA3AF'
                        },
                        grid: {
                            color: 'rgba(156, 163, 175, 0.1)'
                        }
                    },
                    x: {
                        ticks: {
                            color: '#9CA3AF'
                        },
                        grid: {
                            color: 'rgba(156, 163, 175, 0.1)'
                        }
                    }
                },
                plugins: {
                    legend: {
                        labels: {
                            color: '#9CA3AF'
                        }
                    }
                }
            }
        });
    </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=rapcher/sch" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>