File size: 75,262 Bytes
e2f39b8
de00577
e2f39b8
 
 
 
 
 
 
de00577
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e2f39b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
de00577
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e2f39b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
de00577
e2f39b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
de00577
e2f39b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
de00577
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e2f39b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
de00577
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e2f39b8
de00577
e2f39b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
<!DOCTYPE html>
<html lang="en" class="">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Deepsite v2 Admin Dashboard</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* Mega menu styles */
        .mega-menu {
            display: none;
            position: absolute;
            left: 0;
            width: 100%;
            background: white;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            padding: 1.5rem;
            z-index: 50;
        }
        
        .mega-menu-container {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 1.5rem;
        }
        
        .mega-menu-col h4 {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #1f2937;
        }
        
        .mega-menu-col ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .mega-menu-col li {
            margin-bottom: 0.5rem;
        }
        
        .mega-menu-col a {
            color: #4b5563;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .mega-menu-col a:hover {
            color: #3b82f6;
        }
        
        .has-mega-menu:hover .mega-menu {
            display: block;
        }
        /* Custom transitions for off-canvas menus */
        .transition-all-300 {
            transition: all 0.3s ease;
        }
        .transform-offcanvas {
            transform: translateX(-100%);
        }
        .transform-offcanvas-right {
            transform: translateX(100%);
        }
        .transform-offcanvas-show {
            transform: translateX(0);
        }
        /* For dark mode transitions */
        .dark-mode-transition * {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }
        /* Hide scrollbar but allow scrolling */
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
    </style>
