Spaces:
Sleeping
Sleeping
File size: 9,132 Bytes
239017e 2688e24 239017e 2688e24 | 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 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 | :root {
--bg-dark: #0f172a;
--text-light: #f8fafc;
--text-muted: #94a3b8;
--primary: #3b82f6;
--primary-hover: #2563eb;
--accent: #8b5cf6;
--success: #10b981;
--danger: #ef4444;
--glass-bg: rgba(30, 41, 59, 0.7);
--glass-border: rgba(255, 255, 255, 0.1);
--glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Outfit', sans-serif;
background-color: var(--bg-dark);
color: var(--text-light);
min-height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
}
/* Background blob animations */
.background-elements {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
.blob {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.5;
animation: float 20s infinite ease-in-out;
}
.blob-1 {
width: 400px; height: 400px;
background: var(--primary);
top: -100px; left: -100px;
}
.blob-2 {
width: 300px; height: 300px;
background: var(--accent);
bottom: -50px; right: -50px;
animation-delay: -5s;
}
.blob-3 {
width: 500px; height: 500px;
background: var(--accent);
top: 50%; left: 50%;
transform: translate(-50%, -50%);
opacity: 0.3;
}
@keyframes float {
0%, 100% { transform: translateY(0) scale(1); }
50% { transform: translateY(-30px) scale(1.05); }
}
/* Glass Panels */
.glass-panel {
background: var(--glass-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--glass-border);
box-shadow: var(--glass-shadow);
border-radius: 20px;
}
.glass-panel-flat {
background: var(--glass-bg);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--glass-border);
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 24px;
border-radius: 12px;
font-family: inherit;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
border: none;
outline: none;
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.full-width { width: 100%; }
.primary-btn {
background: linear-gradient(135deg, var(--primary), var(--accent));
color: white;
box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.primary-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}
.secondary-btn {
background: rgba(255, 255, 255, 0.1);
color: white;
}
.secondary-btn:hover { background: rgba(255, 255, 255, 0.15); }
.outline-btn {
background: transparent;
border: 1px solid var(--glass-border);
color: white;
}
.outline-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: white; }
/* Auth Views */
.auth-body { align-items: center; justify-content: center; }
.auth-container {
width: 100%;
max-width: 420px;
padding: 40px;
position: relative;
overflow: hidden;
}
.auth-header {
text-align: center;
margin-bottom: 30px;
}
.logo {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
font-size: 1.5rem;
color: white;
margin-bottom: 5px;
}
.logo i {
background: linear-gradient(135deg, var(--primary), var(--accent));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 2rem;
}
.auth-header p { color: var(--text-muted); font-size: 0.95rem; }
.input-group {
position: relative;
margin-bottom: 20px;
}
.input-group i {
position: absolute;
left: 16px; top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
}
.input-group input {
width: 100%;
padding: 14px 16px 14px 45px;
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--glass-border);
border-radius: 12px;
color: white;
font-family: inherit;
font-size: 1rem;
transition: all 0.3s;
}
.input-group input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
outline: none;
}
.auth-switch {
text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9rem;
}
.auth-switch span {
color: var(--primary); cursor: pointer; font-weight: 600; transition: color 0.3s;
}
.auth-switch span:hover { color: var(--text-light); }
.error-msg { color: var(--danger); font-size: 0.85rem; margin-bottom: 15px; text-align: center; display: none; }
/* Dashboard Nav */
.navbar {
display: flex; justify-content: space-between; align-items: center;
padding: 15px 5%; width: 100%; position: sticky; top: 0; z-index: 100;
}
.user-profile { display: flex; align-items: center; gap: 20px; }
.username strong { color: var(--primary); font-weight: 600; }
/* Dashboard Main */
.dashboard-container {
max-width: 900px; margin: 40px auto; width: 90%;
display: grid; grid-template-columns: 1fr; gap: 30px;
}
.panel-header { margin-bottom: 25px; text-align: center; }
.panel-header h3 { font-size: 1.5rem; margin-bottom: 8px; font-weight: 600; }
.panel-header p { color: var(--text-muted); font-size: 0.95rem; }
/* Upload Area */
.analyzer-panel { padding: 40px; }
.upload-area {
border: 2px dashed var(--glass-border);
border-radius: 16px;
padding: 50px 20px;
text-align: center;
transition: all 0.3s;
background: rgba(0, 0, 0, 0.1);
cursor: pointer;
}
.upload-area:hover, .upload-area.dragover {
border-color: var(--primary);
background: rgba(59, 130, 246, 0.05);
}
.upload-icon {
font-size: 3rem; color: var(--primary); margin-bottom: 15px;
}
.file-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 15px; }
/* Preview */
.upload-preview { text-align: center; animation: fadeIn 0.4s ease; }
.upload-preview img {
max-width: 100%; max-height: 350px;
border-radius: 12px; margin-bottom: 20px;
box-shadow: 0 4px 20px rgba(0,0,0,0.4);
border: 1px solid var(--glass-border);
}
.preview-actions { display: flex; gap: 15px; justify-content: center; }
/* Loader */
.loader-container { text-align: center; padding: 40px 0; }
.spinner {
width: 50px; height: 50px;
border: 4px solid rgba(255,255,255,0.1);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
.scanning-bar {
height: 4px; width: 80%; background: linear-gradient(90deg, transparent, var(--primary), transparent);
margin: 0 auto 15px; border-radius: 2px;
animation: scan 2s ease-in-out infinite;
}
/* Results */
.hidden { display: none !important; }
.result-panel { padding: 40px; text-align: center; animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.result-title { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.verdict-container { margin-bottom: 30px; }
.verdict-badge {
display: inline-flex; align-items: center; gap: 10px;
padding: 12px 30px; border-radius: 50px;
font-size: 1.5rem; font-weight: 600; letter-spacing: 1px;
}
.verdict-real { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid var(--success); }
.verdict-fake { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid var(--danger); }
.metrics {
background: rgba(0, 0, 0, 0.2); border-radius: 16px; padding: 25px; margin-bottom: 30px;
border: 1px solid var(--glass-border);
}
.metric { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1.1rem; }
.progress-container { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; border-radius: 4px; transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
.auth-container {
padding: 30px 20px;
width: 90%;
}
.dashboard-container {
margin: 20px auto;
width: 95%;
gap: 20px;
}
.analyzer-panel, .result-panel {
padding: 25px 15px;
}
.upload-area {
padding: 30px 10px;
}
.navbar {
flex-direction: column;
gap: 15px;
padding: 15px 5%;
text-align: center;
}
.user-profile {
justify-content: center;
flex-wrap: wrap;
}
.verdict-badge {
font-size: 1rem;
padding: 15px 20px;
letter-spacing: 0px;
width: 100%;
justify-content: center;
}
.preview-actions {
flex-direction: column;
}
.btn { width: 100%; }
.blob-1 { width: 250px; height: 250px; }
.blob-2 { width: 200px; height: 200px; }
}
|