Spaces:
Runtime error
Runtime error
| @import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap'); | |
| :root { | |
| /* Professional Clean Palette (Corporate Style) */ | |
| --bg-main: #f8fafc; | |
| --bg-white: #ffffff; | |
| --sidebar-bg: #0f172a; | |
| --text-primary: #1e293b; | |
| --text-secondary: #64748b; | |
| --white: #ffffff; | |
| --brand-primary: #2563eb; | |
| --brand-hover: #1d4ed8; | |
| --success: #10b981; | |
| --danger: #ef4444; | |
| --warning: #f59e0b; | |
| --border-color: #e2e8f0; | |
| --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12); | |
| --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); | |
| --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); | |
| --radius: 8px; | |
| --transition: all 0.2s ease; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Public Sans', sans-serif; | |
| } | |
| body { | |
| background-color: var(--bg-main); | |
| color: var(--text-primary); | |
| min-height: 100vh; | |
| display: flex; | |
| } | |
| /* Sidebar Navigation */ | |
| .sidebar { | |
| width: 280px; | |
| background: var(--sidebar-bg); | |
| color: var(--white); | |
| padding: 2.5rem 1.5rem; | |
| display: flex; | |
| flex-direction: column; | |
| position: fixed; | |
| height: 100vh; | |
| left: 0; | |
| top: 0; | |
| } | |
| .sidebar-logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| margin-bottom: 3rem; | |
| padding: 0 0.5rem; | |
| } | |
| .sidebar-logo h1 { | |
| font-size: 1.5rem; | |
| font-weight: 800; | |
| letter-spacing: -0.5px; | |
| } | |
| .nav-links { | |
| list-style: none; | |
| flex-grow: 1; | |
| } | |
| .tab-button { | |
| width: 100%; | |
| text-align: left; | |
| background: transparent; | |
| border: none; | |
| color: #94a3b8; | |
| padding: 0.85rem 1rem; | |
| border-radius: var(--radius); | |
| font-weight: 600; | |
| cursor: pointer; | |
| margin-bottom: 0.5rem; | |
| font-size: 0.95rem; | |
| transition: var(--transition); | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .tab-button:hover { | |
| background: rgba(255, 255, 255, 0.05); | |
| color: var(--white); | |
| } | |
| .tab-button.active { | |
| background: var(--brand-primary); | |
| color: var(--white); | |
| } | |
| .user-profile { | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| padding-top: 1.5rem; | |
| margin-top: auto; | |
| } | |
| .username { | |
| display: block; | |
| font-weight: 700; | |
| margin-bottom: 0.25rem; | |
| } | |
| .logout-link { | |
| color: #fca5a5; | |
| font-size: 0.85rem; | |
| text-decoration: none; | |
| font-weight: 600; | |
| display: inline-block; | |
| cursor: pointer; | |
| } | |
| /* Main Content Area */ | |
| .main-wrapper { | |
| flex: 1; | |
| margin-left: 280px; | |
| padding: 3rem 4rem; | |
| max-width: 100vw; | |
| } | |
| .page-header { | |
| margin-bottom: 3rem; | |
| } | |
| .page-header h2 { | |
| font-size: 2rem; | |
| font-weight: 800; | |
| color: #0f172a; | |
| } | |
| .page-header p { | |
| color: var(--text-secondary); | |
| margin-top: 0.5rem; | |
| } | |
| /* Tab Navigation Visibility */ | |
| .tab-content { | |
| display: none; | |
| } | |
| .tab-content.active { | |
| display: block; | |
| animation: fadeIn 0.2s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| /* Content Card */ | |
| .content-card { | |
| background: var(--bg-white); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius); | |
| padding: 3rem; | |
| box-shadow: var(--shadow-sm); | |
| } | |
| /* Professional Upload Area */ | |
| .upload-area { | |
| border: 2px dashed #cbd5e1; | |
| border-radius: var(--radius); | |
| padding: 4rem; | |
| text-align: center; | |
| cursor: pointer; | |
| background: #fcfcfd; | |
| transition: var(--transition); | |
| } | |
| .upload-area:hover { | |
| border-color: var(--brand-primary); | |
| background: #eff6ff; | |
| } | |
| .upload-icon { | |
| font-size: 3rem; | |
| display: block; | |
| margin-bottom: 1rem; | |
| } | |
| .upload-text { | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .upload-subtext { | |
| color: var(--text-secondary); | |
| font-size: 0.85rem; | |
| margin-top: 0.5rem; | |
| } | |
| /* Buttons */ | |
| .btn-primary { | |
| background: var(--sidebar-bg); | |
| color: var(--white); | |
| border: none; | |
| padding: 1rem 2.5rem; | |
| font-weight: 700; | |
| border-radius: var(--radius); | |
| cursor: pointer; | |
| transition: var(--transition); | |
| margin-top: 2rem; | |
| width: 100%; | |
| font-size: 1rem; | |
| } | |
| .btn-primary:hover:not(:disabled) { | |
| background: #1e293b; | |
| transform: translateY(-1px); | |
| box-shadow: var(--shadow-md); | |
| } | |
| .btn-primary:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| /* Result Visualization */ | |
| .result-section { | |
| margin-top: 2rem; | |
| display: block; | |
| /* Already handled by placeholder injection */ | |
| animation: slideUp 0.3s ease-out; | |
| } | |
| @keyframes slideUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .verdict-box { | |
| padding: 2rem; | |
| border-radius: var(--radius); | |
| display: flex; | |
| align-items: center; | |
| gap: 1.5rem; | |
| margin-bottom: 2.5rem; | |
| border-left: 6px solid transparent; | |
| } | |
| .verdict-box.fake { | |
| background: #fef2f2; | |
| color: #991b1b; | |
| border-color: #ef4444; | |
| } | |
| .verdict-box.real { | |
| background: #f0fdf4; | |
| color: #166534; | |
| border-color: #10b981; | |
| } | |
| .verdict-title { | |
| font-size: 1.5rem; | |
| font-weight: 800; | |
| } | |
| /* Progress Tracker */ | |
| .analysis-progress { | |
| margin: 2rem 0; | |
| } | |
| .progress-info { | |
| display: flex; | |
| justify-content: space-between; | |
| font-weight: 700; | |
| margin-bottom: 0.75rem; | |
| color: var(--text-primary); | |
| } | |
| .progress-bar-bg { | |
| height: 12px; | |
| background: #e2e8f0; | |
| border-radius: 100px; | |
| overflow: hidden; | |
| } | |
| .progress-bar-fill { | |
| height: 100%; | |
| transition: width 1s ease; | |
| } | |
| .fill-danger { | |
| background: var(--danger); | |
| } | |
| .fill-success { | |
| background: var(--success); | |
| } | |
| /* Grid Details */ | |
| .metrics-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 1.5rem; | |
| margin-top: 2rem; | |
| } | |
| .metric-card { | |
| background: #f8fafc; | |
| padding: 1.5rem; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border-color); | |
| } | |
| .metric-label { | |
| font-size: 0.75rem; | |
| font-weight: 700; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .metric-value { | |
| font-size: 1.25rem; | |
| font-weight: 800; | |
| color: var(--text-primary); | |
| margin-top: 0.5rem; | |
| } | |
| /* History Archives */ | |
| .history-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .history-card { | |
| background: var(--bg-white); | |
| border: 1px solid var(--border-color); | |
| padding: 1.5rem 2rem; | |
| border-radius: var(--radius); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| transition: var(--transition); | |
| } | |
| .history-card:hover { | |
| border-color: #cbd5e1; | |
| } | |
| .history-info h4 { | |
| font-weight: 700; | |
| color: #334155; | |
| } | |
| .history-meta { | |
| font-size: 0.8rem; | |
| color: #94a3b8; | |
| margin-top: 0.25rem; | |
| } | |
| .history-verdict { | |
| padding: 0.4rem 1rem; | |
| border-radius: 100px; | |
| font-size: 0.75rem; | |
| font-weight: 800; | |
| } | |
| /* Previews - CENTERED */ | |
| .preview-container { | |
| margin: 2rem auto; | |
| display: none; | |
| border-radius: var(--radius); | |
| overflow: hidden; | |
| border: 1px solid var(--border-color); | |
| max-width: 600px; | |
| background: #000; | |
| } | |
| .preview-container img, | |
| .preview-container video, | |
| .preview-container audio { | |
| width: 100%; | |
| display: block; | |
| } | |
| .result-placeholder { | |
| margin-top: 2rem; | |
| width: 100%; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 1024px) { | |
| .sidebar { | |
| width: 80px; | |
| padding: 2rem 1rem; | |
| } | |
| .sidebar-logo h1, | |
| .username, | |
| .logout-link, | |
| .nav-text { | |
| display: none; | |
| } | |
| .main-wrapper { | |
| margin-left: 80px; | |
| padding: 2rem; | |
| } | |
| .tab-button { | |
| justify-content: center; | |
| padding: 1rem; | |
| } | |
| } | |
| /* Loading */ | |
| .loading-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(255, 255, 255, 0.9); | |
| z-index: 9999; | |
| display: none; | |
| align-items: center; | |
| justify-content: center; | |
| flex-direction: column; | |
| } | |
| .spinner { | |
| width: 40px; | |
| height: 40px; | |
| border: 3px solid #e2e8f0; | |
| border-top: 3px solid var(--brand-primary); | |
| border-radius: 50%; | |
| animation: spin 0.8s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } |