File size: 24,057 Bytes
d7f78d9
 
 
a1be761
 
 
 
d7f78d9
 
 
 
 
 
 
a1be761
 
 
 
d7f78d9
 
 
 
a1be761
d7f78d9
 
 
a1be761
 
d7f78d9
a1be761
d7f78d9
 
 
 
 
 
 
 
 
 
a1be761
 
 
 
 
 
d7f78d9
 
 
 
 
 
a1be761
 
 
 
 
d7f78d9
 
 
 
a1be761
d7f78d9
 
 
a1be761
 
d7f78d9
a1be761
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1be761
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d7f78d9
a1be761
 
 
d7f78d9
 
 
 
 
 
 
 
 
 
a1be761
 
d7f78d9
a1be761
 
 
d7f78d9
a1be761
d7f78d9
a1be761
 
 
 
d7f78d9
 
 
611fd85
 
 
 
d7f78d9
611fd85
 
 
d7f78d9
611fd85
 
a1be761
611fd85
 
 
a1be761
d7f78d9
 
 
 
 
a1be761
 
d7f78d9
a1be761
 
611fd85
 
 
d7f78d9
611fd85
a1be761
 
 
 
 
d7f78d9
a1be761
 
 
 
 
 
 
 
d7f78d9
a1be761
d7f78d9
 
 
 
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
611fd85
 
d7f78d9
611fd85
 
 
 
 
 
d7f78d9
 
611fd85
 
 
 
 
 
 
 
 
 
 
d7f78d9
 
611fd85
d7f78d9
611fd85
d7f78d9
611fd85
 
d7f78d9
611fd85
d7f78d9
611fd85
 
d7f78d9
611fd85
 
 
 
 
 
d7f78d9
 
 
611fd85
 
 
 
 
d7f78d9
 
 
611fd85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d7f78d9
 
 
611fd85
 
 
 
d7f78d9
611fd85
 
d7f78d9
611fd85
d7f78d9
611fd85
 
d7f78d9
611fd85
 
d7f78d9
611fd85
 
d7f78d9
611fd85
 
d7f78d9
611fd85
d7f78d9
611fd85
 
d7f78d9
611fd85
d7f78d9
611fd85
 
 
d7f78d9
611fd85
d7f78d9
 
 
611fd85
 
d7f78d9
 
a1be761
 
d7f78d9
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
 
a1be761
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1be761
d7f78d9
 
 
a1be761
d7f78d9
 
 
 
a1be761
d7f78d9
 
 
a1be761
d7f78d9
 
 
 
 
a1be761
d7f78d9
 
a1be761
d7f78d9
 
 
 
a1be761
 
 
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1be761
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
 
 
 
a1be761
d7f78d9
a1be761
d7f78d9
 
 
 
 
 
 
 
 
 
 
a1be761
d7f78d9
a1be761
d7f78d9
 
 
a1be761
d7f78d9
a1be761
d7f78d9
a1be761
d7f78d9
a1be761
 
 
 
d7f78d9
a1be761
d7f78d9
 
 
 
 
 
a1be761
d7f78d9
a1be761
d7f78d9
 
 
 
 
 
a1be761
d7f78d9
 
 
 
 
 
 
 
 
a1be761
 
d7f78d9
a1be761
d7f78d9
 
 
 
a1be761
d7f78d9
a1be761
d7f78d9
 
a1be761
d7f78d9
 
 
 
a1be761
d7f78d9
 
 
 
 
 
 
 
 
 
 
a1be761
d7f78d9
 
a1be761
 
d7f78d9
 
 
a1be761
d7f78d9
 
 
 
 
 
 
 
a1be761
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1be761
 
d7f78d9
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1be761
d7f78d9
 
 
a1be761
d7f78d9
 
a1be761
d7f78d9
a1be761
d7f78d9
a1be761
d7f78d9
 
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
a1be761
d7f78d9
 
 
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
a1be761
 
