-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
758 lines (608 loc) · 15 KB
/
style.css
File metadata and controls
758 lines (608 loc) · 15 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
/* Red Cross Philippines - Custom Styles */
/* Base styles */
body {
font-family: 'Inter', sans-serif;
}
/* Custom component styles */
.btn-primary {
@apply bg-red-cross-blue text-white px-6 py-3 rounded-lg font-semibold hover:bg-red-cross-secondary-blue transition-all duration-300 transform hover:-translate-y-1 hover:shadow-lg;
}
/* Form Grid Layout (Strict Two-Column) */
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr; /* Two equal-width columns */
gap: 20px 30px; /* Vertical and horizontal spacing */
margin-bottom: 20px;
}
/* Full-width Field (For Address and Occupation) */
.full-width {
grid-column: 1 / -1; /* Spans across both columns */
}
/* Field Styling (Top-Aligned Labels) */
.field-group {
display: flex;
flex-direction: column; /* Stacks label above input */
}
.field-group label {
font-weight: 600;
margin-bottom: 5px;
color: #555;
font-size: 0.95em;
}
/* Input/Select/Textarea Styling (Full-Width, Rounded, Colored Border) */
.form-input {
width: 100%;
padding: 10px 12px;
border: 2px solid #f5f7f6; /* UPDATED: New border color */
border-radius: 8px; /* Rounded corners */
box-sizing: border-box; /* Includes padding and border in the element's total width and height */
font-size: 1em;
transition: border-color 0.3s;
}
.form-input:focus {
border-color: #007bff; /* Darker blue on focus (kept for user feedback) */
outline: none;
}
/* Placeholder and option styling for uniform color */
.form-input::placeholder {
color: #9da2ae !important;
}
.form-input option:disabled {
color: #9da2ae !important;
}
.form-input option {
color: #333;
}
/* Specific styling for select dropdowns */
select.form-input {
color: #9da2ae;
}
select.form-input:focus,
select.form-input:valid {
color: #333;
}
/* Date input styling */
input[type="date"].form-input {
color: #9da2ae;
}
input[type="date"].form-input::-webkit-datetime-edit-text,
input[type="date"].form-input::-webkit-datetime-edit-month-field,
input[type="date"].form-input::-webkit-datetime-edit-day-field,
input[type="date"].form-input::-webkit-datetime-edit-year-field {
color: #9da2ae;
}
/* When date has value, make it black */
input[type="date"].form-input:valid {
color: #000000 !important;
}
input[type="date"].form-input:valid::-webkit-datetime-edit-text,
input[type="date"].form-input:valid::-webkit-datetime-edit-month-field,
input[type="date"].form-input:valid::-webkit-datetime-edit-day-field,
input[type="date"].form-input:valid::-webkit-datetime-edit-year-field {
color: #000000 !important;
}
/* Specific styling for the Address textarea */
.field-group textarea {
resize: vertical;
min-height: 100px;
}
/* Styling for the date input and icon (to mimic the visual) */
.date-input-group {
display: flex;
align-items: center;
}
.date-input-group input {
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
flex-grow: 1;
}
.date-icon {
padding: 10px 12px;
border: 2px solid #f5f7f6; /* UPDATED: New border color */
border-left: none;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
background-color: #f8f8f8;
color: #555; /* Changed icon color to a darker grey for visibility */
}
/* Section Header Styling */
.section-header {
font-size: 1.3em;
font-weight: bold;
color: #333;
margin-top: 25px;
margin-bottom: 20px;
padding-left: 10px;
border-left: 5px solid #cc0000; /* Red line on the left */
}
/* Required Field Styling (Red Asterisk) */
.required::after {
content: ' *';
color: #cc0000; /* Bright red color for the asterisk */
font-weight: bold;
}
.form-label {
@apply block text-sm font-medium text-gray-700 mb-2;
}
.form-label .required-asterisk {
@apply text-red-500;
}
.form-error {
@apply text-gray-600 text-xs mt-1;
}
.card {
@apply bg-white rounded-xl shadow-lg p-6;
}
.hero-gradient {
@apply bg-gradient-to-br from-red-cross-light-blue to-white;
}
/* Custom animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 0.6s ease-out;
}
/* Loading spinner */
.spinner {
@apply inline-block w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin;
}
/* Mobile menu styles */
.mobile-menu {
@apply md:hidden absolute top-16 left-0 right-0 bg-white shadow-lg border-t;
}
.mobile-menu.hidden {
@apply hidden;
}
/* Form validation styles */
.form-input.error {
@apply border-red-500 focus:border-red-500 focus:ring-red-500/20;
}
.form-input.success {
@apply border-green-500 focus:border-green-500 focus:ring-green-500/20;
}
/* Payment method selection */
.payment-method {
@apply p-4 border-2 border-gray-300 rounded-lg text-center transition-all duration-200 cursor-pointer hover:border-gray-400;
}
.payment-method.selected {
@apply border-red-cross-blue bg-red-cross-light-blue;
}
/* Modal styles */
.modal {
@apply fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4;
overflow-y: auto;
}
.modal.hidden {
@apply hidden;
}
/* Modal content */
.modal-content {
@apply bg-white rounded-lg shadow-xl w-full max-w-2xl mx-auto;
max-height: 90vh;
overflow-y: auto;
}
/* Modal header */
.modal-header {
@apply px-6 py-4 border-b border-gray-200;
}
/* Modal body */
.modal-body {
@apply p-6;
max-height: 70vh;
overflow-y: auto;
}
/* Modal footer */
.modal-footer {
@apply px-6 py-4 border-t border-gray-200 flex justify-end space-x-3;
}
/* Responsive modal adjustments */
@media (max-width: 768px) {
.modal {
@apply p-2;
}
.modal-content {
@apply max-w-full mx-2;
max-height: 95vh;
}
.modal-body {
max-height: 60vh;
}
}
/* Ensure form fields are visible */
.modal-body .form-input {
@apply w-full;
}
.modal-body .grid {
@apply gap-4;
}
/* Modal backdrop click to close */
.modal {
cursor: pointer;
}
.modal .modal-content {
cursor: default;
}
/* Consistent Vertical Spacing for Admin Sections */
.admin-section {
margin-top: 2rem; /* 32px consistent spacing */
}
.admin-section .bg-white {
margin-top: 2rem;
}
/* Ensure proper spacing between dashboard widgets and content */
.dashboard-content {
margin-top: 2rem;
}
/* Success/Error messages */
.alert {
@apply p-4 rounded-lg border flex items-center;
}
.alert-success {
@apply bg-green-100 border-green-400 text-green-700;
}
.alert-error {
@apply bg-red-100 border-red-400 text-red-700;
}
.alert-info {
@apply bg-blue-100 border-blue-400 text-blue-700;
}
/* Step indicator */
.step-indicator {
@apply flex items-center space-x-8;
}
.step {
@apply flex items-center space-x-3;
}
.step-number {
@apply w-10 h-10 rounded-full flex items-center justify-center font-semibold;
}
.step-number.active {
@apply bg-red-cross-blue text-white;
}
.step-number.completed {
@apply bg-green-500 text-white;
}
.step-number.inactive {
@apply bg-gray-300 text-gray-600;
}
.step-line {
@apply w-16 h-0.5;
}
.step-line.active {
@apply bg-red-cross-blue;
}
.step-line.completed {
@apply bg-green-500;
}
.step-line.inactive {
@apply bg-gray-300;
}
/* Responsive utilities */
@media (max-width: 768px) {
.mobile-hidden {
@apply hidden;
}
.mobile-full {
@apply w-full;
}
}
/* Print styles */
@media print {
.no-print {
@apply hidden;
}
.print-break {
page-break-after: always;
}
}
/* Accessibility improvements */
.sr-only {
@apply absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0;
}
.focus-visible {
@apply focus:outline-none focus:ring-2 focus:ring-red-cross-blue focus:ring-offset-2;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.btn-primary {
@apply border-2 border-red-cross-blue;
}
.form-input {
@apply border-2;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Admin Dashboard Styles */
.admin-section {
@apply transition-all duration-300;
}
.nav-item {
@apply flex items-center space-x-3 px-4 py-3 text-gray-800 bg-red-cross-light-blue rounded-lg transition-all duration-200 cursor-pointer font-medium shadow-sm hover:shadow-md hover:bg-red-cross-blue hover:text-white !important;
}
.nav-item.active {
@apply bg-red-cross-blue text-white shadow-md !important;
}
/* More specific selector to override Tailwind */
aside nav ul li a.nav-item {
@apply flex items-center space-x-3 px-4 py-3 text-gray-800 bg-red-cross-light-blue rounded-lg transition-all duration-200 cursor-pointer font-medium shadow-sm hover:shadow-md hover:bg-red-cross-blue hover:text-white;
}
aside nav ul li a.nav-item.active {
@apply bg-red-cross-blue text-white shadow-md;
}
.nav-item i {
@apply w-5 text-center;
}
/* Modal styles */
.modal {
@apply fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4;
}
.modal.hidden {
@apply hidden;
}
/* Table styles */
.admin-table {
@apply min-w-full divide-y divide-gray-200;
}
.admin-table th {
@apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider bg-gray-50;
}
.admin-table td {
@apply px-6 py-4 whitespace-nowrap;
}
/* Badge styles */
.badge {
@apply px-2 inline-flex text-xs leading-5 font-semibold rounded-full;
}
.badge-success {
@apply bg-green-100 text-green-800;
}
.badge-warning {
@apply bg-yellow-100 text-yellow-800;
}
.badge-danger {
@apply bg-red-100 text-red-800;
}
.badge-info {
@apply bg-blue-100 text-blue-800;
}
.badge-secondary {
@apply bg-gray-100 text-gray-800;
}
/* Card styles */
.admin-card {
@apply bg-white rounded-lg shadow-lg p-6;
}
.admin-card-header {
@apply px-6 py-4 border-b border-gray-200;
}
.admin-card-title {
@apply text-lg font-semibold text-gray-800;
}
/* Button styles */
.btn-admin {
@apply px-4 py-2 rounded-lg font-medium transition-colors duration-200;
}
.btn-admin-primary {
@apply bg-red-cross-blue text-white hover:bg-red-cross-secondary-blue;
}
.btn-admin-secondary {
@apply bg-gray-200 text-gray-700 hover:bg-gray-300;
}
.btn-admin-danger {
@apply bg-red-600 text-white hover:bg-red-700;
}
.btn-admin-success {
@apply bg-green-600 text-white hover:bg-green-700;
}
/* Form styles */
.admin-form {
@apply space-y-4;
}
.admin-form-group {
@apply space-y-2;
}
.admin-form-label {
@apply block text-sm font-medium text-gray-700;
}
.admin-form-input {
@apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent;
}
.admin-form-select {
@apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent;
}
.admin-form-textarea {
@apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent resize-vertical;
}
/* Stats card styles */
.stats-card {
@apply bg-white rounded-lg shadow-lg p-6 border-l-4;
}
.stats-card-blue {
@apply border-blue-500;
}
.stats-card-green {
@apply border-green-500;
}
.stats-card-yellow {
@apply border-yellow-500;
}
.stats-card-red {
@apply border-red-500;
}
.stats-icon {
@apply w-12 h-12 rounded-full flex items-center justify-center;
}
.stats-icon-blue {
@apply bg-blue-100;
}
.stats-icon-green {
@apply bg-green-100;
}
.stats-icon-yellow {
@apply bg-yellow-100;
}
.stats-icon-red {
@apply bg-red-100;
}
/* Event card styles */
.event-card {
@apply bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-200;
}
.event-card-header {
@apply flex justify-between items-start mb-4;
}
.event-card-title {
@apply text-lg font-semibold text-gray-800;
}
.event-card-meta {
@apply space-y-2 mb-4;
}
.event-card-meta-item {
@apply flex items-center text-sm text-gray-600;
}
.event-card-description {
@apply text-sm text-gray-600 mb-4;
}
.event-card-actions {
@apply flex space-x-2;
}
/* Responsive admin styles */
@media (max-width: 768px) {
.admin-sidebar {
@apply fixed inset-y-0 left-0 z-40 w-64 transform -translate-x-full transition-transform duration-300;
}
.admin-sidebar.open {
@apply translate-x-0;
}
.admin-main {
@apply ml-0;
}
.admin-main.sidebar-open {
@apply ml-64;
}
.admin-table {
@apply text-sm;
}
.admin-table th,
.admin-table td {
@apply px-3 py-2;
}
}
/* Dark mode support for admin */
@media (prefers-color-scheme: dark) {
.admin-section {
@apply bg-gray-900 text-white;
}
.nav-item {
@apply text-gray-300 hover:text-white hover:bg-gray-800;
}
.nav-item.active {
@apply bg-gray-800 text-white;
}
.admin-card {
@apply bg-gray-800 border-gray-700;
}
.admin-table th {
@apply bg-gray-800 text-gray-300;
}
.admin-table td {
@apply text-gray-300;
}
}
/* Print styles for admin */
@media print {
.admin-sidebar,
.admin-header,
.admin-actions {
@apply hidden;
}
.admin-main {
@apply ml-0;
}
.admin-section {
@apply block;
}
}
/* Profile Menu Styling - Enhanced Design with Logical Grouping */
#profileMenuBtn {
cursor: pointer;
z-index: 10;
transition: all 0.2s ease;
}
#profileMenuBtn:hover {
background-color: #f8fafc;
}
#profileMenu {
z-index: 50;
position: absolute;
right: 0;
top: 100%;
margin-top: 0.5rem;
border: 1px solid #e5e7eb;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
border-radius: 0.75rem;
overflow: hidden;
}
#profileMenu a {
transition: all 0.2s ease;
font-weight: 500;
margin: 0 4px;
}
#profileMenu a:hover {
transform: translateX(3px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Section headers */
#profileMenu h4 {
letter-spacing: 0.05em;
font-size: 0.75rem;
color: #6b7280;
}
/* Consistent icon sizing and alignment */
#profileMenu i {
width: 1rem;
text-align: center;
flex-shrink: 0;
}
/* Ensure proper flex alignment for menu items */
#profileMenu a {
display: flex;
align-items: center;
}
/* External link icon positioning */
#profileMenu .fa-external-link-alt {
margin-left: auto;
flex-shrink: 0;
}
/* Enhanced hover states */
#profileMenu a:hover i {
transform: scale(1.1);
}
/* Section dividers */
#profileMenu .border-t {
border-color: #f3f4f6;
}
/* Logout special styling */
#profileMenu a[onclick="logout()"] {
font-weight: 600;
}
#profileMenu a[onclick="logout()"]:hover {
background-color: #fef2f2;
border-left: 3px solid #dc2626;
}