-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.css
More file actions
532 lines (465 loc) · 12.2 KB
/
Copy pathdashboard.css
File metadata and controls
532 lines (465 loc) · 12.2 KB
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
/* dashboard.css */
/* Styles généraux pour le corps de la page */
.dashboard-body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: var(--text-color);
line-height: 1.6;
background-color: var(--bg-color);
overflow-x: hidden;
}
/* Conteneur principal pour le tableau de bord */
.container_dash {
width: 95%;
max-width: 1800px;
margin: 10px auto;
padding: 10px 20px;
background-color: var(--container-bg);
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
border: 1px solid var(--border-color);
backdrop-filter: blur(10px);
}
/* Barre de titre */
#title-bar {
display: flex;
justify-content: space-between;
align-items: center;
background: #1a1f26;
padding: 5px 20px;
color: white;
font-size: 1em;
font-weight: bold;
border: 1px solid #6e6c6c; /* Gris apparent */
border-radius: 12px;
margin: 5px auto;
width: 95%;
max-width: 1800px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
#title-text {
font-family: 'Segoe UI', 'Inter', sans-serif !important; /* Retour au style moderne Sans-Serif */
color: #ffffff !important; /* Couleur blanche comme demandé */
font-size: 1.6em;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
letter-spacing: 1px;
}
/* Arrière-plan avec slider d'images */
#background-slider {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
#background-slider img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 1.5s ease-in-out;
}
#background-slider img.active {
opacity: 0.7; /* Opacité pour un effet subtil */
}
/* Styles de la navigation */
nav {
background-color: transparent;
padding: 0;
border-radius: 10px;
margin-bottom: 25px;
position: relative;
z-index: 999998;
}
.nav-container-vertical {
display: flex;
flex-direction: column;
gap: 8px; /* Réduit de 15px */
}
.nav-exploitation-row, .nav-bottom-row {
display: flex;
justify-content: space-around;
align-items: center;
gap: 10px;
flex-wrap: wrap;
border: 1px solid #4a4a4a; /* Gris apparent */
padding: 8px;
border-radius: 12px;
background: #1e252e;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
/* Styles pour les menus déroulants */
.dropdown {
position: relative;
display: inline-block;
z-index: 10000;
}
/* Mention de notification pour les dérangements */
.notification-badge {
position: absolute;
top: -20px;
left: 50%;
transform: translateX(-50%);
background-color: #ff3b30;
color: white;
font-size: 11px;
font-weight: bold;
white-space: nowrap;
padding: 3px 10px;
border-radius: 5px;
display: none;
align-items: center;
justify-content: center;
border: 1px solid #ffffff;
box-shadow: 0 0 15px rgba(255, 59, 48, 1);
z-index: 2147483647; /* S'assurer qu'il passe devant tout */
pointer-events: none;
animation: pulse-notification 1.5s infinite;
}
@keyframes pulse-notification {
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
.dropbtn {
background-color: transparent;
color: white;
padding: 12px 18px;
font-size: 1em;
border: none;
cursor: pointer;
border-radius: 8px;
transition: background-color 0.3s, transform 0.2s;
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
position: relative; /* Pour positionner la mention de notification */
}
.dropbtn:hover {
background-color: rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
}
.dropdown-content {
display: none;
position: fixed !important;
background-color: #1e252e;
min-width: 225px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
z-index: 2147483647 !important;
transform: translateZ(9999px);
border-radius: 12px;
overflow: hidden;
border: 1px solid #4a4a4a; /* Gris apparent */
padding: 5px 0;
backdrop-filter: blur(10px);
}
.dropdown-content a {
color: #e0e0e0;
padding: 12px 20px;
text-decoration: none;
display: block;
transition: all 0.3s ease;
font-weight: 500;
text-align: center; /* Centrer les titres */
border-radius: 10px;
}
.dropdown-content a:hover {
background-color: rgba(255, 255, 255, 0.05);
color: #07ed1e; /* Accent bleu */
/* padding-left: 25px; supprimé pour garder le centrage */
}
.dropdown:hover .dropdown-content {
display: block;
}
.arrow {
font-size: 0.8em;
margin-left: 5px;
transition: transform 0.3s;
}
.dropdown:hover .arrow {
transform: rotate(180deg);
}
/* Styles pour les liens directs dans la navigation */
.nav-link-direct {
color: white;
padding: 12px 18px;
text-decoration: none;
border-radius: 8px;
transition: background-color 0.3s, transform 0.2s;
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
}
.nav-link-direct:hover {
background-color: rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
}
/* Ligne inférieure de la navigation */
.nav-bottom-row {
background: linear-gradient(135deg, #004c80, #005f99);
justify-content: space-between;
}
#welcome-message-container {
flex-grow: 1;
text-align: right;
padding-right: 20px;
}
#welcome-message-nav {
color: white;
font-weight: bold;
font-size: 1.1em;
background-color: rgba(0, 0, 0, 0.2);
padding: 10px 20px;
border-radius: 8px;
display: inline-block;
}
.nav-utility-block {
display: flex;
gap: 15px;
}
.nav-utility-row {
display: flex;
gap: 10px;
align-items: center;
max-width: fit-content;
margin: 0 auto;
}
.nav-utility-row a, .auth-button a {
color: white;
padding: 10px 15px;
text-decoration: none;
border-radius: 8px;
transition: background-color 0.3s, transform 0.2s;
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
}
.nav-utility-row a:hover, .auth-button a:hover {
background-color: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
#logout-link-container a {
background-color: #e74c3c;
}
#logout-link-container a:hover {
background-color: #c0392b;
}
/* Contenu principal du tableau de bord */
.main-dashboard-content {
padding: 10px 20px; /* Réduit verticalement */
background-color: rgba(20, 24, 31, 0.6);
border-radius: 15px;
margin-top: 10px; /* Réduit de 20px */
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.dashboard-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px; /* Réduit de 25px */
}
.dashboard-card {
background: #1a1f26;
padding: 15px; /* Réduit de 25px */
border-radius: 16px;
text-align: center;
text-decoration: none;
color: #e0e0e0;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.3);
position: relative;
overflow: hidden;
}
.dashboard-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 3px; /* Réduit de 4px */
background: #0077b3;
}
.dashboard-card:hover {
transform: translateY(-5px); /* Réduit de -10px */
background: #232932;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
border-color: rgba(255, 255, 255, 0.1);
}
.dashboard-card h3 .card-icon {
font-size: 2.5em; /* Augmenté pour plus de visibilité dans l'en-tête */
margin-bottom: 0; /* Pas de marge car c'est un item flex de h3 */
margin-right: 10px;
}
.card-icon {
color: #0077b3;
display: flex;
align-items: center;
justify-content: center;
filter: drop-shadow(0 0 8px rgba(0, 119, 179, 0.4));
transition: all 0.3s ease;
}
/* Taille réduite pour les icônes dans les boutons */
button .card-icon {
font-size: 1.2em;
margin-right: 5px;
}
.dashboard-card:hover .card-icon {
transform: scale(1.1);
filter: drop-shadow(0 0 12px rgba(0, 119, 179, 0.6));
}
/* Couleurs spécifiques pour les icônes des cartes */
.client-card .card-icon { color: #3498db; }
.site-card .card-icon { color: #e67e22; }
.equipement-card .card-icon { color: #9b59b6; }
.Jointure .card-icon { color: #f1c40f; }
.derangements-card .card-icon { color: #e74c3c; }
.documentation-card .card-icon { color: #2ecc71; }
.card-icon svg {
width: 1em;
height: 1em;
display: block;
}
/* S'assurer que le trait est visible pour les icônes de type stroke */
.card-icon svg[stroke="currentColor"] {
stroke: currentColor;
}
/* S'assurer que le remplissage est appliqué par défaut sauf si spécifié autrement */
.card-icon svg:not([fill="none"]) {
fill: currentColor;
}
.dashboard-card h3 {
margin: 5px 0; /* Réduit de 10px */
font-size: 1.3em; /* Réduit de 1.5em */
font-weight: 600;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.dashboard-card p {
margin: 5px 0;
font-size: 1em;
color: #b0b0b0;
}
/* Style des compteurs (nombres) dans les cartes du tableau de bord */
.dashboard-card p span[id^="total-"] {
color: #39ff14 !important; /* Vert fluorescent */
font-weight: 800;
font-size: 1.2em; /* Un peu plus grand pour être attractif */
text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
background: rgba(0, 0, 0, 0.2);
padding: 2px 8px;
border-radius: 4px;
}
.card-actions {
margin-top: 15px; /* Réduit de 25px */
display: flex;
justify-content: center;
gap: 10px;
}
.card-actions button {
background-color: #2c3e50;
color: #ecf0f1;
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 8px 15px; /* Réduit de 10px 20px */
border-radius: 8px; /* Réduit de 10px */
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
display: flex;
align-items: center;
gap: 6px; /* Réduit de 8px */
font-size: 0.85em; /* Réduit de 0.9em */
}
.card-actions button:hover {
background-color: #34495e;
transform: scale(1.05);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
/* Couleurs spécifiques pour les cartes (ligne supérieure) */
.client-card::before { background: #3498db; }
.client-card .card-icon { color: #3498db; }
.site-card::before { background: #2ecc71; }
.site-card .card-icon { color: #2ecc71; }
.equipement-card::before { background: #f1c40f; }
.equipement-card .card-icon { color: #f1c40f; }
.Jointure::before { background: #9b59b6; }
.Jointure .card-icon { color: #9b59b6; }
.derangements-card::before { background: #e74c3c; }
.derangements-card .card-icon { color: #e74c3c; }
.documentation-card::before { background: #1abc9c; }
.documentation-card .card-icon { color: #1abc9c; }
/* Styles pour les boutons d'authentification (admin) */
.auth-button {
display: none; /* Caché par défaut */
}
/* Responsive Design */
@media (max-width: 1200px) {
.container_dash {
width: 98%;
}
.nav-exploitation-row, .nav-bottom-row {
flex-direction: column;
align-items: stretch;
}
.dropdown, .nav-link-direct {
width: 100%;
text-align: left;
}
.dropbtn {
justify-content: space-between;
}
}
@media (max-width: 768px) {
#title-bar {
flex-direction: column;
text-align: center;
gap: 10px;
}
.dashboard-cards {
grid-template-columns: 1fr;
}
}
/* Styles pour les libellés des modales (ajouté) */
.stat-label {
color: var(--text-color);
}
.client-name {
color: var(--text-color);
}
.type-name {
color: var(--text-color);
}
.type-percentage {
color: var(--text-color);
}
/* Styles pour les bordures des cartes de modales en mode light */
html.light-mode .info-group,
html.light-mode .institution-item,
html.light-mode .stat-card,
html.light-mode .type-item {
border: 1px solid #000 !important;
}
/* Styles pour le footer */
.main-footer {
text-align: center;
padding: 15px 0;
color: #888;
font-size: 0.9em;
margin-top: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.3);
width: 100%;
}
.main-footer p {
margin: 0;
}