d7f78d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
611fd85
d7f78d9
 
 
611fd85
d7f78d9
 
 
611fd85
d7f78d9
a1be761
d7f78d9
611fd85
d7f78d9
 
611fd85
 
d7f78d9
 
 
611fd85
 
 
a1be761
d7f78d9
 
 
 
 
 
 
 
 
a1be761
 
 
d7f78d9
 
 
 
 
a1be761
d7f78d9
 
 
a1be761
d7f78d9
 
 
 
a1be761
 
d7f78d9
 
611fd85
 
d7f78d9
611fd85
 
 
 
d7f78d9
611fd85
a1be761
d7f78d9
 
 
a1be761
 
d7f78d9
 
 
a1be761
d7f78d9
 
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
/* static/css/style.css */

/* --- Base Styles & Theme Variables --- */
:root {
    /* Light theme */
    --background-color: #f8f9fa;
    --text-color: #212529;
    --primary-color: #3498db; /* Blue */
    --secondary-color: #6c757d; /* Gray */
    --success-color: #2ecc71; /* Green */
    --danger-color: #e74c3c; /* Red */
    --warning-color: #f39c12; /* Yellow/Orange */
    --info-color: #3498db; /* Blue (can be different) */
    --muted-color: #6c757d; /* Gray */
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #f1f1f1;
    --sidebar-bg: #ffffff;
    --sidebar-border: #dee2e6;
    --sidebar-hover-bg: rgba(52, 152, 219, 0.1);
    --modal-bg: #ffffff;
    --input-bg: #ffffff;
    --input-disabled-bg: #e9ecef;
    --block-bg: #fdfdff; /* Slightly off-white for blocks */
    --block-border: #e9ecef;
    --btn-primary-bg: var(--primary-color);
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: var(--secondary-color);
    --btn-secondary-text: #ffffff;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    --ql-toolbar-bg: var(--card-bg);
    --ql-editor-bg: var(--input-bg);
    --ql-border-color: var(--border-color);
    --ql-stroke-color: var(--text-color);
    --ql-fill-color: var(--text-color);
    --ql-picker-color: var(--text-color);
    --code-bg: #e9ecef;
    --code-text: #212529;
}

[data-theme="dark"] {
    /* Dark theme */
    --background-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #3498db; /* Keep primary blue */
    --secondary-color: #555555;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --muted-color: #95a5a6;
    --border-color: #333333;
    --card-bg: #1e1e1e;
    --header-bg: #1a1a1a;
    --footer-bg: #1a1a1a;
    --sidebar-bg: #1e1e1e;
    --sidebar-border: #333333;
    --sidebar-hover-bg: rgba(52, 152, 219, 0.15);
    --modal-bg: #2c2c2c; /* Slightly lighter than card for modals */
    --input-bg: #2c2c2c;
    --input-disabled-bg: #3a3a3a;
    --block-bg: #1a1a1a; /* Darker for blocks */
    --block-border: #333333;
    --btn-primary-bg: var(--primary-color);
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: var(--secondary-color);
    --btn-secondary-text: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
    --ql-toolbar-bg: var(--card-bg);
    --ql-editor-bg: var(--input-bg);
    --ql-border-color: var(--border-color);
    --ql-stroke-color: var(--text-color);
    --ql-fill-color: var(--text-color);
    --ql-picker-color: var(--text-color);
    --code-bg: #2c2c2c;
    --code-text: #e0e0e0;
}

/* --- General Styles --- */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Roboto', 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9; /* Slightly darker blue */
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* --- Layout Components --- */

/* Header */
.main-header {
    background-color: var(--header-bg);
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}
.header-container {
    display: flex;
    align-items: center;
    max-width: 1200px; /* Limit width on large screens */
    margin: 0 auto;
    padding: 0 15px;
}
.burger-menu-button {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    line-height: 1;
    transition: color 0.3s ease;
}
.burger-menu-button:hover {
    color: var(--primary-color);
}
.site-title {
    flex-grow: 1;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
}
.site-title a {
    color: inherit; /* Inherit text color from parent */
    text-decoration: none;
}
.header-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.4rem;
    padding: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(15deg);
}

