YchKhan commited on
Commit
1aeb5c2
·
verified ·
1 Parent(s): 02165cb

Upload style.css

Browse files
Files changed (1) hide show
  1. static/style.css +442 -0
static/style.css ADDED
@@ -0,0 +1,442 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :root {
2
+ --primary: #2563eb;
3
+ --primary-light: #3b82f6;
4
+ --primary-dark: #1d4ed8;
5
+ --danger: #ef4444;
6
+ --success: #10b981;
7
+ --warning: #f59e0b;
8
+ --gray-100: #f3f4f6;
9
+ --gray-200: #e5e7eb;
10
+ --gray-300: #d1d5db;
11
+ --gray-400: #9ca3af;
12
+ --gray-500: #6b7280;
13
+ --gray-600: #4b5563;
14
+ --gray-700: #374151;
15
+ --gray-800: #1f2937;
16
+ --gray-900: #111827;
17
+ --transition: all 0.2s ease;
18
+ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
19
+ --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
20
+ --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
21
+ --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
22
+ }
23
+
24
+ * {
25
+ box-sizing: border-box;
26
+ margin: 0;
27
+ padding: 0;
28
+ }
29
+
30
+ body {
31
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
32
+ line-height: 1.6;
33
+ color: var(--gray-800);
34
+ background-color: #f8fafc;
35
+ max-width: 1200px;
36
+ margin: 0 auto;
37
+ padding: 2rem;
38
+ }
39
+
40
+ @media (max-width: 768px) {
41
+ body {
42
+ padding: 1rem;
43
+ }
44
+ }
45
+
46
+ .container {
47
+ max-width: 1000px;
48
+ margin: 0 auto;
49
+ }
50
+
51
+ .header {
52
+ margin-bottom: 2.5rem;
53
+ text-align: center;
54
+ }
55
+
56
+ .logo {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ margin-bottom: 1rem;
61
+ }
62
+
63
+ .logo-icon {
64
+ width: 40px;
65
+ height: 40px;
66
+ background-color: var(--primary);
67
+ border-radius: 8px;
68
+ color: white;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ font-weight: bold;
73
+ font-size: 1.5rem;
74
+ margin-right: 10px;
75
+ }
76
+
77
+ h1 {
78
+ font-size: 2rem;
79
+ font-weight: 700;
80
+ color: var(--gray-900);
81
+ margin-bottom: 0.5rem;
82
+ }
83
+
84
+ h2 {
85
+ font-size: 1.5rem;
86
+ font-weight: 600;
87
+ color: var(--gray-800);
88
+ margin-bottom: 1.5rem;
89
+ }
90
+
91
+ p {
92
+ color: var(--gray-600);
93
+ margin-bottom: 1rem;
94
+ }
95
+
96
+ .card {
97
+ background-color: white;
98
+ border-radius: 0.75rem;
99
+ box-shadow: var(--shadow);
100
+ padding: 2rem;
101
+ margin-bottom: 2rem;
102
+ }
103
+
104
+ .form-group {
105
+ margin-bottom: 1.5rem;
106
+ }
107
+
108
+ label {
109
+ display: block;
110
+ margin-bottom: 0.5rem;
111
+ font-weight: 500;
112
+ color: var(--gray-700);
113
+ }
114
+
115
+ #userInput {
116
+ width: 100%;
117
+ padding: 0.75rem;
118
+ border: 1px solid var(--gray-300);
119
+ border-radius: 0.5rem;
120
+ min-height: 150px;
121
+ font-family: inherit;
122
+ resize: vertical;
123
+ transition: var(--transition);
124
+ }
125
+
126
+ #userInput:focus {
127
+ outline: none;
128
+ border-color: var(--primary);
129
+ box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
130
+ }
131
+
132
+ .btn {
133
+ display: inline-flex;
134
+ align-items: center;
135
+ justify-content: center;
136
+ padding: 0.625rem 1.25rem;
137
+ border: none;
138
+ border-radius: 0.5rem;
139
+ font-weight: 500;
140
+ font-size: 0.875rem;
141
+ cursor: pointer;
142
+ transition: var(--transition);
143
+ gap: 0.5rem;
144
+ }
145
+
146
+ .btn-primary {
147
+ background-color: var(--primary);
148
+ color: white;
149
+ }
150
+
151
+ .btn-primary:hover {
152
+ background-color: var(--primary-dark);
153
+ }
154
+
155
+ .btn-secondary {
156
+ background-color: var(--gray-100);
157
+ color: var(--gray-700);
158
+ }
159
+
160
+ .btn-secondary:hover {
161
+ background-color: var(--gray-200);
162
+ }
163
+
164
+ .btn-danger {
165
+ background-color: var(--danger);
166
+ color: white;
167
+ }
168
+
169
+ .btn-danger:hover {
170
+ background-color: #dc2626;
171
+ }
172
+
173
+ .btn-success {
174
+ background-color: var(--success);
175
+ color: white;
176
+ }
177
+
178
+ .btn-success:hover {
179
+ background-color: #059669;
180
+ }
181
+
182
+ .btn-warning {
183
+ background-color: var(--warning);
184
+ color: white;
185
+ }
186
+
187
+ .btn-warning:hover {
188
+ background-color: #d97706;
189
+ }
190
+
191
+ .query-item {
192
+ background-color: white;
193
+ border-radius: 0.75rem;
194
+ box-shadow: var(--shadow);
195
+ padding: 1.5rem;
196
+ margin-bottom: 1.5rem;
197
+ }
198
+
199
+ .query-container {
200
+ display: flex;
201
+ margin-bottom: 1rem;
202
+ align-items: center;
203
+ gap: 0.5rem;
204
+ }
205
+
206
+ .query-field {
207
+ flex-grow: 1;
208
+ padding: 0.625rem 0.75rem;
209
+ border: 1px solid var(--gray-300);
210
+ border-radius: 0.5rem;
211
+ transition: var(--transition);
212
+ }
213
+
214
+ .query-field:focus {
215
+ outline: none;
216
+ border-color: var(--primary);
217
+ box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
218
+ }
219
+
220
+ .action-button {
221
+ background-color: hsl(192, 83%, 66%);
222
+ color: white;
223
+ padding: 8px 12px;
224
+ border: none;
225
+ border-radius: 4px;
226
+ cursor: pointer;
227
+ margin-right: 5px;
228
+ }
229
+ .delete-button {
230
+ background-color: #f44336;
231
+ }
232
+ .search-button {
233
+ background-color: #2196F3;
234
+ }
235
+ button:hover {
236
+ opacity: 0.9;
237
+ }
238
+
239
+ #resultsContainer {
240
+ margin-top: 20px;
241
+ display: none;
242
+ }
243
+ #queriesContainer {
244
+ margin-bottom: 15px;
245
+ }
246
+ #loadingIndicator {
247
+ display: none;
248
+ margin-top: 20px;
249
+ text-align: center;
250
+ color: #666;
251
+ }
252
+ .button-container {
253
+ margin-top: 15px;
254
+ }
255
+ .results-table {
256
+ width: 100%;
257
+ border-collapse: collapse;
258
+ margin-top: 10px;
259
+ display: none;
260
+ }
261
+ .results-table th, .results-table td {
262
+ border: 1px solid #ddd;
263
+ padding: 8px;
264
+ text-align: left;
265
+ }
266
+ .results-table th {
267
+ background-color: #f2f2f2;
268
+ }
269
+ .results-table tr:nth-child(even) {
270
+ background-color: #f9f9f9;
271
+ }
272
+ .results-table tr:hover {
273
+ background-color: #f1f1f1;
274
+ }
275
+ .search-loading {
276
+ display: none;
277
+ margin: 10px 0;
278
+ font-style: italic;
279
+ color: #666;
280
+ }
281
+ .url-link {
282
+ color: #0066cc;
283
+ text-decoration: none;
284
+ word-break: break-all;
285
+ }
286
+ .url-link:hover {
287
+ text-decoration: underline;
288
+ }
289
+
290
+ .analyze-button {
291
+ margin-top: 5px;
292
+ padding: 3px 8px;
293
+ font-size: 0.8em;
294
+ }
295
+
296
+ .loading-spinner {
297
+ border: 4px solid #f3f3f3;
298
+ border-top: 4px solid #3498db;
299
+ border-radius: 50%;
300
+ width: 20px;
301
+ height: 20px;
302
+ animation: spin 2s linear infinite;
303
+ margin: 0 auto;
304
+ }
305
+
306
+ @keyframes spin {
307
+ 0% { transform: rotate(0deg); }
308
+ 100% { transform: rotate(360deg); }
309
+ }
310
+
311
+ .score-cell, .justification-cell {
312
+ max-width: 150px;
313
+ overflow: hidden;
314
+ text-overflow: ellipsis;
315
+ }
316
+
317
+ .score-cell {
318
+ font-weight: bold;
319
+ text-align: center;
320
+ }
321
+
322
+ .floating-buttons {
323
+ position: fixed;
324
+ bottom: 2rem;
325
+ right: 2rem;
326
+ display: flex;
327
+ flex-direction: column;
328
+ gap: 0.75rem;
329
+ z-index: 100;
330
+ }
331
+
332
+ .floating-button {
333
+ padding: 0.75rem;
334
+ border-radius: 0.5rem;
335
+ box-shadow: var(--shadow-md);
336
+ transition: all 0.3s ease;
337
+ display: flex;
338
+ align-items: center;
339
+ justify-content: center;
340
+ gap: 0.5rem;
341
+ width: auto;
342
+ white-space: nowrap;
343
+ }
344
+
345
+ .floating-button:hover {
346
+ transform: translateY(-2px);
347
+ box-shadow: var(--shadow-lg);
348
+ }
349
+
350
+ .loading-overlay {
351
+ position: fixed;
352
+ top: 0;
353
+ left: 0;
354
+ width: 100%;
355
+ height: 100%;
356
+ background-color: rgba(0, 0, 0, 0.5);
357
+ display: none;
358
+ justify-content: center;
359
+ align-items: center;
360
+ z-index: 1000;
361
+ }
362
+
363
+ .loading-content {
364
+ background-color: white;
365
+ padding: 2rem;
366
+ border-radius: 0.75rem;
367
+ text-align: center;
368
+ box-shadow: var(--shadow-lg);
369
+ max-width: 80%;
370
+ }
371
+
372
+ .loading-content .loading-spinner {
373
+ width: 40px;
374
+ height: 40px;
375
+ border-width: 4px;
376
+ margin-bottom: 1rem;
377
+ }
378
+
379
+ .progress-text {
380
+ font-size: 1rem;
381
+ margin-top: 0.75rem;
382
+ color: var(--gray-700);
383
+ }
384
+
385
+ .button-container {
386
+ margin-top: 1.5rem;
387
+ display: flex;
388
+ justify-content: flex-start;
389
+ gap: 0.75rem;
390
+ }
391
+
392
+ /* Add icons for better UX */
393
+ .icon {
394
+ display: inline-block;
395
+ width: 20px;
396
+ height: 20px;
397
+ background-size: contain;
398
+ background-repeat: no-repeat;
399
+ background-position: center;
400
+ }
401
+
402
+ .table-container {
403
+ margin-top: 1rem;
404
+ overflow-x: auto;
405
+ border-radius: 0.5rem;
406
+ border: 1px solid var(--gray-200);
407
+ }
408
+
409
+ /* Responsive adjustments */
410
+ @media (max-width: 768px) {
411
+ .query-container {
412
+ flex-direction: column;
413
+ align-items: stretch;
414
+ }
415
+
416
+ .query-container .btn {
417
+ margin-top: 0.5rem;
418
+ }
419
+
420
+ .floating-buttons {
421
+ bottom: 1rem;
422
+ right: 1rem;
423
+ }
424
+ }
425
+
426
+ .search-options {
427
+ margin-bottom: 20px;
428
+ text-align: center;
429
+ }
430
+
431
+ .checkbox-group {
432
+ display: flex;
433
+ gap: 15px;
434
+ margin-top: 5px;
435
+ justify-content: center; /* This centers the checkboxes horizontally */
436
+ }
437
+
438
+ .checkbox-item {
439
+ display: flex;
440
+ align-items: center;
441
+ gap: 5px;
442
+ }