File size: 54,302 Bytes
c7ecdd4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI Attendance Dashboard</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: 'Inter', sans-serif;
            background-color: #f8fafc;
        }
        h1, h2, h3, h4 {
            font-family: 'Poppins', sans-serif;
        }
        .group-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        .status-badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            border-radius: 9999px;
        }
        .present {
            background-color: #ecfdf5;
            color: #059669;
        }
        .absent {
            background-color: #fee2e2;
            color: #b91c1c;
        }
        .late {
            background-color: #fef3c7;
            color: #92400e;
        }
        .unmarked {
            background-color: #f3f4f6;
            color: #4b5563;
        }
        .avatar {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #6366f1;
            color: white;
            font-weight: 500;
            font-size: 0.875rem;
        }
        .attendance-row:hover {
            background-color: #f9fafb;
        }
        .dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            background-color: white;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
            z-index: 1;
            border-radius: 0.5rem;
        }
        .dropdown:hover .dropdown-content {
            display: block;
        }
        .slide-down {
            animation: slideDown 0.3s ease-out forwards;
        }
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .checkmark {
            display: inline-block;
            transform: rotate(45deg);
            height: 16px;
            width: 8px;
            border-bottom: 2px solid #10b981;
            border-right: 2px solid #10b981;
            animation: checkmark 0.5s ease;
        }
        @keyframes checkmark {
            0% {
                height: 0;
                width: 0;
                opacity: 0;
            }
            50% {
                height: 0;
                width: 8px;
                opacity: 1;
            }
            100% {
                height: 16px;
                width: 8px;
                opacity: 1;
            }
        }
    </style>
