Tophet12 commited on
Commit
7e4df74
·
verified ·
1 Parent(s): 8085903

Update static/index.css

Browse files
Files changed (1) hide show
  1. static/index.css +46 -556
static/index.css CHANGED
@@ -1,557 +1,47 @@
1
- /* --- CSS Variables & Reset --- */
2
- :root {
3
- --primary-color: #6a11cb;
4
- --secondary-color: #2575fc;
5
- --accent-green: #28a745;
6
- --accent-red: #dc3545;
7
- --bg-gradient: linear-gradient(135deg, #f3e7e9 0%, #e3eeff 100%);
8
- --card-bg: #ffffff;
9
- --text-color: #333333;
10
- --text-muted: #666666;
11
- --border-radius: 12px;
12
- --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
13
- --transition: all 0.3s ease;
14
- }
15
-
16
- * {
17
- margin: 0;
18
- padding: 0;
19
- box-sizing: border-box;
20
- font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
21
- }
22
-
23
- body {
24
- background: var(--bg-gradient);
25
- color: var(--text-color);
26
- min-height: 100vh;
27
- display: flex;
28
- flex-direction: column;
29
- }
30
-
31
- /* --- Navigation --- */
32
- nav {
33
- background: rgba(255, 255, 255, 0.9);
34
- backdrop-filter: blur(10px);
35
- padding: 1rem 2rem;
36
- display: flex;
37
- justify-content: space-between;
38
- align-items: center;
39
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
40
- position: sticky;
41
- top: 0;
42
- z-index: 1000;
43
- }
44
-
45
- .logo {
46
- font-size: 1.5rem;
47
- font-weight: 700;
48
- background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
49
- -webkit-background-clip: text;
50
- -webkit-text-fill-color: transparent;
51
- }
52
-
53
- .nav-links {
54
- display: flex;
55
- gap: 1.5rem;
56
- }
57
-
58
- .nav-links a {
59
- text-decoration: none;
60
- color: var(--text-color);
61
- font-weight: 500;
62
- transition: var(--transition);
63
- cursor: pointer;
64
- }
65
-
66
- .nav-links a:hover,
67
- .nav-links a.active {
68
- color: var(--secondary-color);
69
- }
70
-
71
- /* --- Main Content --- */
72
- main {
73
- flex: 1;
74
- max-width: 1200px;
75
- margin: 2rem auto;
76
- padding: 0 1.5rem;
77
- width: 100%;
78
- }
79
-
80
- /* --- Tabs --- */
81
- .tabs-container {
82
- display: flex;
83
- justify-content: center;
84
- margin-bottom: 2.5rem;
85
- background: #fff;
86
- padding: 0.5rem;
87
- border-radius: 50px;
88
- width: fit-content;
89
- margin-left: auto;
90
- margin-right: auto;
91
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
92
- flex-wrap: wrap;
93
- }
94
-
95
- .tab-btn {
96
- padding: 0.8rem 1.5rem;
97
- border: none;
98
- background: transparent;
99
- cursor: pointer;
100
- font-size: 1rem;
101
- font-weight: 600;
102
- color: var(--text-muted);
103
- border-radius: 40px;
104
- transition: var(--transition);
105
- }
106
-
107
- .tab-btn.active {
108
- background: var(--primary-color);
109
- color: white;
110
- box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
111
- }
112
-
113
- /* --- Tool Interface Layout --- */
114
- .tool-container {
115
- display: grid;
116
- grid-template-columns: 1fr 1fr;
117
- gap: 2rem;
118
- background: var(--card-bg);
119
- padding: 2rem;
120
- border-radius: var(--border-radius);
121
- box-shadow: var(--shadow);
122
- min-height: 500px;
123
- }
124
-
125
- @media (max-width: 768px) {
126
- .tool-container {
127
- grid-template-columns: 1fr;
128
- }
129
-
130
- .tabs-container {
131
- width: 100%;
132
- justify-content: center;
133
- }
134
- }
135
-
136
- /* --- Upload Section (Shared) --- */
137
- .upload-section {
138
- display: flex;
139
- flex-direction: column;
140
- gap: 1.5rem;
141
- }
142
-
143
- .drop-zone {
144
- border: 2px dashed #cbd5e0;
145
- border-radius: var(--border-radius);
146
- padding: 3rem 1.5rem;
147
- text-align: center;
148
- cursor: pointer;
149
- transition: var(--transition);
150
- background: #f8f9fa;
151
- display: flex;
152
- flex-direction: column;
153
- align-items: center;
154
- justify-content: center;
155
- min-height: 250px;
156
- position: relative;
157
- overflow: hidden;
158
- }
159
-
160
- .drop-zone:hover,
161
- .drop-zone.drag-over {
162
- border-color: var(--secondary-color);
163
- background: #f0f4ff;
164
- }
165
-
166
- .drop-zone i {
167
- font-size: 3rem;
168
- color: var(--text-muted);
169
- margin-bottom: 1rem;
170
- }
171
-
172
- .drop-zone p {
173
- color: var(--text-muted);
174
- margin-bottom: 0.5rem;
175
- }
176
-
177
- .drop-zone .file-info {
178
- font-size: 0.9rem;
179
- color: #888;
180
- }
181
-
182
- .file-preview {
183
- max-width: 100%;
184
- max-height: 200px;
185
- border-radius: 8px;
186
- margin-top: 1rem;
187
- display: none;
188
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
189
- }
190
-
191
- .audio-preview,
192
- .video-preview {
193
- max-width: 100%;
194
- margin-top: 1rem;
195
- display: none;
196
- }
197
-
198
- input[type="file"] {
199
- display: none;
200
- }
201
-
202
- .button-row {
203
- display: flex;
204
- gap: 1rem;
205
- }
206
-
207
- .btn-detect {
208
- background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
209
- color: white;
210
- border: none;
211
- padding: 1rem;
212
- border-radius: 8px;
213
- font-size: 1.1rem;
214
- font-weight: 600;
215
- cursor: pointer;
216
- transition: var(--transition);
217
- flex: 1;
218
- display: flex;
219
- align-items: center;
220
- justify-content: center;
221
- gap: 0.5rem;
222
- }
223
-
224
- .btn-detect:hover {
225
- transform: translateY(-2px);
226
- box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
227
- }
228
-
229
- .btn-detect:disabled {
230
- background: #ccc;
231
- cursor: not-allowed;
232
- transform: none;
233
- box-shadow: none;
234
- }
235
-
236
- .btn-reset {
237
- background: #f8f9fa;
238
- color: #555;
239
- border: 2px solid #e9ecef;
240
- padding: 1rem;
241
- border-radius: 8px;
242
- font-size: 1.1rem;
243
- font-weight: 600;
244
- cursor: pointer;
245
- transition: var(--transition);
246
- flex: 1;
247
- display: flex;
248
- align-items: center;
249
- justify-content: center;
250
- gap: 0.5rem;
251
- }
252
-
253
- .btn-reset:hover {
254
- background: #e2e6ea;
255
- border-color: #dae0e5;
256
- }
257
-
258
- /* --- Results & Info Section --- */
259
- .info-section {
260
- background: #fdfdfd;
261
- border-radius: var(--border-radius);
262
- padding: 1rem;
263
- display: flex;
264
- flex-direction: column;
265
- }
266
-
267
- .section-title {
268
- font-size: 1.1rem;
269
- font-weight: 600;
270
- margin-bottom: 1rem;
271
- color: #444;
272
- border-left: 4px solid var(--secondary-color);
273
- padding-left: 0.5rem;
274
- }
275
-
276
- .result-box {
277
- display: none;
278
- background: white;
279
- border: 1px solid #eee;
280
- border-radius: 8px;
281
- padding: 1.5rem;
282
- text-align: center;
283
- margin-bottom: 2rem;
284
- animation: fadeIn 0.5s ease;
285
- }
286
-
287
- .result-badge {
288
- font-size: 1.2rem;
289
- font-weight: 700;
290
- padding: 0.5rem 1.5rem;
291
- border-radius: 50px;
292
- display: inline-block;
293
- margin-bottom: 1rem;
294
- }
295
-
296
- .result-fake {
297
- background-color: rgba(220, 53, 69, 0.1);
298
- color: var(--accent-red);
299
- border: 1px solid var(--accent-red);
300
- }
301
-
302
- .result-real {
303
- background-color: rgba(40, 167, 69, 0.1);
304
- color: var(--accent-green);
305
- border: 1px solid var(--accent-green);
306
- }
307
-
308
- .confidence-score {
309
- font-size: 2rem;
310
- font-weight: 700;
311
- color: var(--text-color);
312
- }
313
-
314
- .confidence-label {
315
- color: var(--text-muted);
316
- font-size: 0.9rem;
317
- }
318
-
319
- .examples-grid {
320
- display: grid;
321
- grid-template-columns: repeat(2, 1fr);
322
- gap: 1rem;
323
- margin-top: 1rem;
324
- }
325
-
326
- .example-card {
327
- background: white;
328
- border-radius: 8px;
329
- overflow: hidden;
330
- border: 1px solid #eee;
331
- }
332
-
333
- .example-card img {
334
- width: 100%;
335
- height: 100px;
336
- object-fit: cover;
337
- }
338
-
339
- .example-label {
340
- padding: 0.5rem;
341
- text-align: center;
342
- font-size: 0.8rem;
343
- font-weight: 600;
344
- }
345
-
346
- .label-fake {
347
- color: var(--accent-red);
348
- }
349
-
350
- .label-real {
351
- color: var(--accent-green);
352
- }
353
-
354
- /* --- Dashboard Cards (Detection Tools Tab) --- */
355
- .dashboard-grid {
356
- display: grid;
357
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
358
- gap: 2rem;
359
- margin-top: 1rem;
360
- }
361
-
362
- .dash-card {
363
- background: white;
364
- padding: 2rem;
365
- border-radius: 16px;
366
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
367
- text-align: center;
368
- transition: var(--transition);
369
- cursor: pointer;
370
- border: 1px solid transparent;
371
- }
372
-
373
- .dash-card:hover {
374
- transform: translateY(-5px);
375
- border-color: var(--secondary-color);
376
- box-shadow: 0 10px 25px rgba(37, 117, 252, 0.15);
377
- }
378
-
379
- .dash-icon {
380
- font-size: 3rem;
381
- color: var(--secondary-color);
382
- margin-bottom: 1rem;
383
- }
384
-
385
- .dash-card h3 {
386
- margin-bottom: 0.5rem;
387
- color: var(--text-color);
388
- }
389
-
390
- .dash-card p {
391
- color: var(--text-muted);
392
- font-size: 0.95rem;
393
- margin-bottom: 1.5rem;
394
- }
395
-
396
- .btn-go {
397
- background: transparent;
398
- color: var(--primary-color);
399
- border: 2px solid var(--primary-color);
400
- padding: 0.5rem 1.5rem;
401
- border-radius: 50px;
402
- font-weight: 600;
403
- cursor: pointer;
404
- transition: var(--transition);
405
- }
406
-
407
- .dash-card:hover .btn-go {
408
- background: var(--primary-color);
409
- color: white;
410
- }
411
-
412
- /* --- Home Tab Styling --- */
413
- .hero-section {
414
- text-align: center;
415
- padding: 4rem 1rem;
416
- background: white;
417
- border-radius: var(--border-radius);
418
- box-shadow: var(--shadow);
419
- margin-bottom: 2rem;
420
- }
421
-
422
- .hero-title {
423
- font-size: 3rem;
424
- background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
425
- -webkit-background-clip: text;
426
- -webkit-text-fill-color: transparent;
427
- margin-bottom: 1.5rem;
428
- }
429
-
430
- .hero-text {
431
- max-width: 700px;
432
- margin: 0 auto 2rem;
433
- font-size: 1.2rem;
434
- line-height: 1.6;
435
- color: var(--text-muted);
436
- }
437
-
438
- .features-grid {
439
- display: grid;
440
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
441
- gap: 2rem;
442
- }
443
-
444
- .feature-item {
445
- text-align: center;
446
- }
447
-
448
- .feature-item i {
449
- font-size: 2.5rem;
450
- color: var(--accent-green);
451
- margin-bottom: 1rem;
452
- }
453
-
454
- /* --- Video Visualizer Animation --- */
455
- .visualizer-container {
456
- margin-top: 2rem;
457
- height: 200px;
458
- background: #222;
459
- border-radius: 8px;
460
- display: flex;
461
- align-items: center;
462
- justify-content: center;
463
- overflow: hidden;
464
- position: relative;
465
- }
466
-
467
- .visualizer-bar {
468
- width: 8px;
469
- background: var(--secondary-color);
470
- margin: 0 4px;
471
- border-radius: 4px;
472
- animation: bounce 1s infinite ease-in-out;
473
- }
474
-
475
- @keyframes bounce {
476
-
477
- 0%,
478
- 100% {
479
- height: 20px;
480
- opacity: 0.5;
481
- }
482
-
483
- 50% {
484
- height: 140px;
485
- opacity: 1;
486
- box-shadow: 0 0 10px var(--secondary-color);
487
- }
488
- }
489
-
490
- /* Footer */
491
- footer {
492
- text-align: center;
493
- padding: 2rem;
494
- color: var(--text-muted);
495
- font-size: 0.9rem;
496
- border-top: 1px solid rgba(0, 0, 0, 0.05);
497
- background: rgba(255, 255, 255, 0.6);
498
- margin-top: auto;
499
- }
500
-
501
- /* Utility */
502
- .hidden {
503
- display: none !important;
504
- }
505
-
506
- .show {
507
- display: block !important;
508
- }
509
-
510
- @keyframes fadeIn {
511
- from {
512
- opacity: 0;
513
- transform: translateY(10px);
514
- }
515
-
516
- to {
517
- opacity: 1;
518
- transform: translateY(0);
519
- }
520
- }
521
-
522
- @keyframes spin {
523
- to {
524
- transform: rotate(360deg);
525
- }
526
- }
527
-
528
- .spinner {
529
- display: inline-block;
530
- width: 20px;
531
- height: 20px;
532
- border: 3px solid rgba(255, 255, 255, 0.3);
533
- border-radius: 50%;
534
- border-top-color: white;
535
- animation: spin 1s ease-in-out infinite;
536
- }
537
-
538
- /* Toast */
539
- .toast {
540
- position: fixed;
541
- bottom: 20px;
542
- right: 20px;
543
- background: #333;
544
- color: white;
545
- padding: 12px 24px;
546
- border-radius: 8px;
547
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
548
- opacity: 0;
549
- transform: translateY(20px);
550
- transition: all 0.3s ease;
551
- z-index: 2000;
552
- }
553
-
554
- .toast.show {
555
- opacity: 1;
556
- transform: translateY(0);
557
  }
 
1
+ /* ==== CORE ==== */
2
+ *{box-sizing:border-box}
3
+ body{margin:0;font-family:Segoe UI,Arial;background:#f3f4f6}
4
+
5
+ /* NAV */
6
+ nav{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#fff;position:sticky;top:0}
7
+ .nav-links{display:flex;gap:1rem;overflow-x:auto}
8
+ .nav-links a{cursor:pointer;font-weight:600}
9
+
10
+ /* MAIN */
11
+ main{max-width:1200px;margin:auto;padding:1rem}
12
+ .tab-content.hidden{display:none}
13
+ .tab-content.show{display:block}
14
+
15
+ /* HERO */
16
+ .hero-section{text-align:center;padding:3rem 1rem;background:#fff;border-radius:12px}
17
+ .hero-title{font-size:2.5rem}
18
+
19
+ /* GRID */
20
+ .dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}
21
+
22
+ /* TOOL */
23
+ .tool-container{display:grid;grid-template-columns:1fr 1fr;gap:1rem;background:#fff;padding:1rem;border-radius:12px}
24
+ .upload-section,.info-section{width:100%}
25
+
26
+ /* DROP */
27
+ .drop-zone{border:2px dashed #ccc;padding:2rem;text-align:center;border-radius:12px}
28
+ .file-preview,.video-preview,.audio-preview{display:none;width:100%;margin-top:1rem}
29
+
30
+ /* BUTTONS */
31
+ .button-row{display:flex;gap:0.5rem}
32
+ .btn-detect,.btn-reset{flex:1;padding:0.8rem;border:none;border-radius:8px}
33
+
34
+ /* RESULT */
35
+ .result-box{display:none;text-align:center;padding:1rem;border:1px solid #ddd;border-radius:8px}
36
+
37
+ /* TOAST */
38
+ .toast{position:fixed;bottom:20px;right:20px;background:#000;color:#fff;padding:10px 20px;border-radius:6px;opacity:0;transition:.3s}
39
+ .toast.show{opacity:1}
40
+
41
+ /* ===== MOBILE ===== */
42
+ @media(max-width:768px){
43
+ nav{flex-direction:column}
44
+ .tool-container{grid-template-columns:1fr}
45
+ .button-row{flex-direction:column}
46
+ .hero-title{font-size:1.7rem}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  }