Spaces:
Running
Running
File size: 4,496 Bytes
74d9416 667fb7b 74d9416 667fb7b 74d9416 667fb7b 74d9416 667fb7b 74d9416 667fb7b 74d9416 68e6c78 74d9416 667fb7b 74d9416 667fb7b 74d9416 68e6c78 74d9416 68e6c78 74d9416 68e6c78 | 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 | /* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
background-color: #f9fafb;
}
/* Button Styles */
.btn {
@apply font-medium rounded-lg transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2;
}
.btn-primary {
@apply bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500;
}
.btn-secondary {
@apply bg-gray-600 hover:bg-gray-700 text-white focus:ring-gray-500;
}
.btn-success {
@apply bg-green-600 hover:bg-green-700 text-white focus:ring-green-500;
}
.btn-danger {
@apply bg-red-600 hover:bg-red-700 text-white focus:ring-red-500;
}
/* Card Styles */
.card {
@apply bg-white rounded-xl shadow-lg overflow-hidden;
}
.card-header {
@apply bg-gray-50 px-6 py-4 border-b border-gray-200;
}
.card-body {
@apply p-6;
}
/* Form Elements */
.form-input {
@apply border border-gray-300 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}
.form-label {
@apply block text-sm font-medium text-gray-700 mb-1;
}
/* Answer Buttons */
.answer-btn {
@apply w-full py-3 rounded-lg border border-gray-300 text-center font-medium transition-colors hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500;
}
.answer-btn.selected {
@apply bg-blue-100 border-blue-500 text-blue-700;
}
.answer-btn.correct {
@apply bg-green-100 border-green-500 text-green-700;
}
.answer-btn.incorrect {
@apply bg-red-100 border-red-500 text-red-700;
}
/* Question Grid */
.question-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 1rem;
}
@media (min-width: 640px) {
.question-grid {
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
}
/* Test Section */
.test-section {
@apply bg-white rounded-xl shadow-lg p-6 mb-8;
}
.test-section-header {
@apply border-b border-gray-200 pb-4 mb-6;
}
/* Results Section */
.results-card {
@apply bg-gradient-to-r from-blue-50 to-indigo-50 rounded-xl p-6 mb-6;
}
.results-score {
@apply text-5xl font-bold text-blue-600 mb-2;
}
/* Animations */
.fade-in {
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Responsive Adjustments */
@media (max-width: 640px) {
.question-grid {
grid-template-columns: repeat(4, 1fr);
}
.card {
border-radius: 1rem;
}
}
/* Tab Styles */
.tab-button {
@apply py-2 px-4 font-medium text-gray-500 hover:text-gray-700 focus:outline-none;
}
.tab-button.active {
@apply text-blue-600 border-b-2 border-blue-600;
}
.tab-pane {
@apply hidden;
}
.tab-pane:not(.hidden) {
@apply block;
}
/* Utility Classes */
.text-center {
text-align: center;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.hidden {
display: none;
}
.block {
display: block;
}
.inline-block {
display: inline-block;
}
.flex {
display: flex;
}
.grid {
display: grid;
}
.w-full {
width: 100%;
}
.h-full {
height: 100%;
}
.min-h-screen {
min-height: 100vh;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.gap-4 {
gap: 1rem;
}
.gap-6 {
gap: 1.5rem;
}
.mt-4 {
margin-top: 1rem;
}
.mt-6 {
margin-top: 1.5rem;
}
.mt-8 {
margin-top: 2rem;
}
.mb-4 {
margin-bottom: 1rem;
}
.mb-6 {
margin-bottom: 1.5rem;
}
.p-4 {
padding: 1rem;
}
.p-6 {
padding: 1.5rem;
}
.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.py-3 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
.px-4 {
padding-left: 1rem;
padding-right: 1rem;
}
.px-6 {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.rounded-lg {
border-radius: 0.5rem;
}
.shadow-lg {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.bg-white {
background-color: #ffffff;
}
.bg-gray-50 {
background-color: #f9fafb;
}
.text-gray-800 {
color: #1f2937;
}
.text-gray-600 {
color: #4b5563;
}
.text-gray-700 {
color: #374151;
}
.text-blue-600 {
color: #2563eb;
}
.font-medium {
font-weight: 500;
}
.font-semibold {
font-weight: 600;
}
.font-bold {
font-weight: 700;
}
|