</head>
<body class="min-h-screen">
    <!-- Top Navigation Bar -->
    <header class="bg-white shadow-sm sticky top-0 z-10">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center py-4">
                <h1 class="text-xl font-semibold text-indigo-800 flex items-center">
                    <i class="fas fa-robot text-indigo-500 mr-2"></i>
                    AI Attendance
                </h1>
                
                <div class="flex items-center space-x-4">
                    <div class="relative">
                        <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                            <i class="fas fa-search text-gray-400"></i>
                        </div>
                        <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg bg-gray-50 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Search groups or members...">
                    </div>
                    
                    <div class="relative dropdown">
                        <button class="flex items-center space-x-1 px-3 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
                            <i class="fas fa-filter text-gray-600"></i>
                            <span class="text-sm font-medium">Filter</span>
                            <i class="fas fa-chevron-down text-xs text-gray-500"></i>
                        </button>
                        <div class="dropdown-content mt-1 p-2">
                            <div class="px-3 py-1">
                                <label class="block text-sm font-medium text-gray-700 mb-1">Group Type</label>
                                <select 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 Types</option>
                                    <option>Teaching</option>
                                    <option>Support Staff</option>
                                    <option>Admin Team</option>
                                    <option>Operations</option>
                                </select>
                            </div>
                            <div class="px-3 py-1">
                                <label class="block text-sm font-medium text-gray-700 mb-1">Designation</label>
                                <select 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 Designations</option>
                                    <option>Teacher</option>
                                    <option>Assistant</option>
                                    <option>Manager</option>
                                    <option>Staff</option>
                                </select>
                            </div>
                            <div class="px-3 py-1">
                                <label class="block text-sm font-medium text-gray-700 mb-1">Shift Type</label>
                                <select 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 Shifts</option>
                                    <option>Morning</option>
                                    <option>Afternoon</option>
                                    <option>Evening</option>
                                    <option>Night</option>
                                </select>
                            </div>
                            <div class="px-3 py-2 border-t border-gray-100 flex justify-between">
                                <button class="text-xs text-gray-500 hover:text-gray-700">Reset</button>
                                <button class="text-xs bg-indigo-600 text-white px-2 py-1 rounded hover:bg-indigo-700">Apply</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="relative dropdown">
                        <button class="flex items-center space-x-1 px-3 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
                            <i class="fas fa-sort text-gray-600"></i>
                            <span class="text-sm font-medium">Sort</span>
                            <i class="fas fa-chevron-down text-xs text-gray-500"></i>
                        </button>
                        <div class="dropdown-content mt-1 p-2 w-40">
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">Recently Created</a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">A-Z</a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">Attendance %</a>
                        </div>
                    </div>
                    
                    <button class="flex items-center space-x-1 px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition-colors">
                        <i class="fas fa-plus"></i>
                        <span class="text-sm font-medium">New Group</span>
                    </button>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
        <!-- View Toggle -->
        <div class="flex justify-between items-center mb-6">
            <h2 class="text-lg font-semibold text-gray-800">Your Attendance Groups</h2>
            <div class="flex bg-gray-100 rounded-lg p-1">
                <button id="gridViewBtn" class="px-3 py-1 rounded-md bg-white shadow-sm text-indigo-600">
                    <i class="fas fa-th-large mr-1"></i> Grid
                </button>
                <button id="listViewBtn" class="px-3 py-1 rounded-md text-gray-600 hover:text-gray-800">
                    <i class="fas fa-list mr-1"></i> List
                </button>
            </div>
        </div>
        
        <!-- Groups Grid View -->
        <div id="groupsGrid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
            <!-- Group Card 1 -->
            <div class="group-card bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden transition-all duration-200 hover:border-indigo-200">
                <div class="p-5">
                    <div class="flex justify-between items-start">
                        <div>
                            <h3 class="font-semibold text-gray-800 text-lg">Teaching Staff</h3>
                            <div class="flex mt-1 space-x-1">
                                <span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Teaching</span>
                                <span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Morning Shift</span>
                            </div>
                        </div>
                        <div class="dropdown relative">
                            <button class="text-gray-400 hover:text-gray-600">
                                <i class="fas fa-ellipsis-v"></i>
                            </button>
                            <div class="dropdown-content absolute right-0 mt-1 w-40">
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-4 grid grid-cols-2 gap-4">
                        <div>
                            <p class="text-xs text-gray-500">Total Members</p>
                            <p class="font-medium">24</p>
                        </div>
                        <div>
                            <p class="text-xs text-gray-500">Shift Info</p>
                            <p class="font-medium">2 Shifts | Mon–Sat</p>
                        </div>
                    </div>
                    
                    <div class="mt-4">
                        <p class="text-xs text-gray-500">Today's Summary</p>
                        <div class="flex items-center mt-1">
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-indigo-600 h-2.5 rounded-full" style="width: 75%"></div>
                            </div>
                            <span class="ml-2 text-sm font-medium">18/24 Present</span>
                        </div>
                    </div>
                    
                    <div class="mt-4 flex justify-between text-xs text-gray-500">
                        <span>Created: 15 Jun 2023</span>
                        <span>Last modified: 2 days ago</span>
                    </div>
                </div>
                
                <div class="group-details hidden slide-down bg-gray-50 border-t border-gray-200 p-5">
                    <!-- Group Details Content -->
                    <div class="flex justify-between items-center mb-4">
                        <div>
                            <h3 class="font-semibold text-gray-800 text-lg">Teaching Staff</h3>
                            <div class="flex mt-1 space-x-1">
                                <span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Teaching</span>
                                <span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Morning Shift</span>
                            </div>
                        </div>
                        <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center">
                            <i class="fas fa-download mr-1"></i> Export Data
                        </button>
                    </div>
                    
                    <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-6">
                        <div class="bg-white p-3 rounded-lg shadow-xs">
                            <p class="text-xs text-gray-500">Shift 1</p>
                            <p class="font-medium">8:00 AM - 12:00 PM</p>
                        </div>
                        <div class="bg-white p-3 rounded-lg shadow-xs">
                            <p class="text-xs text-gray-500">Shift 2</p>
                            <p class="font-medium">1:00 PM - 5:00 PM</p>
                        </div>
                        <div class="bg-white p-3 rounded-lg shadow-xs">
                            <p class="text-xs text-gray-500">Workdays</p>
                            <p class="font-medium">Mon - Sat</p>
                        </div>
                        <div class="bg-white p-3 rounded-lg shadow-xs">
                            <p class="text-xs text-gray-500">Breaks</p>
                            <p class="font-medium">30 min lunch</p>
                        </div>
                    </div>
                    
                    <div class="flex justify-between items-center mb-4">
                        <h4 class="font-medium text-gray-700">Attendance Tracker</h4>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 bg-indigo-50 text-indigo-600 text-xs rounded hover:bg-indigo-100">
                                Bulk Mark
                            </button>
                            <button class="px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded hover:bg-gray-200">
                                <i class="fas fa-copy mr-1"></i> Duplicate
                            </button>
                        </div>
                    </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-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Member</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Designation</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Shift</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Attendance %</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr class="attendance-row">
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="avatar mr-3">JD</div>
                                            <div>
                                                <div class="text-sm font-medium text-gray-900">John Doe</div>
                                                <div class="text-xs text-gray-500">john@example.com</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm text-gray-900">Math Teacher</div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Shift 1</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="status-badge present">Present</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium mark-attendance">
                                            <span class="checkmark-container">
                                                <span class="checkmark"></span>
                                            </span>
                                        </button>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="w-16 bg-gray-200 rounded-full h-1.5">
                                                <div class="bg-green-600 h-1.5 rounded-full" style="width: 95%"></div>
                                            </div>
                                            <span class="ml-2 text-xs font-medium">95%</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="attendance-row">
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="avatar mr-3">AS</div>
                                            <div>
                                                <div class="text-sm font-medium text-gray-900">Alice Smith</div>
                                                <div class="text-xs text-gray-500">alice@example.com</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm text-gray-900">Science Teacher</div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Shift 1</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="status-badge absent">Absent</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium mark-attendance">
                                            Mark
                                        </button>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="w-16 bg-gray-200 rounded-full h-1.5">
                                                <div class="bg-green-600 h-1.5 rounded-full" style="width: 85%"></div>
                                            </div>
                                            <span class="ml-2 text-xs font-medium">85%</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="attendance-row">
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="avatar mr-3">RJ</div>
                                            <div>
                                                <div class="text-sm font-medium text-gray-900">Robert Johnson</div>
                                                <div class="text-xs text-gray-500">robert@example.com</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm text-gray-900">English Teacher</div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Shift 2</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="status-badge late">Late</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium mark-attendance">
                                            Mark
                                        </button>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="w-16 bg-gray-200 rounded-full h-1.5">
                                                <div class="bg-green-600 h-1.5 rounded-full" style="width: 90%"></div>
                                            </div>
                                            <span class="ml-2 text-xs font-medium">90%</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="attendance-row">
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="avatar mr-3">MB</div>
                                            <div>
                                                <div class="text-sm font-medium text-gray-900">Maria Brown</div>
                                                <div class="text-xs text-gray-500">maria@example.com</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm text-gray-900">History Teacher</div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Shift 2</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="status-badge unmarked">Unmarked</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium mark-attendance">
                                            Mark
                                        </button>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="w-16 bg-gray-200 rounded-full h-1.5">
                                                <div class="bg-green-600 h-1.5 rounded-full" style="width: 88%"></div>
                                            </div>
                                            <span class="ml-2 text-xs font-medium">88%</span>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    
                    <div class="mt-6 bg-white rounded-lg shadow-xs p-4">
                        <div class="flex justify-between items-center">
                            <h4 class="font-medium text-gray-700">Today's Marked Attendance</h4>
                            <div class="text-xs text-gray-500">Last updated: 2:15 PM</div>
                        </div>
                        <div class="mt-3 grid grid-cols-2 md:grid-cols-4 gap-3">
                            <div class="flex items-center">
                                <div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
                                <span class="text-sm">Present: 18</span>
                            </div>
                            <div class="flex items-center">
                                <div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
                                <span class="text-sm">Absent: 4</span>
                            </div>
                            <div class="flex items-center">
                                <div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
                                <span class="text-sm">Late: 2</span>
                            </div>
                            <div class="flex items-center">
                                <div class="w-3 h-3 rounded-full bg-gray-400 mr-2"></div>
                                <span class="text-sm">Unmarked: 3</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-6 bg-white rounded-lg shadow-xs p-4">
                        <div class="flex justify-between items-center mb-3">
                            <h4 class="font-medium text-gray-700">Weekly Attendance Trend</h4>
                            <div class="text-xs text-gray-500">This Week</div>
                        </div>
                        <div class="h-40">
                            <!-- Chart placeholder - in a real app this would be a chart library -->
                            <div class="flex items-end h-full space-x-1">
                                <div class="flex-1 bg-indigo-100 rounded-t" style="height: 30%"></div>
                                <div class="flex-1 bg-indigo-200 rounded-t" style="height: 50%"></div>
                                <div class="flex-1 bg-indigo-300 rounded-t" style="height: 70%"></div>
                                <div class="flex-1 bg-indigo-400 rounded-t" style="height: 90%"></div>
                                <div class="flex-1 bg-indigo-500 rounded-t" style="height: 80%"></div>
                                <div class="flex-1 bg-indigo-600 rounded-t" style="height: 95%"></div>
                                <div class="flex-1 bg-indigo-700 rounded-t" style="height: 75%"></div>
                            </div>
                            <div class="flex justify-between text-xs text-gray-500 mt-1">
                                <span>Mon</span>
                                <span>Tue</span>
                                <span>Wed</span>
                                <span>Thu</span>
                                <span>Fri</span>
                                <span>Sat</span>
                                <span>Sun</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="bg-gray-50 px-5 py-3 border-t border-gray-200 flex justify-between items-center">
                    <button class="view-details-btn text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center">
                        <i class="fas fa-chevron-down mr-1"></i> View Details
                    </button>
                    <div class="text-xs text-gray-500">
                        <i class="fas fa-info-circle mr-1"></i> 2 staff haven't been marked yet today
                    </div>
                </div>
            </div>
            
            <!-- Group Card 2 -->
            <div class="group-card bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden transition-all duration-200 hover:border-indigo-200">
                <div class="p-5">
                    <div class="flex justify-between items-start">
                        <div>
                            <h3 class="font-semibold text-gray-800 text-lg">Admin Team</h3>
                            <div class="flex mt-1 space-x-1">
                                <span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Admin</span>
                                <span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Full Day</span>
                            </div>
                        </div>
                        <div class="dropdown relative">
                            <button class="text-gray-400 hover:text-gray-600">
                                <i class="fas fa-ellipsis-v"></i>
                            </button>
                            <div class="dropdown-content absolute right-0 mt-1 w-40">
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-4 grid grid-cols-2 gap-4">
                        <div>
                            <p class="text-xs text-gray-500">Total Members</p>
                            <p class="font-medium">12</p>
                        </div>
                        <div>
                            <p class="text-xs text-gray-500">Shift Info</p>
                            <p class="font-medium">1 Shift | Mon–Fri</p>
                        </div>
                    </div>
                    
                    <div class="mt-4">
                        <p class="text-xs text-gray-500">Today's Summary</p>
                        <div class="flex items-center mt-1">
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-indigo-600 h-2.5 rounded-full" style="width: 83%"></div>
                            </div>
                            <span class="ml-2 text-sm font-medium">10/12 Present</span>
                        </div>
                    </div>
                    
                    <div class="mt-4 flex justify-between text-xs text-gray-500">
                        <span>Created: 10 May 2023</span>
                        <span>Last modified: 1 week ago</span>
                    </div>
                </div>
                
                <div class="bg-gray-50 px-5 py-3 border-t border-gray-200 flex justify-between items-center">
                    <button class="view-details-btn text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center">
                        <i class="fas fa-chevron-down mr-1"></i> View Details
                    </button>
                    <div class="text-xs text-gray-500">
                        <i class="fas fa-info-circle mr-1"></i> All staff marked today
                    </div>
                </div>
            </div>
            
            <!-- Group Card 3 -->
            <div class="group-card bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden transition-all duration-200 hover:border-indigo-200">
                <div class="p-5">
                    <div class="flex justify-between items-start">
                        <div>
                            <h3 class="font-semibold text-gray-800 text-lg">Support Staff</h3>
                            <div class="flex mt-1 space-x-1">
                                <span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Support</span>
                                <span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800">Rotating</span>
                            </div>
                        </div>
                        <div class="dropdown relative">
                            <button class="text-gray-400 hover:text-gray-600">
                                <i class="fas fa-ellipsis-v"></i>
                            </button>
                            <div class="dropdown-content absolute right-0 mt-1 w-40">
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-4 grid grid-cols-2 gap-4">
                        <div>
                            <p class="text-xs text-gray-500">Total Members</p>
                            <p class="font-medium">8</p>
                        </div>
                        <div>
                            <p class="text-xs text-gray-500">Shift Info</p>
                            <p class="font-medium">3 Shifts | 24/7</p>
                        </div>
                    </div>
                    
                    <div class="mt-4">
                        <p class="text-xs text-gray-500">Today's Summary</p>
                        <div class="flex items-center mt-1">
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-indigo-600 h-2.5 rounded-full" style="width: 62%"></div>
                            </div>
                            <span class="ml-2 text-sm font-medium">5/8 Present</span>
                        </div>
                    </div>
                    
                    <div class="mt-4 flex justify-between text-xs text-gray-500">
                        <span>Created: 22 Apr 2023</span>
                        <span>Last modified: 3 days ago</span>
                    </div>
                </div>
                
                <div class="bg-gray-50 px-5 py-3 border-t border-gray-200 flex justify-between items-center">
                    <button class="view-details-btn text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center">
                        <i class="fas fa-chevron-down mr-1"></i> View Details
                    </button>
                    <div class="text-xs text-gray-500">
                        <i class="fas fa-info-circle mr-1"></i> 3 staff haven't been marked yet today
                    </div>
                </div>
            </div>
        </div>
        
        <!-- Groups List View (Hidden by default) -->
        <div id="groupsList" class="hidden bg-white shadow-sm rounded-lg overflow-hidden">
            <table class="min-w-full divide-y divide-gray-200">
                <thead class="bg-gray-50">
                    <tr>
                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Group Name</th>
                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tags</th>
                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Members</th>
                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Shift Info</th>
                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Today's Summary</th>
                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Modified</th>
                        <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                    </tr>
                </thead>
                <tbody class="bg-white divide-y divide-gray-200">
                    <tr class="hover:bg-gray-50">
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="font-medium text-gray-900">Teaching Staff</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Teaching</span>
                            <span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Morning Shift</span>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">24</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">2 Shifts | Mon–Sat</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="w-16 bg-gray-200 rounded-full h-1.5">
                                    <div class="bg-indigo-600 h-1.5 rounded-full" style="width: 75%"></div>
                                </div>
                                <span class="ml-2 text-xs font-medium">18/24 Present</span>
                            </div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-500">2 days ago</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                            <div class="dropdown relative inline-block">
                                <button class="text-gray-400 hover:text-gray-600">
                                    <i class="fas fa-ellipsis-v"></i>
                                </button>
                                <div class="dropdown-content absolute right-0 mt-1 w-40">
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr class="hover:bg-gray-50">
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="font-medium text-gray-900">Admin Team</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Admin</span>
                            <span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Full Day</span>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">12</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">1 Shift | Mon–Fri</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="w-16 bg-gray-200 rounded-full h-1.5">
                                    <div class="bg-indigo-600 h-1.5 rounded-full" style="width: 83%"></div>
                                </div>
                                <span class="ml-2 text-xs font-medium">10/12 Present</span>
                            </div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-500">1 week ago</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                            <div class="dropdown relative inline-block">
                                <button class="text-gray-400 hover:text-gray-600">
                                    <i class="fas fa-ellipsis-v"></i>
                                </button>
                                <div class="dropdown-content absolute right-0 mt-1 w-40">
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr class="hover:bg-gray-50">
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="font-medium text-gray-900">Support Staff</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Support</span>
                            <span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800">Rotating</span>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">8</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-900">3 Shifts | 24/7</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="flex items-center">
                                <div class="w-16 bg-gray-200 rounded-full h-1.5">
                                    <div class="bg-indigo-600 h-1.5 rounded-full" style="width: 62%"></div>
                                </div>
                                <span class="ml-2 text-xs font-medium">5/8 Present</span>
                            </div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap">
                            <div class="text-sm text-gray-500">3 days ago</div>
                        </td>
                        <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                            <div class="dropdown relative inline-block">
                                <button class="text-gray-400 hover:text-gray-600">
                                    <i class="fas fa-ellipsis-v"></i>
                                </button>
                                <div class="dropdown-content absolute right-0 mt-1 w-40">
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
                                    <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        
        <!-- Voice Recognition Toggle -->
        <div class="fixed bottom-6 right-6">
            <button id="voiceToggle" class="p-4 bg-indigo-600 text-white rounded-full shadow-lg hover:bg-indigo-700 transition-colors">
                <i class="fas fa-microphone text-xl"></i>
            </button>
            <div id="voiceStatus" class="hidden absolute bottom-full right-0 mb-2 bg-white p-3 rounded-lg shadow-lg w-64">
                <div class="flex items-center mb-2">
                    <div class="w-3 h-3 rounded-full bg-red-500 mr-2 animate-pulse"></div>
                    <span class="font-medium">Listening for commands...</span>
                </div>
                <p class="text-xs text-gray-600">Say "Mark [name] as present" or "Mark all in [group] as absent"</p>
            </div>
        </div>
    </main>

    <script>
        // Toggle between grid and list view
        document.getElementById('gridViewBtn').addEventListener('click', function() {
            document.getElementById('groupsGrid').classList.remove('hidden');
            document.getElementById('groupsList').classList.add('hidden');
            this.classList.add('bg-white', 'shadow-sm', 'text-indigo-600');
            this.classList.remove('text-gray-600');
            document.getElementById('listViewBtn').classList.remove('bg-white', 'shadow-sm', 'text-indigo-600');
            document.getElementById('listViewBtn').classList.add('text-gray-600');
        });
        
        document.getElementById('listViewBtn').addEventListener('click', function() {
            document.getElementById('groupsGrid').classList.add('hidden');
            document.getElementById('groupsList').classList.remove('hidden');
            this.classList.add('bg-white', 'shadow-sm', 'text-indigo-600');
            this.classList.remove('text-gray-600');
            document.getElementById('gridViewBtn').classList.remove('bg-white', 'shadow-sm', 'text-indigo-600');
            document.getElementById('gridViewBtn').classList.add('text-gray-600');
        });
        
        // Toggle group details
        document.querySelectorAll('.view-details-btn').forEach(button => {
            button.addEventListener('click', function() {
                const groupCard = this.closest('.group-card');
                const details = groupCard.querySelector('.group-details');
                
                if (details.classList.contains('hidden')) {
                    details.classList.remove('hidden');
                    details.classList.add('slide-down');
                    this.innerHTML = '<i class="fas fa-chevron-up mr-1"></i> Hide Details';
                } else {
                    details.classList.add('hidden');
                    details.classList.remove('slide-down');
                    this.innerHTML = '<i class="fas fa-chevron-down mr-1"></i> View Details';
                }
            });
        });
        
        // Mark attendance button animation
        document.querySelectorAll('.mark-attendance').forEach(button => {
            button.addEventListener('click', function() {
                if (!this.querySelector('.checkmark')) {
                    this.innerHTML = '<span class="checkmark"></span>';
                    
                    // In a real app, this would update the status in the database
                    setTimeout(() => {
                        const row = this.closest('tr');
                        const statusCell = row.querySelector('.status-badge');
                        statusCell.classList.remove('absent', 'late', 'unmarked');
                        statusCell.classList.add('present');
                        statusCell.textContent = 'Present';
                        
                        // Update the attendance percentage (mock)
                        const percentageCell = row.querySelector('td:nth-child(6) .bg-green-600');
                        const currentWidth = parseInt(percentageCell.style.width);
                        percentageCell.style.width = `${Math.min(currentWidth + 5, 100)}%`;
                        percentageCell.nextElementSibling.textContent = `${Math.min(currentWidth + 5, 100)}%`;
                    }, 500);
                }
            });
        });
        
        // Voice recognition toggle
        document.getElementById('voiceToggle').addEventListener('click', function() {
            const voiceStatus = document.getElementById('voiceStatus');
            if (voiceStatus.classList.contains('hidden')) {
                voiceStatus.classList.remove('hidden');
                
                // In a real app, this would initialize the voice recognition API
                console.log("Voice recognition activated");
            } else {
                voiceStatus.classList.add('hidden');
                
                // In a real app, this would stop the voice recognition
                console.log("Voice recognition deactivated");
            }
        });
        
        // Dropdown menus
        document.querySelectorAll('.dropdown').forEach(dropdown => {
            dropdown.addEventListener('mouseleave', function() {
                const content = this.querySelector('.dropdown-content');
                content.style.display = 'none';
            });
        });
    </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=Design-28/dasss" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>