</head>
<body class="dark-mode-transition bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-200">
    <!-- Header -->
    <header class="fixed top-0 left-0 right-0 z-50 bg-white dark:bg-gray-800 shadow-md">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
        <!-- Secondary Navigation -->
        <div class="bg-blue-600 dark:bg-blue-800 text-white absolute left-0 right-0 top-full">
            <div class="container mx-auto px-4">
                <nav class="flex overflow-x-auto no-scrollbar">
                    <ul class="flex space-x-1 py-2">
                        <li><a href="#" class="block px-4 py-1 rounded-md hover:bg-blue-700 dark:hover:bg-blue-900 font-medium">Home</a></li>
                        <li><a href="#" class="block px-4 py-1 rounded-md hover:bg-blue-700 dark:hover:bg-blue-900 font-medium">Products</a></li>
                        <li><a href="#" class="block px-4 py-1 rounded-md hover:bg-blue-700 dark:hover:bg-blue-900 font-medium">Services</a></li>
                        <li><a href="#" class="block px-4 py-1 rounded-md hover:bg-blue-700 dark:hover:bg-blue-900 font-medium">Pricing</a></li>
                        <li><a href="#" class="block px-4 py-1 rounded-md hover:bg-blue-700 dark:hover:bg-blue-900 font-medium">About Us</a></li>
                        <li><a href="#" class="block px-4 py-1 rounded-md hover:bg-blue-700 dark:hover:bg-blue-900 font-medium">Contact</a></li>
                    </ul>
                </nav>
            </div>
        </div>
            <!-- Logo and Mobile Menu Button -->
            <div class="flex items-center space-x-4">
                <button id="mobileMenuButton" class="md:hidden text-gray-600 dark:text-gray-300">
                    <i class="fas fa-bars text-xl"></i>
                </button>
                <div class="text-xl font-bold text-blue-600 dark:text-blue-400">Deepsite v2</div>
            </div>

            <!-- Search Bar (Center) - Hidden on mobile -->
            <div class="hidden md:flex flex-1 max-w-md mx-4">
                <div class="relative w-full">
                    <input type="text" placeholder="Search..." 
                           class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:text-white">
                    <div class="absolute left-3 top-2.5 text-gray-400 dark:text-gray-300">
                        <i class="fas fa-search"></i>
                    </div>
                    <button class="absolute right-3 top-2.5 text-gray-400 dark:text-gray-300 hover:text-gray-600 dark:hover:text-gray-100">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
            </div>

            <!-- Right Side Icons -->
            <div class="flex items-center space-x-4">
                <!-- Login/Register Buttons (Visible when not logged in) -->
                <div id="guestButtons" class="hidden sm:flex space-x-2">
                    <button class="px-3 py-1.5 text-sm rounded-md border border-blue-600 text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-gray-700">Login</button>
                    <button class="px-3 py-1.5 text-sm rounded-md bg-blue-600 text-white hover:bg-blue-700">Register</button>
                </div>

                <!-- User Dropdown (Visible when logged in) -->
                <div id="userDropdown" class="relative hidden">
                    <button id="userDropdownButton" class="flex items-center space-x-2 focus:outline-none">
                        <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white">
                            <i class="fas fa-user"></i>
                        </div>
                        <span class="hidden md:inline">Admin</span>
                        <i class="fas fa-chevron-down text-xs hidden md:inline"></i>
                    </button>
                    <div id="dropdownMenu" class="hidden absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 rounded-md shadow-lg py-1 z-50 border border-gray-200 dark:border-gray-700">
                        <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-700">Profile</a>
                        <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-700">Settings</a>
                        <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-700">Logout</a>
                    </div>
                </div>

                <!-- Dark Mode Toggle -->
                <button id="darkModeToggle" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors duration-200" title="Toggle Dark Mode">
                    <i id="moonIcon" class="fas fa-moon text-gray-700"></i>
                    <i id="sunIcon" class="fas fa-sun hidden text-yellow-400"></i>
                </button>

                <!-- Settings Panel Toggle -->
                <button id="settingsToggle" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
                    <i class="fas fa-cog"></i>
                </button>
            </div>
        </div>
    </header>

        <!-- Original Header Content -->
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
            <!-- Logo and Mobile Menu Button -->
            <div class="flex items-center space-x-4">
                <button id="mobileMenuButton" class="md:hidden text-gray-600 dark:text-gray-300">
                    <i class="fas fa-bars text-xl"></i>
                </button>
                <div class="text-xl font-bold text-blue-600 dark:text-blue-400">Deepsite v2</div>
            </div>

            <!-- Search Bar (Center) - Hidden on mobile -->
            <div class="hidden md:flex flex-1 max-w-md mx-4">
                <div class="relative w-full">
                    <input type="text" placeholder="Search..." 
                           class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:text-white">
                    <div class="absolute left-3 top-2.5 text-gray-400 dark:text-gray-300">
                        <i class="fas fa-search"></i>
                    </div>
                    <button class="absolute right-3 top-2.5 text-gray-400 dark:text-gray-300 hover:text-gray-600 dark:hover:text-gray-100">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
            </div>

            <!-- Right Side Icons -->
            <div class="flex items-center space-x-4">
                <!-- Login/Register Buttons (Visible when not logged in) -->
                <div id="guestButtons" class="hidden sm:flex space-x-2">
                    <button class="px-3 py-1.5 text-sm rounded-md border border-blue-600 text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-gray-700">Login</button>
                    <button class="px-3 py-1.5 text-sm rounded-md bg-blue-600 text-white hover:bg-blue-700">Register</button>
                </div>

                <!-- User Dropdown (Visible when logged in) -->
                <div id="userDropdown" class="relative hidden">
                    <button id="userDropdownButton" class="flex items-center space-x-2 focus:outline-none">
                        <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white">
                            <i class="fas fa-user"></i>
                        </div>
                        <span class="hidden md:inline">Admin</span>
                        <i class="fas fa-chevron-down text-xs hidden md:inline"></i>
                    </button>
                    <div id="dropdownMenu" class="hidden absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 rounded-md shadow-lg py-1 z-50 border border-gray-200 dark:border-gray-700">
                        <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-700">Profile</a>
                        <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-700">Settings</a>
                        <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-700">Logout</a>
                    </div>
                </div>

                <!-- Dark Mode Toggle -->
                <button id="darkModeToggle" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
                    <i class="fas fa-moon dark:hidden"></i>
                    <i class="fas fa-sun hidden dark:inline"></i>
                </button>

                <!-- Settings Panel Toggle -->
                <button id="settingsToggle" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
                    <i class="fas fa-cog"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- Mobile Menu (Off-canvas) -->
    <div id="mobileMenu" class="fixed top-0 left-0 h-full w-64 bg-white dark:bg-gray-800 shadow-lg transform-offcanvas transition-all-300 z-50 pt-16 md:hidden">
        <div class="overflow-y-auto h-full no-scrollbar">
            <nav class="px-4 py-6">
                <ul class="space-y-2">
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700"><i class="fas fa-home mr-3"></i> Dashboard</a></li>
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700"><i class="fas fa-chart-line mr-3"></i> Analytics</a></li>
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700"><i class="fas fa-users mr-3"></i> Users</a></li>
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700"><i class="fas fa-box mr-3"></i> Products</a></li>
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700"><i class="fas fa-file-invoice mr-3"></i> Orders</a></li>
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700"><i class="fas fa-cog mr-3"></i> Settings</a></li>
                </ul>
            </nav>
        </div>
    </div>

    <!-- Vertical Sidebar Menu (Visible in vertical mode) -->
    <div id="verticalMenu" class="hidden fixed top-16 left-0 h-full w-64 bg-white dark:bg-gray-800 shadow-md transition-all-300 z-30 pt-4">
        <div class="overflow-y-auto h-full no-scrollbar">
            <nav class="px-4">
                <ul class="space-y-1">
                    <li><a href="#" class="block px-4 py-3 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium"><i class="fas fa-home mr-3"></i> Dashboard</a></li>
                    <li><a href="#" class="block px-4 py-3 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium"><i class="fas fa-chart-line mr-3"></i> Analytics</a></li>
                    
                    <!-- Mega Menu Example -->
                    <li class="relative">
                        <button class="w-full flex justify-between items-center px-4 py-3 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium">
                            <span><i class="fas fa-users mr-3"></i> Users</span>
                            <i class="fas fa-chevron-down text-xs"></i>
                        </button>
                        <div class="hidden absolute left-full top-0 ml-1 w-64 bg-white dark:bg-gray-800 rounded-md shadow-lg py-2 z-50 border border-gray-200 dark:border-gray-700">
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700">All Users</a>
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700">Add New</a>
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700">Roles & Permissions</a>
                        </div>
                    </li>
                    
                    <li><a href="#" class="block px-4 py-3 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium"><i class="fas fa-box mr-3"></i> Products</a></li>
                    <li><a href="#" class="block px-4 py-3 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium"><i class="fas fa-file-invoice mr-3"></i> Orders</a></li>
                    
                    <!-- Multi-level Menu Example -->
                    <li class="relative">
                        <button class="w-full flex justify-between items-center px-4 py-3 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium">
                            <span><i class="fas fa-cog mr-3"></i> Settings</span>
                            <i class="fas fa-chevron-down text-xs"></i>
                        </button>
                        <div class="hidden ml-4 mt-1">
                            <a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700">General</a>
                            <a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700">Security</a>
                            <a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700">Notifications</a>
                        </div>
                    </li>
                </ul>
            </nav>
        </div>
    </div>

    <!-- Secondary Horizontal Menu (Visible in horizontal mode) -->
    <div id="secondaryHorizontalMenu" class="fixed top-16 left-0 right-0 bg-white dark:bg-gray-800 shadow-sm z-20 hidden">
        <div class="container mx-auto px-4">
            <nav class="flex overflow-x-auto no-scrollbar">
                <ul class="flex space-x-1 py-2">
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium">Dashboard</a></li>
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium">Analytics</a></li>
                    
                    <!-- Mega Menu Example -->
                    <li class="relative group">
                        <button class="flex items-center px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium">
                            Users <i class="fas fa-chevron-down ml-1 text-xs"></i>
                        </button>
                        <div class="hidden group-hover:block absolute left-0 mt-1 w-64 bg-white dark:bg-gray-800 rounded-md shadow-lg py-2 z-50 border border-gray-200 dark:border-gray-700">
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700">All Users</a>
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700">Add New</a>
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700">Roles & Permissions</a>
                        </div>
                    </li>
                    
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium">Products</a></li>
                    <li><a href="#" class="block px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium">Orders</a></li>
                    
                    <!-- Multi-step Menu Example -->
                    <li class="relative group">
                        <button class="flex items-center px-4 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 font-medium">
                            Settings <i class="fas fa-chevron-down ml-1 text-xs"></i>
                        </button>
                        <div class="hidden group-hover:block absolute left-0 mt-1 w-64 bg-white dark:bg-gray-800 rounded-md shadow-lg py-2 z-50 border border-gray-200 dark:border-gray-700">
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700">General</a>
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700">Security</a>
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700">Notifications</a>
                        </div>
                    </li>
                </ul>
            </nav>
        </div>
    </div>

    <!-- Settings Panel (Off-canvas right) -->
    <div id="settingsPanel" class="fixed top-0 right-0 h-full w-80 bg-white dark:bg-gray-800 shadow-lg transform-offcanvas-right transition-all-300 z-40 pt-16">
        <div class="overflow-y-auto h-full no-scrollbar p-4">
            <h2 class="text-xl font-bold mb-6">Settings Panel</h2>
            
            <!-- Menu Layout Switcher -->
            <div class="mb-6">
                <h3 class="font-medium mb-3">Menu Layout</h3>
                <div class="flex items-center space-x-4">
                    <button id="horizontalMenuBtn" class="flex-1 py-2 px-4 rounded-md border border-blue-500 text-blue-500 font-medium">Horizontal</button>
                    <button id="verticalMenuBtn" class="flex-1 py-2 px-4 rounded-md bg-blue-500 text-white font-medium">Vertical</button>
                </div>
            </div>
            
            <!-- Sidebar Width Adjuster (Visible in vertical mode) -->
            <div id="sidebarWidthControls" class="mb-6 hidden">
                <h3 class="font-medium mb-3">Sidebar Width</h3>
                <div class="flex items-center space-x-2">
                    <button data-width="small" class="sidebar-width-btn flex-1 py-2 px-4 rounded-md border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700">Small</button>
                    <button data-width="medium" class="sidebar-width-btn flex-1 py-2 px-4 rounded-md bg-blue-500 text-white">Medium</button>
                    <button data-width="large" class="sidebar-width-btn flex-1 py-2 px-4 rounded-md border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700">Large</button>
                </div>
            </div>
            
            <!-- Color Theme Selector -->
            <div class="mb-6">
                <h3 class="font-medium mb-3">Color Theme</h3>
                <div class="grid grid-cols-4 gap-2">
                    <button data-theme="light" class="theme-btn h-10 rounded-md bg-white border border-gray-300 flex items-center justify-center">
                        <span class="sr-only">Light</span>
                    </button>
                    <button data-theme="blue" class="theme-btn h-10 rounded-md bg-blue-500 flex items-center justify-center">
                        <span class="sr-only">Blue</span>
                    </button>
                    <button data-theme="green" class="theme-btn h-10 rounded-md bg-green-500 flex items-center justify-center">
                        <span class="sr-only">Green</span>
                    </button>
                    <button data-theme="red" class="theme-btn h-10 rounded-md bg-red-500 flex items-center justify-center">
                        <span class="sr-only">Red</span>
                    </button>
                    <button data-theme="indigo" class="theme-btn h-10 rounded-md bg-indigo-500 flex items-center justify-center">
                        <span class="sr-only">Indigo</span>
                    </button>
                    <button data-theme="purple" class="theme-btn h-10 rounded-md bg-purple-500 flex items-center justify-center">
                        <span class="sr-only">Purple</span>
                    </button>
                    <button data-theme="pink" class="theme-btn h-10 rounded-md bg-pink-500 flex items-center justify-center">
                        <span class="sr-only">Pink</span>
                    </button>
                    <button data-theme="dark" class="theme-btn h-10 rounded-md bg-gray-800 flex items-center justify-center">
                        <span class="sr-only">Dark</span>
                    </button>
                </div>
            </div>
            
            <!-- Search Bar Toggle -->
            <div class="mb-6">
                <h3 class="font-medium mb-3">Search Bar</h3>
                <label class="inline-flex items-center cursor-pointer">
                    <input type="checkbox" id="searchBarToggle" class="sr-only peer" checked>
                    <div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>
                    <span class="ms-3 text-sm font-medium">Show Search Bar</span>
                </label>
            </div>
            
            <!-- Dark Mode Toggle -->
            <div class="mb-6">
                <h3 class="font-medium mb-3">Dark Mode</h3>
                <label class="inline-flex items-center cursor-pointer">
                    <input type="checkbox" id="darkModeToggle2" class="sr-only peer">
                    <div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>
                    <span class="ms-3 text-sm font-medium">Dark Mode</span>
                </label>
            </div>
            
            <!-- Font Size Adjuster -->
            <div class="mb-6">
                <h3 class="font-medium mb-3">Font Size</h3>
                <div class="flex items-center space-x-2">
                    <button data-size="small" class="font-size-btn flex-1 py-2 px-4 rounded-md border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700">Small</button>
                    <button data-size="medium" class="font-size-btn flex-1 py-2 px-4 rounded-md bg-blue-500 text-white">Medium</button>
                    <button data-size="large" class="font-size-btn flex-1 py-2 px-4 rounded-md border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700">Large</button>
                </div>
            </div>
            
            <!-- Page Layout Option -->
            <div class="mb-6">
                <h3 class="font-medium mb-3">Page Layout</h3>
                <div class="flex items-center space-x-2">
                    <button data-layout="boxed" class="layout-btn flex-1 py-2 px-4 rounded-md border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700">Boxed</button>
                    <button data-layout="full" class="layout-btn flex-1 py-2 px-4 rounded-md bg-blue-500 text-white">Full Width</button>
                </div>
            </div>
            
            <!-- Notification Sound Toggle -->
            <div class="mb-6">
                <h3 class="font-medium mb-3">Notification Sound</h3>
                <label class="inline-flex items-center cursor-pointer">
                    <input type="checkbox" id="notificationSoundToggle" class="sr-only peer" checked>
                    <div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>
                    <span class="ms-3 text-sm font-medium">Enable Sounds</span>
                </label>
            </div>
            
            <!-- Language Selector -->
            <div class="mb-6">
                <h3 class="font-medium mb-3">Language</h3>
                <select class="w-full p-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700">
                    <option>English</option>
                    <option>Spanish</option>
                    <option>French</option>
                    <option>German</option>
                    <option>Chinese</option>
                </select>
            </div>
        </div>
    </div>

    <!-- Main Content Area -->
    <main id="mainContent" class="pt-32 pb-8 px-4 transition-all-300">
        <div class="container mx-auto">
            <!-- Page Title -->
            <div class="flex justify-between items-center mb-6">
                <h1 class="text-2xl font-bold">Dashboard</h1>
                <div class="flex items-center space-x-2">
                    <button class="px-3 py-1.5 text-sm rounded-md border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700">
                        <i class="fas fa-download mr-1"></i> Export
                    </button>
                    <button class="px-3 py-1.5 text-sm rounded-md bg-blue-600 text-white hover:bg-blue-700">
                        <i class="fas fa-plus mr-1"></i> Add New
                    </button>
                </div>
            </div>
            
            <!-- Stats Cards -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 border-l-4 border-blue-500">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-500 dark:text-gray-400 text-sm">Total Users</p>
                            <h3 class="text-2xl font-bold mt-1">2,456</h3>
                        </div>
                        <div class="p-3 rounded-full bg-blue-100 dark:bg-blue-900/30 text-blue-500">
                            <i class="fas fa-users text-xl"></i>
                        </div>
                    </div>
                    <p class="text-green-500 text-sm mt-3"><i class="fas fa-arrow-up mr-1"></i> 12.5% from last month</p>
                </div>
                
                <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 border-l-4 border-green-500">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-500 dark:text-gray-400 text-sm">Total Revenue</p>
                            <h3 class="text-2xl font-bold mt-1">$24,780</h3>
                        </div>
                        <div class="p-3 rounded-full bg-green-100 dark:bg-green-900/30 text-green-500">
                            <i class="fas fa-dollar-sign text-xl"></i>
                        </div>
                    </div>
                    <p class="text-green-500 text-sm mt-3"><i class="fas fa-arrow-up mr-1"></i> 8.2% from last month</p>
                </div>
                
                <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 border-l-4 border-purple-500">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-500 dark:text-gray-400 text-sm">Active Projects</p>
                            <h3 class="text-2xl font-bold mt-1">42</h3>
                        </div>
                        <div class="p-3 rounded-full bg-purple-100 dark:bg-purple-900/30 text-purple-500">
                            <i class="fas fa-project-diagram text-xl"></i>
                        </div>
                    </div>
                    <p class="text-red-500 text-sm mt-3"><i class="fas fa-arrow-down mr-1"></i> 3.1% from last month</p>
                </div>
                
                <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 border-l-4 border-yellow-500">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-500 dark:text-gray-400 text-sm">Pending Tasks</p>
                            <h3 class="text-2xl font-bold mt-1">18</h3>
                        </div>
                        <div class="p-3 rounded-full bg-yellow-100 dark:bg-yellow-900/30 text-yellow-500">
                            <i class="fas fa-tasks text-xl"></i>
                        </div>
                    </div>
                    <p class="text-green-500 text-sm mt-3"><i class="fas fa-arrow-up mr-1"></i> 5.7% from last month</p>
                </div>
            </div>
            
            <!-- Charts Row -->
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
                <!-- Line Chart -->
                <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 lg:col-span-2">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="font-bold">Revenue Overview</h3>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 text-xs rounded-md bg-blue-100 dark:bg-blue-900/30 text-blue-500">Monthly</button>
                            <button class="px-3 py-1 text-xs rounded-md border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700">Weekly</button>
                            <button class="px-3 py-1 text-xs rounded-md border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700">Yearly</button>
                        </div>
                    </div>
                    <div class="h-64 bg-gray-100 dark:bg-gray-700 rounded flex items-center justify-center">
                        <p class="text-gray-500 dark:text-gray-400">Line Chart Placeholder</p>
                    </div>
                </div>
                
                <!-- Pie Chart -->
                <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                    <h3 class="font-bold mb-4">Traffic Sources</h3>
                    <div class="h-64 bg-gray-100 dark:bg-gray-700 rounded flex items-center justify-center">
                        <p class="text-gray-500 dark:text-gray-400">Pie Chart Placeholder</p>
                    </div>
                    <div class="mt-4 grid grid-cols-2 gap-2">
                        <div class="flex items-center">
                            <div class="w-3 h-3 rounded-full bg-blue-500 mr-2"></div>
                            <span class="text-sm">Direct</span>
                        </div>
                        <div class="flex items-center">
                            <div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
                            <span class="text-sm">Organic</span>
                        </div>
                        <div class="flex items-center">
                            <div class="w-3 h-3 rounded-full bg-purple-500 mr-2"></div>
                            <span class="text-sm">Referral</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">Social</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Recent Orders Table -->
            <div class="bg-white dark:bg-gray-800 rounded-lg shadow mb-8">
                <div class="p-6 border-b border-gray-200 dark:border-gray-700">
                    <div class="flex justify-between items-center">
                        <h3 class="font-bold">Recent Orders</h3>
                        <button class="text-blue-500 hover:text-blue-700 text-sm font-medium">View All</button>
                    </div>
                </div>
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
                        <thead class="bg-gray-50 dark:bg-gray-700">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Order ID</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Customer</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Date</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Amount</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Status</th>
                                <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Action</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">#ORD-0001</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">John Smith</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">12 Jun 2023</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">$245.00</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200">Completed</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <a href="#" class="text-blue-500 hover:text-blue-700 mr-3">View</a>
                                    <a href="#" class="text-red-500 hover:text-red-700">Delete</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">#ORD-0002</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">Sarah Johnson</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">11 Jun 2023</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">$178.50</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200">Processing</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <a href="#" class="text-blue-500 hover:text-blue-700 mr-3">View</a>
                                    <a href="#" class="text-red-500 hover:text-red-700">Delete</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">#ORD-0003</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">Michael Brown</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">10 Jun 2023</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">$320.75</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200">Shipped</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <a href="#" class="text-blue-500 hover:text-blue-700 mr-3">View</a>
                                    <a href="#" class="text-red-500 hover:text-red-700">Delete</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">#ORD-0004</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">Emily Davis</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">9 Jun 2023</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">$95.20</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200">Cancelled</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <a href="#" class="text-blue-500 hover:text-blue-700 mr-3">View</a>
                                    <a href="#" class="text-red-500 hover:text-red-700">Delete</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">#ORD-0005</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">David Wilson</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">8 Jun 2023</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300">$412.00</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200">Completed</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <a href="#" class="text-blue-500 hover:text-blue-700 mr-3">View</a>
                                    <a href="#" class="text-red-500 hover:text-red-700">Delete</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="px-6 py-4 border-t border-gray-200 dark:border-gray-700 flex items-center justify-between">
                    <div class="text-sm text-gray-500 dark:text-gray-400">
                        Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">24</span> results
                    </div>
                    <div class="flex space-x-1">
                        <button class="px-3 py-1 rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-600">Previous</button>
                        <button class="px-3 py-1 rounded-md border border-blue-500 bg-blue-500 text-white text-sm font-medium">1</button>
                        <button class="px-3 py-1 rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-600">2</button>
                        <button class="px-3 py-1 rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-600">3</button>
                        <button class="px-3 py-1 rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-600">Next</button>
                    </div>
                </div>
            </div>
            
            <!-- Recent Activity Timeline -->
            <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 mb-8">
                <h3 class="font-bold mb-6">Recent Activity</h3>
                <div class="space-y-4">
                    <div class="flex">
                        <div class="flex-shrink-0 mr-4">
                            <div class="h-10 w-10 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center text-blue-500">
                                <i class="fas fa-user-plus"></i>
                            </div>
                        </div>
                        <div class="flex-1 border-b border-gray-200 dark:border-gray-700 pb-4">
                            <div class="flex items-center justify-between">
                                <p class="text-sm font-medium">New user registered</p>
                                <span class="text-xs text-gray-500 dark:text-gray-400">2 min ago</span>
                            </div>
                            <p class="text-sm text-gray-500 dark:text-gray-400 mt-1">John Smith created an account</p>
                        </div>
                    </div>
                    <div class="flex">
                        <div class="flex-shrink-0 mr-4">
                            <div class="h-10 w-10 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center text-green-500">
                                <i class="fas fa-shopping-cart"></i>
                            </div>
                        </div>
                        <div class="flex-1 border-b border-gray-200 dark:border-gray-700 pb-4">
                            <div class="flex items-center justify-between">
                                <p class="text-sm font-medium">New order received</p>
                                <span class="text-xs text-gray-500 dark:text-gray-400">25 min ago</span>
                            </div>
                            <p class="text-sm text-gray-500 dark:text-gray-400 mt-1">Order #ORD-0025 from Sarah Johnson</p>
                        </div>
                    </div>
                    <div class="flex">
                        <div class="flex-shrink-0 mr-4">
                            <div class="h-10 w-10 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center text-purple-500">
                                <i class="fas fa-truck"></i>
                            </div>
                        </div>
                        <div class="flex-1 border-b border-gray-200 dark:border-gray-700 pb-4">
                            <div class="flex items-center justify-between">
                                <p class="text-sm font-medium">Order shipped</p>
                                <span class="text-xs text-gray-500 dark:text-gray-400">1 hour ago</span>
                            </div>
                            <p class="text-sm text-gray-500 dark:text-gray-400 mt-1">Order #ORD-0023 has been shipped</p>
                        </div>
                    </div>
                    <div class="flex">
                        <div class="flex-shrink-0 mr-4">
                            <div class="h-10 w-10 rounded-full bg-yellow-100 dark:bg-yellow-900/30 flex items-center justify-center text-yellow-500">
                                <i class="fas fa-exclamation-circle"></i>
                            </div>
                        </div>
                        <div class="flex-1 pb-2">
                            <div class="flex items-center justify-between">
                                <p class="text-sm font-medium">Payment failed</p>
                                <span class="text-xs text-gray-500 dark:text-gray-400">3 hours ago</span>
                            </div>
                            <p class="text-sm text-gray-500 dark:text-gray-400 mt-1">Payment for order #ORD-0021 failed</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Form Example -->
            <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 mb-8">
                <h3 class="font-bold mb-6">Create New Product</h3>
                <form>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                        <div>
                            <label class="block text-sm font-medium mb-1" for="product-name">Product Name</label>
                            <input type="text" id="product-name" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700">
                        </div>
                        <div>
                            <label class="block text-sm font-medium mb-1" for="product-category">Category</label>
                            <select id="product-category" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700">
                                <option>Electronics</option>
                                <option>Clothing</option>
                                <option>Home & Garden</option>
                                <option>Books</option>
                                <option>Other</option>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm font-medium mb-1" for="product-price">Price</label>
                            <div class="relative rounded-md shadow-sm">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <span class="text-gray-500 sm:text-sm">$</span>
                                </div>
                                <input type="text" id="product-price" class="block w-full pl-7 pr-12 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700" placeholder="0.00">
                                <div class="absolute inset-y-0 right-0 flex items-center">
                                    <select class="h-full py-0 pl-2 pr-7 border-transparent bg-transparent text-gray-500 sm:text-sm rounded-r-md focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                        <option>USD</option>
                                        <option>EUR</option>
                                        <option>GBP</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div>
                            <label class="block text-sm font-medium mb-1" for="product-stock">Stock Quantity</label>
                            <input type="number" id="product-stock" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700">
                        </div>
                    </div>
                    
                    <div class="mb-6">
                        <label class="block text-sm font-medium mb-1">Product Status</label>
                        <div class="flex space-x-4">
                            <label class="inline-flex items-center">
                                <input type="radio" name="product-status" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 dark:border-gray-600" checked>
                                <span class="ml-2 text-sm">Active</span>
                            </label>
                            <label class="inline-flex items-center">
                                <input type="radio" name="product-status" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 dark:border-gray-600">
                                <span class="ml-2 text-sm">Draft</span>
                            </label>
                            <label class="inline-flex items-center">
                                <input type="radio" name="product-status" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 dark:border-gray-600">
                                <span class="ml-2 text-sm">Archived</span>
                            </label>
                        </div>
                    </div>
                    
                    <div class="mb-6">
                        <label class="block text-sm font-medium mb-1" for="product-description">Description</label>
                        <textarea id="product-description" rows="4" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700"></textarea>
                    </div>
                    
                    <div class="mb-6">
                        <label class="block text-sm font-medium mb-1">Product Features</label>
                        <div class="space-y-2">
                            <label class="inline-flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 dark:border-gray-600 rounded">
                                <span class="ml-2 text-sm">Free Shipping</span>
                            </label>
                            <label class="inline-flex items-center block">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 dark:border-gray-600 rounded">
                                <span class="ml-2 text-sm">Featured Product</span>
                            </label>
                            <label class="inline-flex items-center block">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 dark:border-gray-600 rounded">
                                <span class="ml-2 text-sm">Discount Available</span>
                            </label>
                        </div>
                    </div>
                    
                    <div class="mb-6">
                        <label class="block text-sm font-medium mb-1">Product Images</label>
                        <div class="mt-1 flex items-center">
                            <span class="inline-block h-24 w-24 rounded-md overflow-hidden bg-gray-100 dark:bg-gray-700">
                                <svg class="h-full w-full text-gray-300 dark:text-gray-600" fill="currentColor" viewBox="0 0 24 24">
                                    <path d="M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z" />
                                </svg>
                            </span>
                            <button type="button" class="ml-5 bg-white dark:bg-gray-700 py-2 px-3 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm text-sm leading-4 font-medium text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                                Upload
                            </button>
                        </div>
                    </div>
                    
                    <div class="flex justify-end space-x-3">
                        <button type="button" class="px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm text-sm font-medium text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                            Cancel
                        </button>
                        <button type="submit" class="px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                            Save Product
                        </button>
                    </div>
                </form>
            </div>
            
            <!-- FAQ Section -->
            <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                <h3 class="font-bold mb-6">Frequently Asked Questions</h3>
                <div class="space-y-4">
                    <div class="border border-gray-200 dark:border-gray-700 rounded-md overflow-hidden">
                        <button class="faq-toggle w-full flex justify-between items-center p-4 text-left hover:bg-gray-50 dark:hover:bg-gray-700">
                            <span class="font-medium">How do I change my account password?</span>
                            <i class="fas fa-chevron-down transition-transform duration-200"></i>
                        </button>
                        <div class="faq-content hidden px-4 pb-4">
                            <p class="text-sm text-gray-500 dark:text-gray-400">You can change your password by going to the Account Settings page and clicking on the "Change Password" button. You'll need to enter your current password and then your new password twice to confirm.</p>
                        </div>
                    </div>
                    <div class="border border-gray-200 dark:border-gray-700 rounded-md overflow-hidden">
                        <button class="faq-toggle w-full flex justify-between items-center p-4 text-left hover:bg-gray-50 dark:hover:bg-gray-700">
                            <span class="font-medium">Where can I download my invoices?</span>
                            <i class="fas fa-chevron-down transition-transform duration-200"></i>
                        </button>
                        <div class="faq-content hidden px-4 pb-4">
                            <p class="text-sm text-gray-500 dark:text-gray-400">All your invoices are available in the Billing section of your account. Simply navigate to the "Invoices" tab, find the invoice you need, and click the download button next to it.</p>
                        </div>
                    </div>
                    <div class="border border-gray-200 dark:border-gray-700 rounded-md overflow-hidden">
                        <button class="faq-toggle w-full flex justify-between items-center p-4 text-left hover:bg-gray-50 dark:hover:bg-gray-700">
                            <span class="font-medium">How do I contact customer support?</span>
                            <i class="fas fa-chevron-down transition-transform duration-200"></i>
                        </button>
                        <div class="faq-content hidden px-4 pb-4">
                            <p class="text-sm text-gray-500 dark:text-gray-400">You can contact our customer support team by clicking the "Help" button in the bottom right corner of any page, or by emailing [email protected]. Our team typically responds within 24 hours.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- Overlay for mobile menu and settings panel -->
    <div id="overlay" class="fixed inset-0 bg-black bg-opacity-50 z-30 hidden"></div>

    <script>
        // DOM Elements
        const mobileMenuButton = document.getElementById('mobileMenuButton');
        const mobileMenu = document.getElementById('mobileMenu');
        const settingsToggle = document.getElementById('settingsToggle');
        const settingsPanel = document.getElementById('settingsPanel');
        const overlay = document.getElementById('overlay');
        const darkModeToggle = document.getElementById('darkModeToggle');
        const darkModeToggle2 = document.getElementById('darkModeToggle2');
        const horizontalMenuBtn = document.getElementById('horizontalMenuBtn');
        const verticalMenuBtn = document.getElementById('verticalMenuBtn');
        const verticalMenu = document.getElementById('verticalMenu');
        const secondaryHorizontalMenu = document.getElementById('secondaryHorizontalMenu');
        const mainContent = document.getElementById('mainContent');
        const userDropdownButton = document.getElementById('userDropdownButton');
        const dropdownMenu = document.getElementById('dropdownMenu');
        const guestButtons = document.getElementById('guestButtons');
        const userDropdown = document.getElementById('userDropdown');
        const sidebarWidthControls = document.getElementById('sidebarWidthControls');
        const faqToggles = document.querySelectorAll('.faq-toggle');

        // Initialize dark mode
        const darkModeToggle = document.getElementById('darkModeToggle');
        const moonIcon = document.getElementById('moonIcon');
        const sunIcon = document.getElementById('sunIcon');
        
        // Check for saved preference or use system preference
        const prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)');
        let isDarkMode = localStorage.getItem('darkMode') === 'true' || 
                        (localStorage.getItem('darkMode') === null && prefersDarkScheme.matches);

        // Apply initial mode
        if (isDarkMode) {
            document.documentElement.classList.add('dark');
            moonIcon.classList.add('hidden');
            sunIcon.classList.remove('hidden');
            if (darkModeToggle2) darkModeToggle2.checked = true;
        } else {
            document.documentElement.classList.remove('dark');
            moonIcon.classList.remove('hidden');
            sunIcon.classList.add('hidden');
            if (darkModeToggle2) darkModeToggle2.checked = false;
        }

        // Dark Mode Toggle Event Listeners
        darkModeToggle.addEventListener('click', toggleDarkMode);
        if (darkModeToggle2) {
            darkModeToggle2.addEventListener('change', toggleDarkMode);
        }
        
        // Watch for system color scheme changes
        prefersDarkScheme.addEventListener('change', e => {
            if (localStorage.getItem('darkMode') === null) {
                isDarkMode = e.matches;
                if (isDarkMode) {
                    document.documentElement.classList.add('dark');
                    moonIcon.classList.add('hidden');
                    sunIcon.classList.remove('hidden');
                } else {
                    document.documentElement.classList.remove('dark');
                    moonIcon.classList.remove('hidden');
                    sunIcon.classList.add('hidden');
                }
            }
        });

        // Check for saved dark mode preference
        if (localStorage.getItem('darkMode') === 'true') {
            document.documentElement.classList.add('dark');
            isDarkMode = true;
            darkModeToggle2.checked = true;
        } else {
            document.documentElement.classList.remove('dark');
            isDarkMode = false;
            darkModeToggle2.checked = false;
        }
        updateDarkModeIcon();

        function toggleDarkMode() {
            isDarkMode = !isDarkMode;
            
            if (isDarkMode) {
                document.documentElement.classList.add('dark');
                moonIcon.classList.add('hidden');
                sunIcon.classList.remove('hidden');
                localStorage.setItem('darkMode', 'true');
            } else {
                document.documentElement.classList.remove('dark');
                moonIcon.classList.remove('hidden');
                sunIcon.classList.add('hidden');
                localStorage.setItem('darkMode', 'false');
            }
            
            if (darkModeToggle2) {
                darkModeToggle2.checked = isDarkMode;
            }
        }

        let isMobileMenuOpen = false;
        let isSettingsPanelOpen = false;

        // Check for saved preferences
        if (localStorage.getItem('darkMode') === 'true') {
            toggleDarkMode();
        }

        if (localStorage.getItem('menuLayout') === 'vertical') {
            toggleMenuLayout();
        }

        // Mobile Menu Toggle
        mobileMenuButton.addEventListener('click', () => {
            isMobileMenuOpen = !isMobileMenuOpen;
            if (isMobileMenuOpen) {
                mobileMenu.classList.remove('transform-offcanvas');
                mobileMenu.classList.add('transform-offcanvas-show');
                overlay.classList.remove('hidden');
            } else {
                mobileMenu.classList.remove('transform-offcanvas-show');
                mobileMenu.classList.add('transform-offcanvas');
                overlay.classList.add('hidden');
            }
        });

        // Settings Panel Toggle
        settingsToggle.addEventListener('click', () => {
            isSettingsPanelOpen = !isSettingsPanelOpen;
            if (isSettingsPanelOpen) {
                settingsPanel.classList.remove('transform-offcanvas-right');
                settingsPanel.classList.add('transform-offcanvas-show');
                overlay.classList.remove('hidden');
            } else {
                settingsPanel.classList.remove('transform-offcanvas-show');
                settingsPanel.classList.add('transform-offcanvas-right');
                overlay.classList.add('hidden');
            }
        });

        // Overlay Click Handler
        overlay.addEventListener('click', () => {
            if (isMobileMenuOpen) {
                mobileMenu.classList.remove('transform-offcanvas-show');
                mobileMenu.classList.add('transform-offcanvas');
                isMobileMenuOpen = false;
            }
            if (isSettingsPanelOpen) {
                settingsPanel.classList.remove('transform-offcanvas-show');
                settingsPanel.classList.add('transform-offcanvas-right');
                isSettingsPanelOpen = false;
            }
            overlay.classList.add('hidden');
        });

        // Dark Mode Toggle
        darkModeToggle.addEventListener('click', toggleDarkMode);
        darkModeToggle2.addEventListener('click', toggleDarkMode);

        function toggleDarkMode() {
            isDarkMode = !isDarkMode;
            document.documentElement.classList.toggle('dark');
            if (isDarkMode) {
                localStorage.setItem('darkMode', 'true');
                darkModeToggle2.checked = true;
            } else {
                localStorage.setItem('darkMode', 'false');
                darkModeToggle2.checked = false;
            }
        }

        // Menu Layout Toggle
        horizontalMenuBtn.addEventListener('click', () => {
            if (!isHorizontalMenu) {
                toggleMenuLayout();
            }
        });

        verticalMenuBtn.addEventListener('click', () => {
            if (isHorizontalMenu) {
                toggleMenuLayout();
            }
        });

        function toggleMenuLayout() {
            isHorizontalMenu = !isHorizontalMenu;
            if (isHorizontalMenu) {
                verticalMenu.classList.add('hidden');
                secondaryHorizontalMenu.classList.remove('hidden');
                mainContent.classList.remove('md:ml-64');
                sidebarWidthControls.classList.add('hidden');
                localStorage.setItem('menuLayout', 'horizontal');
                horizontalMenuBtn.classList.add('border', 'border-blue-500', 'text-blue-500');
                horizontalMenuBtn.classList.remove('bg-blue-500', 'text-white');
                verticalMenuBtn.classList.add('bg-blue-500', 'text-white');
                verticalMenuBtn.classList.remove('border', 'border-blue-500', 'text-blue-500');
            } else {
                verticalMenu.classList.remove('hidden');
                secondaryHorizontalMenu.classList.add('hidden');
                mainContent.classList.add('md:ml-64');
                sidebarWidthControls.classList.remove('hidden');
                localStorage.setItem('menuLayout', 'vertical');
                horizontalMenuBtn.classList.remove('border', 'border-blue-500', 'text-blue-500');
                horizontalMenuBtn.classList.add('bg-blue-500', 'text-white');
                verticalMenuBtn.classList.remove('bg-blue-500', 'text-white');
                verticalMenuBtn.classList.add('border', 'border-blue-500', 'text-blue-500');
            }
        }

        // User Dropdown Toggle
        userDropdownButton.addEventListener('click', () => {
            dropdownMenu.classList.toggle('hidden');
        });

        // Close dropdown when clicking outside
        document.addEventListener('click', (e) => {
            if (!userDropdown.contains(e.target)) {
                dropdownMenu.classList.add('hidden');
            }
        });

        // For demo purposes, show user dropdown (simulate logged in)
        setTimeout(() => {
            guestButtons.classList.add('hidden');
            userDropdown.classList.remove('hidden');
        }, 1000);

        // Sidebar Width Adjuster
        document.querySelectorAll('.sidebar-width-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const width = this.getAttribute('data-width');
                document.querySelectorAll('.sidebar-width-btn').forEach(b => {
                    b.classList.remove('bg-blue-500', 'text-white');
                    b.classList.add('border', 'border-gray-300', 'dark:border-gray-600', 'hover:bg-gray-100', 'dark:hover:bg-gray-700');
                });
                
                this.classList.add('bg-blue-500', 'text-white');
                this.classList.remove('border', 'hover:bg-gray-100', 'dark:hover:bg-gray-700');
                
                verticalMenu.classList.remove('w-56', 'w-64', 'w-72');
                if (width === 'small') {
                    verticalMenu.classList.add('w-56');
                    mainContent.classList.remove('md:ml-64', 'md:ml-72');
                    mainContent.classList.add('md:ml-56');
                } else if (width === 'large') {
                    verticalMenu.classList.add('w-72');
                    mainContent.classList.remove('md:ml-56', 'md:ml-64');
                    mainContent.classList.add('md:ml-72');
                } else {
                    verticalMenu.classList.add('w-64');
                    mainContent.classList.remove('md:ml-56', 'md:ml-72');
                    mainContent.classList.add('md:ml-64');
                }
            });
        });

        // Theme Color Selector
        document.querySelectorAll('.theme-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const theme = this.getAttribute('data-theme');
                document.documentElement.className = theme === 'dark' ? 'dark' : 'light';
                if (theme !== 'dark' && theme !== 'light') {
                    document.documentElement.classList.add(`theme-${theme}`);
                }
                localStorage.setItem('colorTheme', theme);
            });
        });

        // FAQ Toggles
        if (faqToggles) {
            faqToggles.forEach(toggle => {
                toggle.addEventListener('click', function() {
                    const content = this.nextElementSibling;
                    const icon = this.querySelector('i');
                    
                    // Toggle current item
                    content.classList.toggle('hidden');
                    icon.classList.toggle('rotate-180');
                    
                    // Close other open FAQ items if needed
                    document.querySelectorAll('.faq-toggle').forEach(otherToggle => {
                        if (otherToggle !== toggle) {
                            otherToggle.nextElementSibling.classList.add('hidden');
                            otherToggle.querySelector('i').classList.remove('rotate-180');
                        }
                    });
                });
            });
        }

        // Search Bar Toggle
        const searchBarToggle = document.getElementById('searchBarToggle');
        searchBarToggle.addEventListener('change', function() {
            const searchBar = document.querySelector('.hidden.md\\:flex');
            if (this.checked) {
                searchBar.classList.remove('hidden');
            } else {
                searchBar.classList.add('hidden');
            }
        });

        // Font Size Adjuster
        document.querySelectorAll('.font-size-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const size = this.getAttribute('data-size');
                document.querySelectorAll('.font-size-btn').forEach(b => {
                    b.classList.remove('bg-blue-500', 'text-white');
                    b.classList.add('border', 'border-gray-300', 'dark:border-gray-600', 'hover:bg-gray-100', 'dark:hover:bg-gray-700');
                });
                
                this.classList.add('bg-blue-500', 'text-white');
                this.classList.remove('border', 'hover:bg-gray-100', 'dark:hover:bg-gray-700');
                
                document.documentElement.style.fontSize = 
                    size === 'small' ? '14px' : size === 'large' ? '18px' : '16px';
            });
        });

        // Page Layout Toggle
        document.querySelectorAll('.layout-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const layout = this.getAttribute('data-layout');
                document.querySelectorAll('.layout-btn').forEach(b => {
                    b.classList.remove('bg-blue-500', 'text-white');
                    b.classList.add('border', 'border-gray-300', 'dark:border-gray-600', 'hover:bg-gray-100', 'dark:hover:bg-gray-700');
                });
                
                this.classList.add('bg-blue-500', 'text-white');
                this.classList.remove('border', 'hover:bg-gray-100', 'dark:hover:bg-gray-700');
                
                if (layout === 'boxed') {
                    document.querySelector('.container').classList.add('max-w-6xl');
                } else {
                    document.querySelector('.container').classList.remove('max-w-6xl');
                }
            });
        });
    </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=mertmehmet/saas-admin" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>