/* Main Content Area */
.main-content {
    flex: 1; /* Take up remaining vertical space */
    padding: 2rem 0;
}
.container { /* Use Bootstrap's container within main-content */
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 15px;
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    padding: 1.5rem 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    margin-top: auto; /* Push footer to bottom */
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.feedback-form {
    max-width: 400px;
    flex-grow: 1; /* Allow it to take space if needed */
}
.feedback-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}


/* --- Sidebars --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: var(--sidebar-bg);
    box-shadow: var(--shadow);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    border-right: 1px solid var(--sidebar-border);
}
.sidebar.active {
    transform: translateX(0);
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
    background-color: var(--header-bg);
    flex-shrink: 0;
}
.sidebar-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    flex-grow: 1;
    margin-left: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sidebar-back-button,
.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted-color);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}
.sidebar-back-button:hover,
.close-sidebar-btn:hover {
    color: var(--text-color);
}
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-list li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid var(--sidebar-border);
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}
.sidebar-list li:last-child {
    border-bottom: none;
}
.sidebar-list li:hover {
    background-color: var(--sidebar-hover-bg);
}
.sidebar-list li i.fa-chevron-right,
.sidebar-list li i.fa-arrow-left {
    color: var(--muted-color);
    font-size: 0.9em;
    margin-left: 0.5rem;
}
.sidebar-list li.active { /* Style for selected item */
    background-color: var(--primary-color);
    color: white;
    border-bottom-color: var(--primary-color); /* Match background */
}
.sidebar-list li.active i {
    color: white;
}

/* --- Flash Messages --- */
.flash-container {
    position: relative; /* Keep in flow */
    z-index: 1000; /* Below header/sidebar */
    margin-bottom: 1.5rem; /* Space below messages */
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 1.5rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
input[type="color"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--input-bg);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    appearance: none; /* For select */
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
input[type="file"] {
    padding: 0.5rem 0.9rem; /* Slightly less padding for file input */
}
input[type="color"] {
    padding: 0.2rem 0.4rem; /* Smaller padding for color input */
    height: calc(1.5em + 1.3rem + 2px); /* Match height of other inputs */
    vertical-align: middle;
    width: auto; /* Allow color picker to size itself */
    display: inline-block; /* Align with preview */
}
.color-preview { /* Style generated preview span */
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    border: 1px solid var(--border-color);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb, 52, 152, 219), 0.25); /* Define --primary-color-rgb if needed or hardcode */
}
textarea {
    min-height: 120px;
    resize: vertical;
}
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}
[data-theme="dark"] select {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
input:disabled, select:disabled, textarea:disabled {
    background-color: var(--input-disabled-bg);
    opacity: 0.7;
    cursor: not-allowed;
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: #212529; /* Default text color, overridden by specifics */
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn i, .btn svg { /* Icon spacing */
    margin-right: 0.5rem;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}
.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

.btn-primary {
    color: var(--btn-primary-text);
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
}
.btn-primary:hover {
    color: var(--btn-primary-text);
    background-color: #2980b9; /* Darker primary */
    border-color: #2573a7;
}
.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb, 52, 152, 219), 0.5);
}
.btn-primary:disabled {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    opacity: 0.65;
}

.btn-secondary {
    color: var(--btn-secondary-text);
    background-color: var(--btn-secondary-bg);
    border-color: var(--btn-secondary-bg);
}
.btn-secondary:hover {
    color: var(--btn-secondary-text);
    background-color: #5a6268; /* Darker secondary */
    border-color: #545b62;
}

