File size: 4,122 Bytes
e9ee222
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* --- A Clean and Modern Stylesheet --- */

/* 1. General & Typography */
:root {
  --primary-color: #4e73df; /* A nice, professional blue */
  --primary-hover: #2e59d9;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #5a5c69;
  --text-color: #343a40;
}

body {
  background-color: var(--light-gray);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--dark-gray);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.text-primary {
  color: var(--primary-color) !important;
}

/* 2. Layout & Main Navigation Bar */

/* This is the CRITICAL rule to prevent content from hiding behind the fixed navbar */
body {
  padding-top: 70px;
}

#mainNavbar .navbar-brand {
  font-weight: 700;
}

/* 3. Authentication Pages (Login/Register) */
.auth-wrapper {
  /* This makes the auth card vertically centered on the page */
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  max-width: 450px;
  width: 100%;
  padding: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

/* 4. User Dashboard */
.dashboard-header {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.new-test-card .card-header {
  background-color: var(--primary-color);
  color: white;
}

.table thead th {
  font-weight: 600;
  color: var(--dark-gray);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border-bottom-width: 2px;
}

.table tbody tr:hover {
  background-color: #f1f3f5;
}

.table .badge {
  padding: 0.5em 0.8em;
  font-weight: 600;
  font-size: 0.85rem;
}

/* 5. Admin Dashboard */
.card.border-left-primary {
  border-left: 0.25rem solid var(--primary-color) !important;
}
.card.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

.chart-pie {
  position: relative;
  height: 15rem;
  width: 100%;
}

.text-xs {
  font-size: 0.7rem;
}

/* Chart Legend Color Helpers */
.color-1 {
  color: #4e73df !important;
}
.color-2 {
  color: #1cc88a !important;
}
.color-3 {
  color: #f6c23e !important;
}
.color-4 {
  color: #e74a3b !important;
}
.color-5 {
  color: #5a5c69 !important;
}
.color-6 {
  color: #36b9cc !important;
}
/* =========================================== */
/* == 5. Admin Panel Specific Styles        == */
/* =========================================== */

/* --- Admin Dashboard Cards --- */

/* Base style for the stat cards */
.stat-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease-in-out;
}

.stat-card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
}

.stat-card .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Specific border colors for different cards */
.border-left-primary {
  border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

/* Text styling inside the cards */
.stat-card .text-xs {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card .h5 {
  font-weight: 700;
  color: var(--dark-gray);
}

/* The large icon on the right side of the card */
.stat-card .card-icon {
  font-size: 2.5rem;
  color: #dddfeb; /* A very light gray */
}

/* --- Admin Chart Card --- */
.chart-card .card-header {
  background-color: #f8f9fa; /* Lighter header for the chart card */
  border-bottom: 1px solid #e3e6f0;
}

.chart-pie {
  position: relative;
  height: 15rem; /* Or adjust as needed */
  width: 100%;
}

/* --- Manage Users Table --- */
.users-table thead th {
  background-color: #f8f9fa;
}

.users-table .badge {
  font-size: 0.8rem;
  padding: 0.4em 0.7em;
}