-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathView_feedback.php
More file actions
1271 lines (1190 loc) · 47.9 KB
/
Copy pathView_feedback.php
File metadata and controls
1271 lines (1190 loc) · 47.9 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
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
<?php
ob_start(); // Start output buffering to prevent headers from being sent prematurely
error_reporting(E_ALL);
ini_set('display_errors', 1);
include("doctorHeader.php"); // Include the doctor header for consistent navigation and styling if needed
?>
<style>
/* CSS Variables for consistent styling and easy modification */
:root {
/* Primary Color Scheme */
--primary-blue: #0d6efd;
--secondary-blue: #4a90e2;
--dark-blue: #0a58ca;
/* Body Background Gradient: Mixed Light Rainbow with Rose Hues */
--body-bg-1: #FFE7F0; /* Very light rose */
--body-bg-2: #F0E7FF; /* Light lavender */
--body-bg-3: #E7FFF0; /* Light mint */
--body-bg-4: #FFF0E7; /* Light peach */
--body-bg-5: #E7F0FF; /* Light sky blue */
--body-bg-6: #F0FFE7; /* Light green-yellow */
/* Container (Card) Background Gradient: Light Orange and Rose */
--container-card-bg-gradient-start: #FFDAB9; /* Light Peach/Orange */
--container-card-bg-gradient-end: #FFB6C1; /* Light Rose/Pink */
--container-card-border-color: rgba(255, 192, 203, 0.6); /* Light Pink Border */
/* Text Colors */
--text-color-dark: #2c3e50;
--text-color-medium: #555;
--text-color-light: #888;
--text-highlight-blue: #007bff;
--text-highlight-green: #28a745;
/* Card Elements */
--card-bg: rgba(255, 255, 255, 0.98); /* Slightly transparent white for cards */
--card-border: rgba(0, 0, 0, 0.05);
--shadow-light: 0 20px 60px rgba(0,0,0,0.15);
--shadow-hover: 0 35px 90px rgba(0,0,0,0.35);
--border-radius-xl: 45px;
--padding-xl: 4.5rem;
--transition-speed: 0.8s;
--transition-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
/* Special Effects Colors */
--glow-color: #ff99cc; /* Soft pink glow */
--shine-color: rgba(255, 255, 255, 0.98); /* White for glitter effect */
--water-crystal-blue: rgba(255, 153, 204, 0.8); /* Light rose for water effect */
--water-crystal-blue-dark: rgba(255, 102, 178, 0.6); /* Slightly darker rose for water effect */
}
/* Global Box Sizing and Font Family */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
/* Smooth Scrolling for Anchor Links */
html {
scroll-behavior: smooth;
}
/* Body Styling: Mixed Light Rainbow with Rose Hues and Shining Star Effect */
body {
/* Layered backgrounds: Image, then Gradient on top. */
background:
linear-gradient(135deg,
var(--body-bg-1) 0%,
var(--body-bg-2) 16%,
var(--body-bg-3) 33%,
var(--body-bg-4) 50%,
var(--body-bg-5) 66%,
var(--body-bg-6) 83%,
var(--body-bg-1) 100%
),
url('https://cdn.pixabay.com/photo/2023/12/06/19/00/dog-8434227_1280.jpg'); /* ADD YOUR BODY BACKGROUND IMAGE HERE */
background-size: 1500% 1500%, cover; /* Gradient size, Image size */
background-position: 0% 50%, center center; /* Gradient position, Image position */
background-blend-mode: overlay, normal; /* Blend gradient over image */
background-attachment: fixed; /* Keep background image fixed */
animation: gradientBackground 150s ease infinite alternate, pulseBackground 200s linear infinite; /* Slower, more ethereal animations */
overflow-x: hidden; /* Prevent horizontal scrollbar */
color: var(--text-color-medium);
line-height: 2;
position: relative;
padding: 40px;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
filter: saturate(1.03) contrast(1.03); /* Subtle filter for haziness */
cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ff69b4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-pointer"><path d="M14 2L20 8V22H4V8L10 2H14Z"></path><line x1="12" y1="2" x2="12" y2="8"></line><line x1="4" y1="8" x2="20" y2="8"></line></svg>') 12 12, auto; /* Rose-colored cursor */
}
/* Keyframe Animations for Body Background */
@keyframes gradientBackground {
0% { background-position: 0% 50%, center center; }
50% { background-position: 100% 50%, center center; }
100% { background-position: 0% 50%, center center; }
}
@keyframes pulseBackground {
0% { filter: brightness(1); }
50% { filter: brightness(1.01); } /* Very subtle pulse */
100% { filter: brightness(1); }
}
/* Shining Star Effect Overlay for Body */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 1px, transparent 1px),
radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 1px, transparent 1px),
radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 1px, transparent 1px);
background-size: 120px 120px, 150px 150px, 100px 100px;
animation: starTwinkle 10s linear infinite alternate, subtleZoom 400s linear infinite;
z-index: -1;
opacity: 0.7;
}
/* Keyframe Animations for Star Effect */
@keyframes starTwinkle {
0%, 100% { opacity: 0.7; }
50% { opacity: 0.9; }
}
@keyframes subtleZoom {
0% { background-size: 120px 120px, 150px 150px, 100px 100px; }
50% { background-size: 123px 123px, 154px 154px, 103px 103px; }
100% { background-size: 120px 120px, 150px 150px, 100px 100px; }
}
/* Main Container Wrapper Styling */
.container-wrapper {
width: 100%;
max-width: 1900px; /* Extended max-width for full size */
margin: 80px auto;
background: linear-gradient(135deg, #FFC0CB, #FF69B4); /* Light rose for overall wrapper */
border-radius: var(--border-radius-xl);
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
padding: 60px;
overflow: hidden;
position: relative;
z-index: 1;
transform: translateZ(0);
border: 3px solid rgba(255, 192, 203, 0.6);
backdrop-filter: blur(12px) brightness(1.05);
perspective: 1000px;
transform-style: preserve-3d;
}
/* Glitter Shining Blade Effect on Container Click */
.container-wrapper::before {
content: '';
position: absolute;
top: 0;
left: -300%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, var(--shine-color), transparent);
transform: skewX(-45deg);
transition: left 2s cubic-bezier(0.25, 0.8, 0.25, 1);
pointer-events: none;
z-index: 3;
opacity: 1;
}
/* Slicing Waterfall Effect (Crystal Water Effect) on Container Click */
.container-wrapper::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: radial-gradient(circle at center,
var(--water-crystal-blue) 0%,
var(--water-crystal-blue-dark) 30%,
transparent 90%
);
opacity: 0;
transform: translate(-50%, -50%) scale(0);
transition: transform 1.5s ease-out, opacity 1.5s ease-out;
pointer-events: none;
mix-blend-mode: screen;
z-index: 4;
}
/* Active states for click effects */
.container-wrapper.shining::before {
left: 300%;
}
.container-wrapper.shining::after {
width: 500%;
height: 500%;
opacity: 1;
}
/* Page Header Styling */
.page-header {
text-align: center;
margin-bottom: 100px;
padding: 60px;
background: rgba(255,255,255,0.99);
border-radius: var(--border-radius-xl);
box-shadow: 0 25px 70px rgba(0,0,0,0.35);
backdrop-filter: blur(22px) brightness(1.08);
border: 3px solid rgba(255,255,255,0.95);
animation: fadeIn 2s ease-out, headerGlow 5s infinite alternate;
position: relative;
overflow: hidden;
transform-style: preserve-3d;
perspective: 800px;
}
/* Keyframe Animations for Header */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(40px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes headerGlow {
0%, 100% { box-shadow: 0 25px 70px rgba(0,0,0,0.35), 0 0 25px var(--glow-color); }
50% { box-shadow: 0 25px 70px rgba(0,0,0,0.45), 0 0 40px var(--glow-color); }
}
/* Heading Text Styling with Flying Effect */
.page-header h1 {
font-size: 6rem;
background: linear-gradient(to right, #ff69b4, #ff1493, #ffa07a, #ff7f50, #da70d6, #ba55d3); /* A more vibrant rose/orange rainbow gradient */
background-size: 400% auto;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: shimmer 8s ease-in-out infinite, textGlow 4s infinite alternate, flyIn 3s ease-out; /* Added flyIn */
margin-bottom: 35px;
font-weight: 900;
letter-spacing: 5px;
text-shadow: 6px 6px 25px rgba(0,0,0,0.3);
position: relative;
display: inline-block;
transform: translateZ(20px);
}
/* Keyframe Animations for Heading Text */
@keyframes flyIn {
0% { transform: translateY(-100px) scale(0.5) rotateX(90deg); opacity: 0; }
100% { transform: translateY(0) scale(1) rotateX(0deg); opacity: 1; }
}
@keyframes shimmer {
0%, 100% { background-position: -600% 0; }
50% { background-position: 600% 0; }
}
@keyframes textGlow {
0%, 100% { text-shadow: 6px 6px 25px rgba(0,0,0,0.3), 0 0 15px rgba(255,105,180,0.7); }
50% { text-shadow: 6px 6px 30px rgba(0,0,0,0.4), 0 0 25px rgba(255,105,180,1); }
}
/* Paragraph Styling for Header Message */
.page-header p {
font-size: 2rem;
color: var(--text-color-dark);
max-width: 1200px;
margin: 0 auto;
line-height: 2.1;
text-shadow: 1px 1px 6px rgba(0,0,0,0.15);
transform: translateZ(10px);
}
/* Slider Container Styling */
.slider-container {
overflow-x: hidden; /* Changed to hidden for controlled JS scrolling */
padding-bottom: 70px;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
position: relative;
padding: 60px 0;
box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
border-radius: var(--border-radius-xl);
background: rgba(255,255,255,0.95);
border: 3px solid rgba(255,255,255,0.9);
transform-style: preserve-3d;
perspective: 900px;
}
/* Slider Track for Automatic Sliding */
.slider-track {
display: flex;
gap: 80px;
padding: 40px;
min-width: fit-content;
transform-style: preserve-3d;
animation: autoScroll 60s linear infinite; /* Automatic sliding */
}
/* Keyframe Animation for Automatic Carousel Scroll (first to last, then last to first) */
@keyframes autoScroll {
0% { transform: translateX(0); }
50% { transform: translateX(calc(-100% + 100vw)); } /* Scrolls to the end, adjusted for viewport width */
100% { transform: translateX(0); } /* Scrolls back to the start */
}
/* Individual Slider Card Styling with Multi-gradient and Background Image */
.slider-card {
flex: 0 0 700px; /* Increased flex-basis for wider cards */
/* Layered backgrounds: Image (semi-transparent), then Gradient on top. */
background:
linear-gradient(135deg,
rgba(255,218,185,0.9), /* Light Peach/Orange with opacity */
rgba(255,182,193,0.9) /* Light Rose/Pink with opacity */
),
url('path/to/your/card-bg-image.png'); /* ADD YOUR CARD BACKGROUND IMAGE HERE */
background-size: cover, cover; /* Gradient size, Image size */
background-position: center center, center center; /* Gradient position, Image position */
background-blend-mode: overlay, normal; /* Blend gradient over image */
background-repeat: no-repeat;
border-radius: var(--border-radius-xl);
padding: var(--padding-xl);
position: relative;
box-shadow: var(--shadow-light);
transition: transform var(--transition-speed) var(--transition-ease),
box-shadow var(--transition-speed) var(--transition-ease),
background var(--transition-speed) var(--transition-ease),
border-color var(--transition-speed) var(--transition-ease);
overflow: visible;
border: 3px solid var(--container-card-border-color);
cursor: pointer;
scroll-snap-align: start;
display: flex;
flex-direction: column;
justify-content: space-between;
z-index: 5;
color: #333;
text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
transform-style: preserve-3d;
transform: translateZ(0);
}
/* Hover Effects for Cards */
.slider-card:hover {
transform: translateY(-30px) scale(1.08) rotateX(5deg);
box-shadow: var(--shadow-hover);
background:
linear-gradient(135deg,
rgba(255,192,203,0.9), /* Lighter rose with opacity */
rgba(238,130,238,0.9), /* Violet with opacity */
rgba(255,105,180,0.9) /* Hot pink with opacity */
),
url('path/to/your/card-bg-image.png'); /* Same card image on hover */
background-size: cover, cover;
background-position: center center, center center;
background-blend-mode: overlay, normal;
border-color: rgba(255,105,180,0.5);
}
/* Glitter Effect on Card Click */
.slider-card::before {
content: '';
position: absolute;
top: 0;
left: -300%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, var(--shine-color), transparent);
transform: skewX(-35deg);
transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
pointer-events: none;
z-index: 10;
opacity: 0.95;
}
/* Slicing Waterfall Effect (Crystal Water) on Card Click */
.slider-card::after {
content: '';
position: absolute;
top: var(--mouse-y, 50%);
left: var(--mouse-x, 50%);
width: 0;
height: 0;
border-radius: 50%;
background: radial-gradient(circle at center, rgba(255, 105, 180, 0.6), transparent 85%);
opacity: 0;
transform: translate(-50%, -50%) scale(0);
transition: transform 1s ease-out, opacity 1s ease-out;
pointer-events: none;
z-index: 9;
mix-blend-mode: screen;
}
/* Active states for card click effects */
.slider-card.clicked::before {
left: 300%;
}
.slider-card.clicked::after {
width: 450%;
height: 450%;
opacity: 1;
}
/* Icon Container Styling */
.icon-container {
width: 140px;
height: 140px;
background: linear-gradient(135deg, #FF69B4, #C71585); /* Rose shades for icon container */
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 5rem;
margin: 0 auto 45px;
box-shadow: 0 18px 40px rgba(255, 105, 180, 0.8); /* Rose shadow */
transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
position: relative;
overflow: hidden;
transform-style: preserve-3d;
transform: translateZ(30px);
}
/* Icon Pulse Animation */
.icon-container::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle at center, rgba(255,255,255,0.6), transparent 70%);
animation: iconPulse 4.5s infinite alternate;
}
@keyframes iconPulse {
0% { transform: scale(0.8); opacity: 0.8; }
50% { transform: scale(1.2); opacity: 1; }
100% { transform: scale(0.8); opacity: 0.8; }
}
/* Icon Hover Effect */
.slider-card:hover .icon-container {
transform: rotate(35deg) scale(1.35) translateZ(40px);
}
/* Card Title (Feedback ID) Styling */
.slider-card h2 {
font-size: 2.5rem;
color: var(--text-color-dark);
margin-bottom: 20px;
text-align: center;
font-weight: 900;
text-shadow: 1px 1px 5px rgba(0,0,0,0.15);
line-height: 1.5;
transform: translateZ(15px);
}
/* Paragraph Styling for Feedback Details */
.slider-card p {
color: #333; /* Solid color for text */
font-size: 1.3rem;
margin-bottom: 15px;
line-height: 2;
text-align: justify;
flex-grow: 1;
overflow: visible;
text-overflow: unset;
display: block;
-webkit-line-clamp: unset;
-webkit-box-orient: unset;
transform: translateZ(5px);
font-weight: bold; /* Make text bold */
}
/* Adjustments for icons and separate lines in card details */
.slider-card p i {
font-size: 1.1em; /* Slightly larger icon relative to text */
vertical-align: middle;
}
.slider-card p.indented {
margin-left: 30px; /* Indent for the second line of details */
margin-top: -15px; /* Pull up to reduce vertical space between related lines */
}
/* Strong/Highlighted Text Styling for IDs and Names */
.slider-card p strong {
color: var(--text-highlight-blue); /* Blue for IDs */
font-weight: 700;
text-shadow: 0 0 5px rgba(0,123,255,0.2);
}
/* Status Specific Styling */
.slider-card p span.status-completed { color: #28a745; } /* Green */
.slider-card p span.status-pending { color: #ffc107; } /* Yellow */
.slider-card p span.status-resolved { color: #17a2b8; } /* Cyan */
.slider-card p span.status-new { color: #dc3545; } /* Red */
/* View Button Styling */
.view-btn {
background: linear-gradient(45deg, #17a2b8, #138496); /* Cyan gradient */
color: #fff;
border: none;
padding: 12px 30px;
font-size: 1.2rem;
margin-top: 25px;
border-radius: 10px;
text-decoration: none;
display: block; /* Make it a block to take full width of container, then center */
width: fit-content; /* Adjust width to content */
margin-left: auto; /* Center the button */
margin-right: auto; /* Center the button */
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
transition: all 0.4s ease;
text-align: center;
transform: translateZ(10px);
}
.view-btn:hover {
background: linear-gradient(45deg, #138496, #17a2b8);
transform: translateY(-5px) translateZ(15px);
box-shadow: 0 10px 25px rgba(23,162,184,0.5);
}
/* Card Footer Styling for Social Links */
.slider-card footer {
font-size: 1.2rem;
color: var(--text-color-dark);
display: flex;
flex-direction: column; /* Stack social links */
align-items: center;
margin-top: 35px;
border-top: 3px dashed rgba(0,0,0,0.25);
padding-top: 30px;
gap: 25px;
transform: translateZ(10px);
}
/* Social Links Styling */
.card-social-links {
display: flex;
justify-content: center; /* Center social links */
gap: 25px; /* Adjusted gap for better spacing */
margin-top: 0; /* Removed extra margin */
width: 100%; /* Ensure social links take full width for centering */
}
.card-social-links a {
color: var(--primary-blue);
font-size: 2rem;
transition: color 0.6s ease, transform 0.6s ease, text-shadow 0.6s ease;
text-decoration: none;
transform: translateZ(5px);
}
.card-social-links a:hover {
transform: translateY(-12px) scale(1.7) translateZ(10px);
color: var(--dark-blue);
text-shadow: 0 10px 20px rgba(0,123,255,0.6);
}
/* Popup Message Styling */
#popup-message {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: linear-gradient(45deg, #f0f9ff, #c9e9ff);
color: var(--text-color-dark);
padding: 40px 60px;
border-radius: 25px;
box-shadow: 0 15px 40px rgba(0,0,0,0.4);
font-size: 2.5rem;
font-weight: bold;
text-align: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: opacity 0.5s ease, visibility 0.5s ease;
text-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}
#popup-message.show {
opacity: 1;
visibility: visible;
}
/* Firework Canvas Styling */
#fireworkCanvas {
position: fixed;
top: 0;
left: 0;
z-index: 999; /* Below modal, above other content */
pointer-events: none; /* Allows clicks to pass through */
}
/* Footer Social Links Styling */
.footer-social-links {
display: flex;
justify-content: center;
gap: 60px; /* Increased gap for better spacing */
margin-top: 150px; /* Increased margin to separate from content */
padding-top: 80px; /* Increased padding */
border-top: 2px solid rgba(0,0,0,0.1);
width: 100%;
max-width: 1200px;
}
.footer-social-links a {
color: var(--primary-blue);
font-size: 3rem; /* Larger icons */
transition: color 0.6s ease, transform 0.6s ease, text-shadow 0.6s ease;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
width: 80px; /* Make clickable area larger */
height: 80px;
border-radius: 50%;
background: rgba(255,255,255,0.8);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.footer-social-links a:hover {
transform: translateY(-15px) scale(1.8) rotate(10deg); /* More pronounced hover */
color: var(--dark-blue);
text-shadow: 0 12px 25px rgba(0,123,255,0.7);
background: rgba(255,255,255,1);
box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}
/* Main Footer Styling */
footer {
text-align: center;
margin-top: 50px;
padding: 30px;
font-size: 1.1rem;
color: var(--text-color-dark);
background: rgba(255,255,255,0.8);
border-radius: 15px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
width: 100%;
max-width: 1000px;
}
/* Responsive Adjustments */
@media (max-width: 1800px) {
.container-wrapper {
max-width: 1700px;
padding: 60px;
}
.page-header h1 {
font-size: 5rem;
}
.page-header p {
font-size: 1.7rem;
}
.slider-card {
flex: 0 0 600px; /* Adjusted for larger cards */
padding: 4rem;
}
}
@media (max-width: 1500px) {
.container-wrapper {
max-width: 1400px;
padding: 55px;
}
.page-header h1 {
font-size: 4.5rem;
}
.page-header p {
font-size: 1.5rem;
}
.slider-card {
flex: 0 0 550px; /* Adjusted for larger cards */
padding: 3.8rem;
}
.icon-container {
width: 110px;
height: 110px;
font-size: 4rem;
margin-bottom: 35px;
}
.slider-card h2 {
font-size: 2.1rem;
}
.slider-card p {
font-size: 1.15rem;
}
.footer-social-links a {
font-size: 2.8rem;
width: 75px;
height: 75px;
}
#popup-message {
font-size: 2.8rem;
padding: 55px 85px;
}
}
@media (max-width: 1200px) {
.container-wrapper {
max-width: 96%;
padding: 50px;
margin: 60px auto;
}
.page-header {
padding: 50px;
margin-bottom: 80px;
}
.page-header h1 {
font-size: 3.8rem;
letter-spacing: 3px;
}
.page-header p {
font-size: 1.4rem;
}
.slider-container {
padding: 50px 0;
}
.slider-track {
gap: 60px;
padding: 30px;
}
.slider-card {
flex: 0 0 90%;
max-width: 500px;
margin: 0 auto;
padding: 3.5rem;
}
.icon-container {
width: 110px;
height: 110px;
font-size: 3.8rem;
margin-bottom: 35px;
}
.slider-card h2 {
font-size: 2rem;
}
.slider-card p {
font-size: 1.1rem;
}
.slider-card footer {
flex-direction: column;
align-items: center;
gap: 20px;
padding-top: 25px;
}
.card-social-links {
gap: 25px;
}
.card-social-links a {
font-size: 1.8rem;
}
.footer-social-links {
margin-top: 120px;
padding-top: 70px;
gap: 50px;
}
.footer-social-links a {
font-size: 2.8rem;
width: 70px;
height: 70px;
}
#popup-message {
font-size: 2.5rem;
padding: 50px 80px;
}
}
@media (max-width: 992px) {
.container-wrapper {
max-width: 95%;
padding: 40px;
margin: 50px auto;
}
.page-header {
padding: 40px;
margin-bottom: 70px;
}
.page-header h1 {
font-size: 3.2rem;
letter-spacing: 2px;
}
.page-header p {
font-size: 1.2rem;
}
.slider-container {
padding: 40px 0;
}
.slider-track {
gap: 50px;
padding: 20px;
}
.slider-card {
padding: 3rem;
min-width: 320px;
}
.icon-container {
width: 100px;
height: 100px;
font-size: 3.5rem;
margin-bottom: 30px;
}
.slider-card h2 {
font-size: 1.8rem;
}
.slider-card p {
font-size: 1rem;
}
.slider-card footer {
font-size: 1.1rem;
padding-top: 20px;
}
.card-social-links {
gap: 20px;
}
.card-social-links a {
font-size: 1.5rem;
}
.footer-social-links {
margin-top: 100px;
padding-top: 60px;
gap: 40px;
}
.footer-social-links a {
font-size: 2.5rem;
width: 60px;
height: 60px;
}
#popup-message {
font-size: 2.2rem;
padding: 40px 60px;
}
}
@media (max-width: 768px) {
body {
padding: 20px;
}
.container-wrapper {
padding: 30px;
border-radius: 35px;
margin: 40px auto;
}
.page-header {
padding: 30px;
margin-bottom: 60px;
}
.page-header h1 {
font-size: 2.8rem;
letter-spacing: 1.8px;
}
.page-header p {
font-size: 1rem;
line-height: 1.8;
}
.slider-container {
padding: 30px 0;
}
.slider-track {
gap: 40px;
padding: 15px;
}
.slider-card {
padding: 2.5rem;
min-width: 280px;
}
.icon-container {
width: 90px;
height: 90px;
font-size: 3.2rem;
margin-bottom: 25px;
}
.slider-card h2 {
font-size: 1.6rem;
}
.slider-card p {
font-size: 0.9rem;
}
.slider-card footer {
font-size: 1rem;
padding-top: 15px;
}
.card-social-links {
gap: 15px;
}
.card-social-links a {
font-size: 1.3rem;
}
.footer-social-links {
margin-top: 80px;
padding-top: 50px;
gap: 30px;
}
.footer-social-links a {
font-size: 2.2rem;
width: 50px;
height: 50px;
}
#popup-message {
font-size: 2rem;
padding: 30px 50px;
border-radius: 30px;
}
}
@media (max-width: 576px) {
.container-wrapper {
padding: 20px;
border-radius: 30px;
}
.page-header {
padding: 20px;
margin-bottom: 50px;
}
.page-header h1 {
font-size: 2.2rem;
letter-spacing: 1.5px;
}
.page-header p {
font-size: 0.85rem;
}
.slider-container {
padding: 20px 0;
}
.slider-track {
gap: 30px;
padding: 10px;
}
.slider-card {
padding: 2rem;
min-width: 260px;
}
.icon-container {
width: 80px;
height: 80px;
font-size: 2.8rem;
margin-bottom: 20px;
}
.slider-card h2 {
font-size: 1.4rem;
}
.slider-card p {
font-size: 0.8rem;
}
.slider-card footer {
font-size: 0.9rem;
}
.card-social-links {
gap: 10px;
}
.card-social-links a {
font-size: 1.1rem;
}
.footer-social-links {
margin-top: 60px;
padding-top: 40px;
gap: 20px;
}
.footer-social-links a {
font-size: 1.8rem;
width: 45px;
height: 45px;
}
#popup-message {
font-size: 1.6rem;
padding: 25px 40px;
border-radius: 25px;
}
}
</style>
<div class="container-wrapper">
<div class="page-header">
<h1><i class="fas fa-comments" style="margin-right: 20px; color: #ff69b4;"></i>Patient Feedback & Insights<i class="fas fa-lightbulb" style="margin-left: 20px; color: #ffa07a;"></i></h1>
<p>Your patients' valuable thoughts, ratings, and observations are crucial for continuous improvement and delivering truly exceptional care. By actively listening to their feedback, you foster trust, enhance patient satisfaction, and identify opportunities to refine your services. Every comment helps shape a more patient-centric approach, driving excellence and compassion in every aspect of healthcare delivery.</p>
</div>
<div class="slider-container" id="sliderContainer">
<div class="slider-track" id="sliderTrack">
<?php
// Database connection
// Ensure your MySQL server is running and credentials are correct.
// Host: localhost, Username: root, Password: (empty for root, if set, provide here), Database: meditronix_new
$db = mysqli_connect("localhost", "root", "", "meditronix_new");
if (mysqli_connect_errno()) {
// Log the error for server-side debugging
error_log("Failed to connect to MySQL: " . mysqli_connect_error());
echo "<div class='slider-card' style='flex: 0 0 100%; text-align: center; padding: 50px; background: linear-gradient(135deg, #F8F9FA, #E9ECEF);'>";
echo "<div class='icon-container' style='background: linear-gradient(135deg, #dc3545, #c82333);'><i class='fas fa-exclamation-circle'></i></div>";
echo "<h2>Database Connection Error</h2>";
echo "<p style='color: #dc3545;'>❌ We are unable to connect to the database at this moment.</p>";
echo "<p style='color: #6c757d;'>Please ensure your database server is running and the connection details in the code are correct.</p>";
echo "</div>";
$feedbackData = []; // Ensure feedbackData is empty on connection failure
} else {
// Fetch feedback data for display in the carousel
// SELECT Query: Retrieve all necessary columns from the 'feedback' table, ordered by creation date.
$query = "SELECT id, patient_id, `patients' _name`, message, rating, status, created_at FROM feedback WHERE 1 ORDER BY created_at DESC";
$result = mysqli_query($db, $query);
$feedbackData = [];
if ($result) {