.btn-success { color: #fff; background-color: var(--success-color); border-color: var(--success-color); }
.btn-success:hover { background-color: #25a25a; border-color: #239955; }
.btn-danger { color: #fff; background-color: var(--danger-color); border-color: var(--danger-color); }
.btn-danger:hover { background-color: #c82333; border-color: #bd2130; }
.btn-warning { color: #212529; background-color: var(--warning-color); border-color: var(--warning-color); }
.btn-warning:hover { color: #212529; background-color: #e0a800; border-color: #d39e00; }
.btn-info { color: #fff; background-color: var(--info-color); border-color: var(--info-color); }
.btn-info:hover { background-color: #2980b9; border-color: #2573a7; }

/* --- Admin Section Specific Styles --- */
.admin-container {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.admin-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.admin-sidebar {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: sticky; /* Keep sidebar visible */
    top: 80px; /* Adjust based on header height */
}
.admin-sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}
.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-nav-item {
    margin-bottom: 0.5rem;
}
.admin-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.admin-nav-link i {
    margin-right: 0.8rem;
    width: 20px; /* Align icons */
    text-align: center;
    color: var(--muted-color);
    transition: color 0.2s ease;
}
.admin-nav-link:hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--primary-color);
    text-decoration: none;
}
.admin-nav-link:hover i {
    color: var(--primary-color);
}
.admin-nav-link.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}
.admin-nav-link.active i {
    color: white;
}
.admin-card { /* Dashboard cards */
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    text-decoration: none;
    color: inherit;
}
.admin-card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.admin-stat {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Block Editor Styles (`edit_texte.html`) --- */
#blocks-container {
    margin-top: 1.5rem;
}
.block-editor {
    background-color: var(--block-bg);
    padding: 20px;
    border: 1px solid var(--block-border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative; /* For potential absolute elements inside */
    transition: all 0.3s ease; /* For ghost effect */
}
.block-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.block-handle {
    cursor: move;
    color: var(--muted-color);
    padding-right: 15px; /* More space next to handle */
    font-size: 1.2rem;
    line-height: 1;
}
.block-handle:hover {
    color: var(--primary-color);
}
.block-editor-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    flex-grow: 1;
}
.block-editor-actions .btn {
    padding: 0.3rem 0.6rem; /* Smaller padding for action buttons */
}
.delete-block-btn i {
    pointer-events: none; /* Ensure clicking icon triggers button */
    margin-right: 0; /* No extra margin for icon-only buttons */
}
.block-ghost { /* Style for SortableJS ghost */
    opacity: 0.5;
    background: var(--sidebar-hover-bg);
    border: 2px dashed var(--primary-color);
}

/* Quill Editor Integration */
.block-content-editor {
    /* The container div Quill uses */
    border-radius: 4px; /* Match form controls */
}
.ql-toolbar.ql-snow {
    border: 1px solid var(--ql-border-color);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background-color: var(--ql-toolbar-bg);
    padding: 8px;
}
.ql-container.ql-snow {
    border: 1px solid var(--ql-border-color);
    border-radius: 0 0 4px 4px;
    background-color: var(--ql-editor-bg);
    color: var(--text-color);
    min-height: 150px; /* Ensure minimum editor height */
    font-size: 1rem; /* Match base font size */
    line-height: 1.6; /* Match base line height */
}
/* Quill Theme Colors */
.ql-snow .ql-stroke { stroke: var(--ql-stroke-color); }
.ql-snow .ql-fill { fill: var(--ql-fill-color); }
.ql-snow .ql-picker-label, .ql-snow .ql-picker-options .ql-picker-item { color: var(--ql-picker-color); }
/* Quill Code Block */
.ql-snow .ql-syntax {
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 0.5em 1em;
    border-radius: 3px;
    white-space: pre-wrap;
    font-family: monospace;
}
/* Quill Focus Outline */
.ql-container.ql-snow:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb, 52, 152, 219), 0.25);
}

/* Block Image Styles */
.block-image-container {
    margin-bottom: 10px;
    margin-top: 10px;
}
.image-preview {
    max-height: 150px;
    max-width: 100%; /* Prevent overflow */
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    display: block; /* Remove extra space below */
}
#upload-image-preview { /* Preview in upload form */
    max-height: 100px;
    margin-bottom: 10px;
    display: block;
     border: 1px solid var(--border-color);
     border-radius: 4px;
     background-color: var(--background-color);
}
.image-position-controls {
    transition: opacity 0.3s ease;
}
.image-position-controls.d-none {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
}


/* --- Image Gallery Modal --- */
.modal-content {
    background-color: var(--modal-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
}
.modal-footer {
    border-top: 1px solid var(--border-color);
}
.btn-close { /* Style Bootstrap's close button */
    filter: var(--text-color) == '#e0e0e0' ? invert(1) grayscale(100%) brightness(200%) : none;
}
.gallery-item {
    text-align: center;
    margin-bottom: 1rem;
}
.gallery-image {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent; /* Border shown on hover */
    padding: 3px;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    background-color: var(--background-color); /* Background behind transparent images */
}
.gallery-image:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--hover-shadow);
}
.gallery-item small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted-color);
    word-wrap: break-word;
    line-height: 1.3;
}

