File size: 79,387 Bytes
3e9a606
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GMAO LED - Suivi des Maintenances</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981',
                        dark: '#1F2937',
                        light: '#F3F4F6',
                    }
                }
            }
        }
    </script>
    <style>
        .sidebar {
            transition: all 0.3s ease;
        }
        .sidebar.collapsed {
            width: 70px;
        }
        .sidebar.collapsed .sidebar-text {
            display: none;
        }
        .sidebar.collapsed .logo-text {
            display: none;
        }
        .sidebar.collapsed .nav-item {
            justify-content: center;
        }
        .main-content {
            transition: all 0.3s ease;
        }
        .sidebar.collapsed + .main-content {
            margin-left: 70px;
        }
        .fade-in {
            animation: fadeIn 0.3s ease-in-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        .custom-scrollbar::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
    </style>
</head>
<body class="bg-gray-100 font-sans">
    <div class="flex h-screen overflow-hidden">
        <!-- Sidebar -->
        <div class="sidebar bg-dark text-white w-64 flex flex-col h-full fixed">
            <div class="p-4 flex items-center border-b border-gray-700">
                <div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center">
                    <i class="fas fa-tv text-white"></i>
                </div>
                <span class="logo-text ml-3 text-xl font-bold">LED GMAO</span>
            </div>
            <div class="flex-1 overflow-y-auto custom-scrollbar py-4">
                <nav>
                    <div class="px-4">
                        <div class="text-gray-400 uppercase text-xs font-semibold mb-2 sidebar-text">Menu Principal</div>
                        <a href="#" class="nav-item flex items-center px-4 py-3 text-white bg-primary rounded-lg mx-2 mb-1" onclick="showSection('dashboard')">
                            <i class="fas fa-tachometer-alt"></i>
                            <span class="sidebar-text ml-3">Tableau de bord</span>
                        </a>
                        <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg mx-2 mb-1" onclick="showSection('clients')">
                            <i class="fas fa-users"></i>
                            <span class="sidebar-text ml-3">Clients</span>
                        </a>
                        <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg mx-2 mb-1" onclick="showSection('ecrans')">
                            <i class="fas fa-tv"></i>
                            <span class="sidebar-text ml-3">Écrans LED</span>
                        </a>
                        <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg mx-2 mb-1" onclick="showSection('dalles')">
                            <i class="fas fa-th-large"></i>
                            <span class="sidebar-text ml-3">Dalles</span>
                        </a>
                        <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg mx-2 mb-1" onclick="showSection('modules')">
                            <i class="fas fa-microchip"></i>
                            <span class="sidebar-text ml-3">Modules</span>
                        </a>
                        <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg mx-2 mb-1" onclick="showSection('interventions')">
                            <i class="fas fa-tools"></i>
                            <span class="sidebar-text ml-3">Interventions</span>
                        </a>
                        <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg mx-2 mb-1" onclick="showSection('rapports')">
                            <i class="fas fa-file-alt"></i>
                            <span class="sidebar-text ml-3">Rapports</span>
                        </a>
                    </div>
                    <div class="px-4 mt-6">
                        <div class="text-gray-400 uppercase text-xs font-semibold mb-2 sidebar-text">Paramètres</div>
                        <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg mx-2 mb-1" onclick="showSection('parametres')">
                            <i class="fas fa-cog"></i>
                            <span class="sidebar-text ml-3">Paramètres</span>
                        </a>
                    </div>
                </nav>
            </div>
            <div class="p-4 border-t border-gray-700">
                <button onclick="toggleSidebar()" class="w-full flex items-center justify-center text-gray-300 hover:text-white">
                    <i class="fas fa-chevron-left"></i>
                    <span class="sidebar-text ml-2">Réduire</span>
                </button>
            </div>
        </div>

        <!-- Main Content -->
        <div class="main-content flex-1 overflow-auto ml-64">
            <!-- Top Navigation -->
            <header class="bg-white shadow-sm">
                <div class="flex justify-between items-center px-6 py-4">
                    <div class="flex items-center">
                        <h1 class="text-xl font-semibold text-gray-800" id="page-title">Tableau de bord</h1>
                    </div>
                    <div class="flex items-center space-x-4">
                        <div class="relative">
                            <input type="text" placeholder="Rechercher..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                            <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                        </div>
                        <div class="relative">
                            <button class="p-2 text-gray-500 hover:text-gray-700 focus:outline-none">
                                <i class="fas fa-bell"></i>
                                <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
                            </button>
                        </div>
                        <div class="flex items-center">
                            <div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white font-semibold">JD</div>
                            <span class="ml-2 text-gray-700">John Doe</span>
                        </div>
                    </div>
                </div>
            </header>

            <!-- Dashboard Section -->
            <div id="dashboard-section" class="p-6 fade-in">
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex items-center">
                            <div class="p-3 rounded-full bg-blue-100 text-primary">
                                <i class="fas fa-users text-xl"></i>
                            </div>
                            <div class="ml-4">
                                <p class="text-gray-500">Clients</p>
                                <h3 class="text-2xl font-bold" id="client-count">12</h3>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex items-center">
                            <div class="p-3 rounded-full bg-green-100 text-secondary">
                                <i class="fas fa-tv text-xl"></i>
                            </div>
                            <div class="ml-4">
                                <p class="text-gray-500">Écrans LED</p>
                                <h3 class="text-2xl font-bold" id="ecran-count">24</h3>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex items-center">
                            <div class="p-3 rounded-full bg-yellow-100 text-yellow-500">
                                <i class="fas fa-tools text-xl"></i>
                            </div>
                            <div class="ml-4">
                                <p class="text-gray-500">Interventions</p>
                                <h3 class="text-2xl font-bold" id="intervention-count">56</h3>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex items-center">
                            <div class="p-3 rounded-full bg-purple-100 text-purple-500">
                                <i class="fas fa-exclamation-triangle text-xl"></i>
                            </div>
                            <div class="ml-4">
                                <p class="text-gray-500">En attente</p>
                                <h3 class="text-2xl font-bold" id="pending-count">5</h3>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h2 class="text-lg font-semibold">Dernières interventions</h2>
                            <a href="#" class="text-primary text-sm" onclick="showSection('interventions')">Voir tout</a>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead>
                                    <tr>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Écran</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">15/06/2023</td>
                                        <td class="px-4 py-3 whitespace-nowrap">LED-2456</td>
                                        <td class="px-4 py-3 whitespace-nowrap">Remplacement module</td>
                                        <td class="px-4 py-3 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Terminé</span></td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">10/06/2023</td>
                                        <td class="px-4 py-3 whitespace-nowrap">LED-1892</td>
                                        <td class="px-4 py-3 whitespace-nowrap">Réparation mécanique</td>
                                        <td class="px-4 py-3 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Terminé</span></td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">05/06/2023</td>
                                        <td class="px-4 py-3 whitespace-nowrap">LED-3345</td>
                                        <td class="px-4 py-3 whitespace-nowrap">Diagnostic</td>
                                        <td class="px-4 py-3 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">En cours</span></td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">01/06/2023</td>
                                        <td class="px-4 py-3 whitespace-nowrap">LED-1123</td>
                                        <td class="px-4 py-3 whitespace-nowrap">Remplacement dalle</td>
                                        <td class="px-4 py-3 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">En attente</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h2 class="text-lg font-semibold">Écrans en maintenance</h2>
                            <a href="#" class="text-primary text-sm" onclick="showSection('ecrans')">Voir tout</a>
                        </div>
                        <div class="space-y-4">
                            <div class="flex items-center p-3 border border-gray-200 rounded-lg">
                                <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-primary">
                                    <i class="fas fa-tv"></i>
                                </div>
                                <div class="ml-4">
                                    <h4 class="font-medium">LED-2456</h4>
                                    <p class="text-sm text-gray-500">Client: Société ABC</p>
                                </div>
                                <div class="ml-auto">
                                    <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">En cours</span>
                                </div>
                            </div>
                            <div class="flex items-center p-3 border border-gray-200 rounded-lg">
                                <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-primary">
                                    <i class="fas fa-tv"></i>
                                </div>
                                <div class="ml-4">
                                    <h4 class="font-medium">LED-1123</h4>
                                    <p class="text-sm text-gray-500">Client: Entreprise XYZ</p>
                                </div>
                                <div class="ml-auto">
                                    <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">En attente</span>
                                </div>
                            </div>
                            <div class="flex items-center p-3 border border-gray-200 rounded-lg">
                                <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center text-primary">
                                    <i class="fas fa-tv"></i>
                                </div>
                                <div class="ml-4">
                                    <h4 class="font-medium">LED-3345</h4>
                                    <p class="text-sm text-gray-500">Client: Groupe 123</p>
                                </div>
                                <div class="ml-auto">
                                    <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">En cours</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex justify-between items-center mb-4">
                        <h2 class="text-lg font-semibold">Statistiques des interventions</h2>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 text-sm bg-primary text-white rounded-lg">Mois</button>
                            <button class="px-3 py-1 text-sm bg-gray-200 text-gray-700 rounded-lg">Trimestre</button>
                            <button class="px-3 py-1 text-sm bg-gray-200 text-gray-700 rounded-lg">Année</button>
                        </div>
                    </div>
                    <div class="h-64">
                        <!-- Chart placeholder -->
                        <div class="w-full h-full flex items-center justify-center bg-gray-100 rounded-lg">
                            <p class="text-gray-500">Graphique des interventions</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Clients Section -->
            <div id="clients-section" class="p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">Gestion des Clients</h2>
                    <button onclick="openClientModal()" class="bg-primary hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-plus mr-2"></i> Nouveau Client
                    </button>
                </div>

                <div class="bg-white rounded-lg shadow overflow-hidden">
                    <div class="p-4 border-b border-gray-200">
                        <div class="flex justify-between items-center">
                            <div class="relative w-64">
                                <input type="text" placeholder="Rechercher un client..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg w-full focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                    <i class="fas fa-filter"></i> Filtres
                                </button>
                                <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                    <i class="fas fa-download"></i> Exporter
                                </button>
                            </div>
                        </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">Nom</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Contact</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Téléphone</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Écrans</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" id="clients-table-body">
                                <!-- Clients will be loaded here -->
                            </tbody>
                        </table>
                    </div>
                    <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
                        <div class="text-sm text-gray-500">
                            Affichage de <span class="font-medium">1</span> à <span class="font-medium">10</span> sur <span class="font-medium">24</span> clients
                        </div>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Précédent
                            </button>
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Suivant
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Ecrans Section -->
            <div id="ecrans-section" class="p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">Gestion des Écrans LED</h2>
                    <button onclick="openEcranModal()" class="bg-primary hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-plus mr-2"></i> Nouvel Écran
                    </button>
                </div>

                <div class="bg-white rounded-lg shadow overflow-hidden">
                    <div class="p-4 border-b border-gray-200">
                        <div class="flex justify-between items-center">
                            <div class="relative w-64">
                                <input type="text" placeholder="Rechercher un écran..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg w-full focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                            <div class="flex space-x-2">
                                <select class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100 focus:outline-none">
                                    <option>Tous les clients</option>
                                    <option>Client A</option>
                                    <option>Client B</option>
                                </select>
                                <select class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100 focus:outline-none">
                                    <option>Tous les statuts</option>
                                    <option>Actif</option>
                                    <option>En maintenance</option>
                                    <option>Hors service</option>
                                </select>
                                <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                    <i class="fas fa-download"></i> Exporter
                                </button>
                            </div>
                        </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">Référence</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Client</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dimensions</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dalles</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dernière intervention</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" id="ecrans-table-body">
                                <!-- Ecrans will be loaded here -->
                            </tbody>
                        </table>
                    </div>
                    <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
                        <div class="text-sm text-gray-500">
                            Affichage de <span class="font-medium">1</span> à <span class="font-medium">10</span> sur <span class="font-medium">24</span> écrans
                        </div>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Précédent
                            </button>
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Suivant
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Dalles Section -->
            <div id="dalles-section" class="p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">Gestion des Dalles</h2>
                    <button onclick="openDalleModal()" class="bg-primary hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-plus mr-2"></i> Nouvelle Dalle
                    </button>
                </div>

                <div class="bg-white rounded-lg shadow overflow-hidden">
                    <div class="p-4 border-b border-gray-200">
                        <div class="flex justify-between items-center">
                            <div class="relative w-64">
                                <input type="text" placeholder="Rechercher une dalle..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg w-full focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                            <div class="flex space-x-2">
                                <select class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100 focus:outline-none">
                                    <option>Tous les écrans</option>
                                    <option>LED-2456</option>
                                    <option>LED-1892</option>
                                </select>
                                <select class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100 focus:outline-none">
                                    <option>Tous les statuts</option>
                                    <option>Fonctionnelle</option>
                                    <option>En réparation</option>
                                    <option>Hors service</option>
                                </select>
                                <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                    <i class="fas fa-download"></i> Exporter
                                </button>
                            </div>
                        </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">Référence</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Écran</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Position</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Modules</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dernière intervention</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" id="dalles-table-body">
                                <!-- Dalles will be loaded here -->
                            </tbody>
                        </table>
                    </div>
                    <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
                        <div class="text-sm text-gray-500">
                            Affichage de <span class="font-medium">1</span> à <span class="font-medium">10</span> sur <span class="font-medium">48</span> dalles
                        </div>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Précédent
                            </button>
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Suivant
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Modules Section -->
            <div id="modules-section" class="p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">Gestion des Modules</h2>
                    <button onclick="openModuleModal()" class="bg-primary hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-plus mr-2"></i> Nouveau Module
                    </button>
                </div>

                <div class="bg-white rounded-lg shadow overflow-hidden">
                    <div class="p-4 border-b border-gray-200">
                        <div class="flex justify-between items-center">
                            <div class="relative w-64">
                                <input type="text" placeholder="Rechercher un module..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg w-full focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                            <div class="flex space-x-2">
                                <select class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100 focus:outline-none">
                                    <option>Toutes les dalles</option>
                                    <option>DAL-4567</option>
                                    <option>DAL-7890</option>
                                </select>
                                <select class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100 focus:outline-none">
                                    <option>Tous les types</option>
                                    <option>LED</option>
                                    <option>Contrôleur</option>
                                    <option>Alimentation</option>
                                </select>
                                <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                    <i class="fas fa-download"></i> Exporter
                                </button>
                            </div>
                        </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">Référence</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dalle</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Position</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dernière intervention</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" id="modules-table-body">
                                <!-- Modules will be loaded here -->
                            </tbody>
                        </table>
                    </div>
                    <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
                        <div class="text-sm text-gray-500">
                            Affichage de <span class="font-medium">1</span> à <span class="font-medium">10</span> sur <span class="font-medium">192</span> modules
                        </div>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Précédent
                            </button>
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Suivant
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Interventions Section -->
            <div id="interventions-section" class="p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">Gestion des Interventions</h2>
                    <button onclick="openInterventionModal()" class="bg-primary hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-plus mr-2"></i> Nouvelle Intervention
                    </button>
                </div>

                <div class="bg-white rounded-lg shadow overflow-hidden">
                    <div class="p-4 border-b border-gray-200">
                        <div class="flex justify-between items-center">
                            <div class="relative w-64">
                                <input type="text" placeholder="Rechercher une intervention..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg w-full focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                            </div>
                            <div class="flex space-x-2">
                                <select class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100 focus:outline-none">
                                    <option>Tous les types</option>
                                    <option>Mécanique</option>
                                    <option>Électronique</option>
                                    <option>Logiciel</option>
                                </select>
                                <select class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100 focus:outline-none">
                                    <option>Tous les statuts</option>
                                    <option>Planifiée</option>
                                    <option>En cours</option>
                                    <option>Terminée</option>
                                    <option>Annulée</option>
                                </select>
                                <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                    <i class="fas fa-download"></i> Exporter
                                </button>
                            </div>
                        </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">Date</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Référence</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Élément</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Description</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Technicien</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</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" id="interventions-table-body">
                                <!-- Interventions will be loaded here -->
                            </tbody>
                        </table>
                    </div>
                    <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
                        <div class="text-sm text-gray-500">
                            Affichage de <span class="font-medium">1</span> à <span class="font-medium">10</span> sur <span class="font-medium">56</span> interventions
                        </div>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Précédent
                            </button>
                            <button class="px-3 py-1 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100">
                                Suivant
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Rapports Section -->
            <div id="rapports-section" class="p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">Rapports et Statistiques</h2>
                    <button class="bg-primary hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-download mr-2"></i> Exporter
                    </button>
                </div>

                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
                    <div class="bg-white rounded-lg shadow p-6">
                        <h3 class="text-lg font-semibold mb-4">Interventions par type</h3>
                        <div class="h-64">
                            <!-- Chart placeholder -->
                            <div class="w-full h-full flex items-center justify-center bg-gray-100 rounded-lg">
                                <p class="text-gray-500">Graphique des interventions par type</p>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white rounded-lg shadow p-6">
                        <h3 class="text-lg font-semibold mb-4">Interventions par statut</h3>
                        <div class="h-64">
                            <!-- Chart placeholder -->
                            <div class="w-full h-full flex items-center justify-center bg-gray-100 rounded-lg">
                                <p class="text-gray-500">Graphique des interventions par statut</p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-lg shadow p-6 mb-6">
                    <h3 class="text-lg font-semibold mb-4">Interventions par mois</h3>
                    <div class="h-96">
                        <!-- Chart placeholder -->
                        <div class="w-full h-full flex items-center justify-center bg-gray-100 rounded-lg">
                            <p class="text-gray-500">Graphique des interventions par mois</p>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="text-lg font-semibold">Rapports personnalisés</h3>
                        <button class="bg-primary hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                            <i class="fas fa-plus mr-2"></i> Créer un rapport
                        </button>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                        <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow">
                            <div class="flex items-center mb-3">
                                <div class="w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center text-primary mr-3">
                                    <i class="fas fa-file-alt"></i>
                                </div>
                                <h4 class="font-medium">Rapport mensuel</h4>
                            </div>
                            <p class="text-sm text-gray-500 mb-3">Rapport complet des interventions du mois dernier</p>
                            <div class="flex justify-between text-sm">
                                <span class="text-gray-500">15/06/2023</span>
                                <button class="text-primary hover:text-blue-700">Télécharger</button>
                            </div>
                        </div>
                        <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow">
                            <div class="flex items-center mb-3">
                                <div class="w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center text-secondary mr-3">
                                    <i class="fas fa-file-excel"></i>
                                </div>
                                <h4 class="font-medium">Statistiques annuelles</h4>
                            </div>
                            <p class="text-sm text-gray-500 mb-3">Toutes les interventions de l'année en cours</p>
                            <div class="flex justify-between text-sm">
                                <span class="text-gray-500">01/06/2023</span>
                                <button class="text-primary hover:text-blue-700">Télécharger</button>
                            </div>
                        </div>
                        <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow">
                            <div class="flex items-center mb-3">
                                <div class="w-10 h-10 bg-purple-100 rounded-lg flex items-center justify-center text-purple-500 mr-3">
                                    <i class="fas fa-file-pdf"></i>
                                </div>
                                <h4 class="font-medium">Analyse des pannes</h4>
                            </div>
                            <p class="text-sm text-gray-500 mb-3">Analyse des pannes récurrentes et solutions</p>
                            <div class="flex justify-between text-sm">
                                <span class="text-gray-500">20/05/2023</span>
                                <button class="text-primary hover:text-blue-700">Télécharger</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Paramètres Section -->
            <div id="parametres-section" class="p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">Paramètres</h2>
                </div>

                <div class="bg-white rounded-lg shadow overflow-hidden">
                    <div class="border-b border-gray-200">
                        <nav class="flex -mb-px">
                            <button onclick="showSettingsTab('general')" class="settings-tab py-4 px-6 text-center border-b-2 font-medium text-sm border-primary text-primary">
                                Général
                            </button>
                            <button onclick="showSettingsTab('users')" class="settings-tab py-4 px-6 text-center border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
                                Utilisateurs
                            </button>
                            <button onclick="showSettingsTab('notifications')" class="settings-tab py-4 px-6 text-center border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
                                Notifications
                            </button>
                            <button onclick="showSettingsTab('backup')" class="settings-tab py-4 px-6 text-center border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
                                Sauvegarde
                            </button>
                        </nav>
                    </div>
                    <div class="p-6">
                        <div id="general-settings" class="settings-content">
                            <h3 class="text-lg font-semibold mb-4">Paramètres généraux</h3>
                            <div class="space-y-6">
                                <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Nom de l'entreprise</label>
                                        <input type="text" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" value="LED Maintenance Pro">
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Logo</label>
                                        <div class="flex items-center">
                                            <div class="w-16 h-16 rounded-lg bg-gray-200 flex items-center justify-center mr-4">
                                                <i class="fas fa-image text-gray-400"></i>
                                            </div>
                                            <button class="px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200">Changer</button>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Adresse</label>
                                    <input type="text" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" value="123 Rue des Écrans, 75000 Paris">
                                </div>
                                <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Téléphone</label>
                                        <input type="text" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" value="+33 1 23 45 67 89">
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Email</label>
                                        <input type="email" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" value="contact@ledmaintenance.com">
                                    </div>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Fuseau horaire</label>
                                    <select class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                        <option>Europe/Paris</option>
                                        <option>Europe/London</option>
                                        <option>America/New_York</option>
                                    </select>
                                </div>
                                <div class="flex justify-end">
                                    <button class="px-6 py-2 bg-primary text-white rounded-lg hover:bg-blue-700">Enregistrer</button>
                                </div>
                            </div>
                        </div>

                        <div id="users-settings" class="settings-content hidden">
                            <h3 class="text-lg font-semibold mb-4">Gestion des utilisateurs</h3>
                            <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">Nom</th>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Rôle</th>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dernière connexion</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>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <div class="flex items-center">
                                                    <div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white font-semibold mr-3">JD</div>
                                                    <div>John Doe</div>
                                                </div>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap">john.doe@example.com</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">Administrateur</span>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap">15/06/2023 14:30</td>
                                            <td class="px-6 py-4 whitespace-nowrap text-right">
                                                <button class="text-primary hover:text-blue-700 mr-3"><i class="fas fa-edit"></i></button>
                                                <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></button>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <div class="flex items-center">
                                                    <div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center text-white font-semibold mr-3">AS</div>
                                                    <div>Alice Smith</div>
                                                </div>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap">alice.smith@example.com</td>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Technicien</span>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap">14/06/2023 09:15</td>
                                            <td class="px-6 py-4 whitespace-nowrap text-right">
                                                <button class="text-primary hover:text-blue-700 mr-3"><i class="fas fa-edit"></i></button>
                                                <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></button>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <div class="flex items-center">
                                                    <div class="w-8 h-8 rounded-full bg-yellow-500 flex items-center justify-center text-white font-semibold mr-3">RJ</div>
                                                    <div>Robert Johnson</div>
                                                </div>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap">robert.j@example.com</td>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Assistant</span>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap">10/06/2023 16:45</td>
                                            <td class="px-6 py-4 whitespace-nowrap text-right">
                                                <button class="text-primary hover:text-blue-700 mr-3"><i class="fas fa-edit"></i></button>
                                                <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></button>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="mt-6">
                                <h4 class="text-md font-semibold mb-3">Ajouter un utilisateur</h4>
                                <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Nom complet</label>
                                        <input type="text" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Email</label>
                                        <input type="email" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Rôle</label>
                                        <select class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                            <option>Administrateur</option>
                                            <option>Technicien</option>
                                            <option>Assistant</option>
                                        </select>
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Mot de passe</label>
                                        <input type="password" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                                    </div>
                                </div>
                                <div class="mt-4 flex justify-end">
                                    <button class="px-6 py-2 bg-primary text-white rounded-lg hover:bg-blue-700">Ajouter</button>
                                </div>
                            </div>
                        </div>

                        <div id="notifications-settings" class="settings-content hidden">
                            <h3 class="text-lg font-semibold mb-4">Paramètres de notifications</h3>
                            <div class="space-y-6">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-2">Notifications par email</label>
                                    <div class="space-y-3">
                                        <div class="flex items-center">
                                            <input type="checkbox" id="notif-new-intervention" class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded" checked>
                                            <label for="notif-new-intervention" class="ml-2 block text-sm text-gray-700">Nouvelle intervention planifiée</label>
                                        </div>
                                        <div class="flex items-center">
                                            <input type="checkbox" id="notif-intervention-status" class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded" checked>
                                            <label for="notif-intervention-status" class="ml-2 block text-sm text-gray-700">Changement de statut d'intervention</label>
                                        </div>
                                        <div class="flex items-center">
                                            <input type="checkbox" id="notif-maintenance-alert" class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded">
                                            <label for="notif-maintenance-alert" class="ml-2 block text-sm text-gray-700">Alerte de maintenance préventive</label>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Email de notification</label>
                                    <input type="email" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" value="contact@ledmaintenance.com">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-2">Notifications dans l'application</label>
                                    <div class="space-y-3">
                                        <div class="flex items-center">
                                            <input type="checkbox" id="app-notif-new-intervention" class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded" checked>
                                            <label for="app-notif-new-intervention" class="ml-2 block text-sm text-gray-700">Nouvelle intervention assignée</label>
                                        </div>
                                        <div class="flex items-center">
                                            <input type="checkbox" id="app-notif-urgent" class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded" checked>
                                            <label for="app-notif-urgent" class="ml-2 block text-sm text-gray-700">Interventions urgentes</label>
                                        </div>
                                    </div>
                                </div>
                                <div class="flex justify-end">
                                    <button class="px-6 py-2 bg-primary text-white rounded-lg hover:bg-blue-700">Enregistrer</button>
                                </div>
                            </div>
                        </div>

                        <div id="backup-settings" class="settings-content hidden">
                            <h3 class="text-lg font-semibold mb-4">Sauvegarde et restauration</h3>
                            <div class="space-y-6">
                                <div class="bg-blue-50 border border-blue-200 rounded-lg p-4">
                                    <div class="flex">
                                        <div class="flex-shrink-0">
                                            <i class="fas fa-info-circle text-blue-500 mt-1"></i>
                                        </div>
                                        <div class="ml-3">
                                            <h3 class="text-sm font-medium text-blue-800">Information</h3>
                                            <div class="mt-2 text-sm text-blue-700">
                                                <p>Les sauvegardes sont automatiquement effectuées tous les jours à 2h00. Vous pouvez également créer une sauvegarde manuelle à tout moment.</p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-2">Dernières sauvegardes</label>
                                    <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">Date</th>
                                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
                                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Taille</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>
                                                    <td class="px-6 py-4 whitespace-nowrap">15/06/2023 02:00</td>
                                                    <td class="px-6 py-4 whitespace-nowrap">Automatique</td>
                                                    <td class="px-6 py-4 whitespace-nowrap">45.7 MB</td>
                                                    <td class="px-6 py-4 whitespace-nowrap text-right">
                                                        <button class="text-primary hover:text-blue-700 mr-3"><i class="fas fa-download"></i> Télécharger</button>
                                                        <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></button>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="px-6 py-4 whitespace-nowrap">14/06/2023 02:00</td>
                                                    <td class="px-6 py-4 whitespace-nowrap">Automatique</td>
                                                    <td class="px-6 py-4 whitespace-nowrap">45.2 MB</td>
                                                    <td class="px-6 py-4 whitespace-nowrap text-right">
                                                        <button class="text-primary hover:text-blue-700 mr-3"><i class="fas fa-download"></i> Télécharger</button>
                                                        <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></button>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="px-6 py-4 whitespace-nowrap">10/06/2023 15:30</td>
                                                    <td class="px-6 py-4 whitespace-nowrap">Manuelle</td>
                                                    <td class="px-6 py-4 whitespace-nowrap">44.9 MB</td>
                                                    <td class="px-6 py-4 whitespace-nowrap text-right">
                                                        <button class="text-primary hover:text-blue-700 mr-3"><i class="fas fa-download"></i> Télécharger</button>
                                                        <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></button>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                                    <div>
                                        <h4 class="text-md font-semibold mb-3">Créer une sauvegarde</h4>
                                        <p class="text-sm text-gray-500 mb-4">Créez une sauvegarde manuelle de toutes vos données.</p>
                                        <button class="px-6 py-2 bg-primary text-white rounded-lg hover:bg-blue-700 flex items-center">
                                            <i class="fas fa-save mr-2"></i> Créer une sauvegarde
                                        </button>
                                    </div>
                                    <div>
                                        <h4 class="text-md font-semibold mb-3">Restaurer une sauvegarde</h4>
                                        <p class="text-sm text-gray-500 mb-4">Restaurer les données à partir d'un fichier de sauvegarde.</p>
                                        <div class="flex">
                                            <input type="file" class="hidden" id="backup-file">
                                            <label for="backup-file" class="px-6 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 flex items-center cursor-pointer">
                                                <i class="fas fa-file-upload mr-2"></i> Sélectionner un fichier
                                            </label>
                                            <button class="ml-3 px-6 py-2 bg-secondary text-white rounded-lg hover:bg-green-700 flex items-center">
                                                <i class="fas fa-redo mr-2"></i> Restaurer
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Client Modal -->
    <div id="client-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-lg shadow-xl w-full max-w-2xl max-h-screen overflow-y-auto">
            <div class="p-6">
                <div class="flex justify-between items-center border-b pb-4">
                    <h3 class="text-xl font-semibold">Nouveau Client</h3>
                    <button onclick="closeClientModal()" class="text-gray-500 hover:text-gray-700">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                <div class="mt-6 space-y-4">
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Nom du client*</label>
                            <input type="text" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="Société ABC">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Contact principal*</label>
                            <input type="text" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="Jean Dupont">
                        </div>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Email*</label>
                            <input type="email" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="contact@societe-abc.com">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Téléphone*</label>
                            <input type="tel" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="01 23 45 67 89">
                        </div>
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Adresse</label>
                        <input type="text" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="123 Rue des Écrans, 75000 Paris">
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Notes</label>
                        <textarea class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" rows="3" placeholder="Informations supplémentaires..."></textarea>
                    </div>
                </div>
                <div class="mt-6 flex justify-end space-x-3">
                    <button onclick="closeClientModal()" class="px-6 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-100">Annuler</button>
                    <button class="px-6 py-2 bg-primary text-white rounded-lg hover:bg-blue-700">Enregistrer</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Ecran Modal -->
    <div id="ecran-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-lg shadow-xl w-full max-w-2xl max-h-screen overflow-y-auto">
            <div class="p-6">
                <div class="flex justify-between items-center border-b pb-4">
                    <h3 class="text-xl font-semibold">Nouvel Écran LED</h3>
                    <button onclick="closeEcranModal()" class="text-gray-500 hover:text-gray-700">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                <div class="mt-6 space-y-4">
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Client*</label>
                        <select class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                            <option>Sélectionner un client</option>
                            <option>Société ABC</option>
                            <option>Entreprise XYZ</option>
                            <option>Groupe 123</option>
                        </select>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Référence*</label>
                            <input type="text" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="LED-XXXX">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Modèle</label>
                            <input type="text" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="P3.91">
                        </div>
                    </div>
                    <div class="grid grid-c
</html>