-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
232 lines (219 loc) · 5.22 KB
/
Copy pathstyle.css
File metadata and controls
232 lines (219 loc) · 5.22 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
/* General styles */
td.message-cell {
min-height: 100px;
max-height: 100px;
overflow-y: auto;
white-space: pre-wrap;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f5f7fa;
margin: 0; padding: 0;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
}
main {
background: white;
margin: 40px 20px;
padding: 30px 40px;
box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
border-radius: 12px;
width: fit-content;
}
h2 {
color: #334155;
margin-bottom: 24px;
text-align: center;
}
label {
display: block;
margin-bottom: 6px;
font-weight: 600;
color: #475569;
margin-top: 15px;
}
input[type=text], input[type=password], input[type=email], input[type=tel], select, textarea {
width: 100%;
padding: 10px 14px;
border: 1.8px solid #cbd5e1;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.25s ease;
box-sizing: border-box;
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=tel]:focus, select:focus, textarea:focus {
outline: none;
border-color: #6366f1;
box-shadow: 0 0 8px #6366f1aa;
}
button {
margin-top: 25px;
width: 100%;
padding: 14px 0;
background: #6366f1;
color: white;
font-weight: 700;
border: none;
border-radius: 10px;
font-size: 1.15rem;
cursor: pointer;
transition: background-color 0.3s ease;
}
#logoutBtn{
padding: 8px 16px ;
width: fit-content;
}
/* #sameLine{
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
} */
button:hover {
background: #4f46e5;
}
p.center {
text-align: center;
margin-top: 25px;
font-weight: 600;
color: #334155;
}
p.center a {
color: #6366f1;
text-decoration: none;
}
p.center a:hover {
text-decoration: underline;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 30px;
font-size: 0.9rem;
box-shadow: 0 1px 5px rgb(0 0 0 / 0.1);
}
th, td {
padding: 10px 14px;
border-bottom: 1px solid #e2e8f0;
text-align: left;
}
th {
background: #e0e7ff;
color: #3730a3;
font-weight: 700;
}
tr:nth-child(even) {
background: #f9fafb;
}
header {
background: linear-gradient(90deg, #667eea, #764ba2);
padding: 30px 15px;
color: white;
text-align: center;
box-shadow: 0 3px 10px rgb(102 126 234 / 0.4);
border-radius: 0 0 20px 20px;
user-select: none;
position: relative;
}
header h1 {
margin: 0;
font-weight: 600;
font-size: 2rem;
letter-spacing: 1.1px;
}
.badge {
padding: 2px 8px;
border-radius: 12px;
font-weight: 600;
font-size: 0.8rem;
color: white;
display: inline-block;
user-select: none;
}
.badge.Pending { background: #facc15; } /* yellow */
.badge['In Progress'] { background: #3b82f6; } /* blue */
.badge.Resolved { background: #10b981; } /* green */
.btn-edit, .btn-delete {
cursor: pointer;
border: none;
padding: 5px 8px;
margin-right: 5px;
border-radius: 6px;
font-weight: 600;
font-size: 0.85rem;
color: white;
transition: background-color 0.25s ease;
}
.btn-edit { background-color: #2563eb; }
.btn-edit:hover { background-color: #1d4ed8; }
.btn-delete { background-color: #dc2626; }
.btn-delete:hover { background-color: #b91c1c; }
/* Hide all views initially */
section {
display: none;
}
section.active {
display: block;
}
/* Filters area in admin */
.filters {
display: flex;
gap: 15px;
margin-bottom: 20px;
flex-wrap: wrap;
justify-content: center;
}
.filters select, .filters input[type="search"] {
flex: 1 1 150px;
}
/* New complaint badge */
#newComplaintBadge {
background-color: #ef4444;
color: white;
font-weight: 700;
padding: 4px 10px;
border-radius: 18px;
margin-left: 12px;
font-size: 0.85rem;
vertical-align: middle;
display: none;
}
.dashboard-cards {
display: flex;
justify-content: space-between;
gap: 15px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.dashboard-cards .card {
flex: 1 1 120px;
display: flex;
align-items: center;
gap: 10px;
background: #f1f5f9;
padding: 10px 16px;
border-radius: 12px;
box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}
.dashboard-cards .card i {
font-size: 1.5rem;
color: #475569;
}
.dashboard-cards .card.total i { color: #1e3a8a; }
.dashboard-cards .card.pending i { color: #f59e0b; }
.dashboard-cards .card.inprogress i { color: #3b82f6; }
.dashboard-cards .card.resolved i { color: #10b981; }
.dashboard-cards .card div {
display: flex;
flex-direction: column;
}
.dashboard-cards .card strong {
font-size: 1.2rem;
color: #1e293b;
}
.dashboard-cards .card span {
font-size: 0.9rem;
color: #64748b;
}