/* --- Alerts --- */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
    position: relative;
}
.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}

.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
[data-theme="dark"] .alert-success { color: #75b798; background-color: #192c23; border-color: #254134; }
.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
[data-theme="dark"] .alert-danger { color: #ea868f; background-color: #341a1d; border-color: #50272c; }
.alert-warning { color: #664d03; background-color: #fff3cd; border-color: #ffecb5; }
[data-theme="dark"] .alert-warning { color: #ffda6a; background-color: #33270a; border-color: #4d3b0f; }
.alert-info { color: #055160; background-color: #cff4fc; border-color: #b6effb; }
[data-theme="dark"] .alert-info { color: #6edff6; background-color: #0f2d36; border-color: #164350; }


/* --- Utility Classes --- */
.text-center { text-align: center !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.ml-2 { margin-left: 0.5rem !important; } /* Used on remove image button */
.float-end { float: right !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.img-fluid { max-width: 100%; height: auto; }
.text-muted { color: var(--muted-color) !important; }

/* --- Responsiveness --- */
@media (max-width: 992px) {
    .admin-sidebar {
        position: static; /* Unstick sidebar */
        margin-bottom: 2rem;
    }
    .row > .col-md-3, .row > .col-md-9 { /* Reset Bootstrap columns */
        width: 100%;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        max-width: 320px;
    }
    .site-title {
        font-size: 1.5rem;
        text-align: left;
        margin-left: 0.5rem;
    }
    .header-actions {
        margin-left: auto; /* Push actions to the right */
    }
    .admin-title {
        font-size: 1.6rem;
    }
    .btn-lg { /* Make large buttons slightly smaller */
         padding: 0.7rem 1.3rem;
         font-size: 1.1rem;
    }
     /* Adjust modal size for smaller screens if XL is too big */
     .modal-xl { max-width: 95%; }
}

@media (max-width: 576px) {
     .header-container, .container, .footer-content {
        padding: 0 10px; /* Less padding on very small screens */
     }
    .site-title {
        font-size: 1.3rem;
    }
    .burger-menu-button {
        font-size: 1.4rem;
        margin-right: 0.5rem;
    }
    .theme-toggle {
        font-size: 1.2rem;
    }
    .admin-container, .admin-sidebar {
        padding: 1.5rem;
    }
    .block-editor {
        padding: 15px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .feedback-form {
        width: 100%;
        margin-top: 1.5rem;
    }
     /* Further reduce modal width */
     .modal-xl { max-width: 100%; margin: 0.5rem; }
     .modal-dialog { margin: 0.5rem; }
}

/* --- Animations (Optional) --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.5s ease-in forwards; }

@keyframes slideInUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.slide-in-up { animation: slideInUp 0.5s ease-out forwards; }