VeriDex / style.css
Rakesh Kumar Raut
Initial commit of VeriDex source code (no binaries)
3e9c053
Raw
History Blame Contribute Delete
18.4 kB
:root {
--bg-dark: #06090f;
--bg-surface: #0c1120;
--glass-bg: rgba(15, 22, 42, 0.7);
--glass-bg-light: rgba(25, 35, 60, 0.55);
--glass-border: rgba(255, 255, 255, 0.07);
--glass-border-hover: rgba(255, 255, 255, 0.14);
--primary: #3b82f6;
--primary-light: #60a5fa;
--primary-glow: rgba(59, 130, 246, 0.35);
--accent: #8b5cf6;
--accent-glow: rgba(139, 92, 246, 0.3);
--text-main: #f1f5f9;
--text-secondary: #cbd5e1;
--text-muted: #64748b;
--success: #10b981;
--success-glow: rgba(16, 185, 129, 0.25);
--danger: #ef4444;
--danger-glow: rgba(239, 68, 68, 0.25);
--warning: #f59e0b;
--warning-glow: rgba(245, 158, 11, 0.25);
--radius-sm: 8px;
--radius-md: 14px;
--radius-lg: 20px;
--radius-xl: 28px;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Outfit', sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
min-height: 100vh;
overflow-x: hidden;
position: relative;
line-height: 1.6;
}
.background-orbs {
position: fixed;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
.orb {
position: absolute;
border-radius: 50%;
filter: blur(120px);
opacity: 0.4;
animation: orbFloat 25s infinite ease-in-out alternate;
}
.orb-1 {
width: 500px;
height: 500px;
background: radial-gradient(circle, #3b82f6, #1d4ed8);
top: -15%;
left: -10%;
}
.orb-2 {
width: 400px;
height: 400px;
background: radial-gradient(circle, #8b5cf6, #6d28d9);
bottom: -15%;
right: -8%;
animation-delay: -8s;
}
.orb-3 {
width: 250px;
height: 250px;
background: radial-gradient(circle, #06b6d4, #0891b2);
top: 50%;
left: 60%;
opacity: 0.2;
animation-delay: -15s;
}
@keyframes orbFloat {
0% { transform: translate(0, 0) scale(1); }
50% { transform: translate(30px, -20px) scale(1.05); }
100% { transform: translate(60px, 40px) scale(1); }
}
.container {
max-width: 1000px;
margin: 0 auto;
padding: 2rem 1.5rem 4rem;
}
header {
text-align: center;
margin-bottom: 2.5rem;
padding-top: 1rem;
}
header h1 {
font-size: clamp(2.2rem, 5vw, 3.2rem);
font-weight: 800;
background: linear-gradient(135deg, #60a5fa, #a78bfa, #38bdf8);
background-size: 200% 200%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -1.5px;
animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.subtitle {
color: var(--text-muted);
font-size: 1.05rem;
margin-top: 0.4rem;
font-weight: 300;
letter-spacing: 0.5px;
}
.glass-panel {
background: var(--glass-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--glass-border);
border-radius: var(--radius-lg);
padding: 2rem;
box-shadow:
0 4px 30px rgba(0, 0, 0, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.04);
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover {
border-color: var(--glass-border-hover);
}
.mode-indicator {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin-bottom: 1.8rem;
}
.mode-pill {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.4rem 1rem;
border-radius: 50px;
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 0.5px;
text-transform: uppercase;
background: rgba(59, 130, 246, 0.12);
color: var(--primary-light);
border: 1px solid rgba(59, 130, 246, 0.2);
transition: all 0.4s ease;
}
.mode-pill .mode-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--primary-light);
animation: pulse 2s ease-in-out infinite;
}
.mode-pill[data-mode="image"] {
background: rgba(139, 92, 246, 0.12);
color: #a78bfa;
border-color: rgba(139, 92, 246, 0.2);
}
.mode-pill[data-mode="image"] .mode-dot { background: #a78bfa; }
.mode-pill[data-mode="combined"] {
background: rgba(6, 182, 212, 0.12);
color: #22d3ee;
border-color: rgba(6, 182, 212, 0.2);
}
.mode-pill[data-mode="combined"] .mode-dot { background: #22d3ee; }
.mode-pill[data-mode="empty"] {
background: rgba(100, 116, 139, 0.12);
color: var(--text-muted);
border-color: rgba(100, 116, 139, 0.2);
}
.mode-pill[data-mode="empty"] .mode-dot {
background: var(--text-muted);
animation: none;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.4; transform: scale(0.8); }
}
.input-card {
margin-bottom: 2rem;
}
.input-card h2 {
font-size: 1.4rem;
font-weight: 700;
margin-bottom: 0.3rem;
color: var(--text-main);
}
.input-card .input-subtitle {
color: var(--text-muted);
font-size: 0.9rem;
margin-bottom: 1.5rem;
}
.input-group {
margin-bottom: 1.3rem;
}
.input-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
font-size: 0.9rem;
color: var(--text-secondary);
}
textarea {
width: 100%;
background: rgba(0, 0, 0, 0.35);
border: 1px solid var(--glass-border);
border-radius: var(--radius-sm);
padding: 0.9rem 1rem;
color: var(--text-main);
font-family: 'Outfit', sans-serif;
font-size: 0.95rem;
resize: vertical;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
line-height: 1.5;
}
textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px var(--primary-glow);
}
textarea::placeholder {
color: var(--text-muted);
}
.file-upload-zone {
position: relative;
background: rgba(0, 0, 0, 0.25);
border: 2px dashed rgba(255, 255, 255, 0.1);
border-radius: var(--radius-md);
padding: 2rem 1.5rem;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
overflow: hidden;
}
.file-upload-zone:hover {
border-color: var(--primary);
background: rgba(59, 130, 246, 0.04);
}
.file-upload-zone.drag-over {
border-color: var(--primary-light);
background: rgba(59, 130, 246, 0.08);
transform: scale(1.01);
}
.file-upload-zone input[type="file"] {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
z-index: 2;
}
.upload-placeholder {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.6rem;
pointer-events: none;
}
.upload-icon {
font-size: 2rem;
opacity: 0.5;
}
.upload-text {
color: var(--text-muted);
font-size: 0.9rem;
}
.upload-hint {
color: var(--text-muted);
font-size: 0.75rem;
opacity: 0.6;
}
.image-preview-container {
display: none;
position: relative;
pointer-events: none;
}
.image-preview-container.active {
display: flex;
align-items: center;
gap: 1rem;
}
.image-preview-thumb {
width: 80px;
height: 80px;
border-radius: var(--radius-sm);
object-fit: cover;
border: 2px solid var(--glass-border);
}
.image-preview-info {
text-align: left;
}
.image-preview-name {
font-weight: 600;
font-size: 0.9rem;
color: var(--text-main);
word-break: break-all;
}
.image-preview-size {
font-size: 0.8rem;
color: var(--text-muted);
}
.image-remove-btn {
position: absolute;
top: -6px;
right: -6px;
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--danger);
color: #fff;
border: none;
font-size: 0.75rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
pointer-events: all;
z-index: 3;
transition: transform 0.2s ease;
line-height: 1;
}
.image-remove-btn:hover {
transform: scale(1.15);
}
.btn-primary {
width: 100%;
padding: 0.9rem;
border: none;
border-radius: var(--radius-sm);
background: linear-gradient(135deg, var(--primary), var(--accent));
color: white;
font-family: 'Outfit', sans-serif;
font-size: 1.05rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
box-shadow: 0 4px 20px var(--primary-glow);
margin-top: 0.5rem;
}
.btn-primary:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 8px 30px var(--primary-glow);
}
.btn-primary:active:not(:disabled) {
transform: translateY(0);
}
.btn-primary:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.loader {
width: 20px;
height: 20px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 0.8s linear infinite;
display: none;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.hidden { display: none !important; }
.results-section {
margin-top: 2rem;
}
.results-section.animate-in .glass-panel {
animation: fadeSlideUp 0.5s ease both;
}
.results-section.animate-in .glass-panel:nth-child(1) { animation-delay: 0s; }
.results-section.animate-in .glass-panel:nth-child(2) { animation-delay: 0.1s; }
.results-section.animate-in .glass-panel:nth-child(3) { animation-delay: 0.2s; }
.results-section.animate-in .glass-panel:nth-child(4) { animation-delay: 0.3s; }
@keyframes fadeSlideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.verdict-banner {
text-align: center;
padding: 2.5rem 2rem;
margin-bottom: 1.5rem;
position: relative;
overflow: hidden;
}
.verdict-banner::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse at center, var(--verdict-glow, transparent) 0%, transparent 70%);
opacity: 0.15;
pointer-events: none;
}
.verdict-banner .section-label {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--text-muted);
margin-bottom: 1rem;
font-weight: 400;
}
.verdict-tag {
display: inline-block;
padding: 0.7rem 2rem;
border-radius: 50px;
font-size: 1.3rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
color: #fff;
position: relative;
}
.risk-score-display {
margin-top: 1.2rem;
font-size: 2.5rem;
font-weight: 800;
letter-spacing: -1px;
}
.risk-score-label {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-muted);
margin-top: 0.2rem;
}
.logic-summary {
margin-top: 1.2rem;
padding: 1rem 1.2rem;
background: rgba(255, 255, 255, 0.04);
border-radius: var(--radius-sm);
font-size: 0.92rem;
color: var(--text-secondary);
line-height: 1.6;
border-left: 3px solid var(--primary);
}
.stat-card {
margin-bottom: 1.5rem;
}
.stat-card h4 {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 0.2rem;
color: var(--text-main);
}
.stat-desc {
color: var(--text-muted);
font-size: 0.82rem;
margin-bottom: 1.3rem;
font-weight: 300;
}
.progress-bar-container {
margin-bottom: 1rem;
}
.progress-label {
display: flex;
justify-content: space-between;
font-size: 0.85rem;
margin-bottom: 0.4rem;
color: var(--text-secondary);
}
.progress-label .prob-value {
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.progress-bar {
width: 100%;
height: 8px;
background: rgba(255, 255, 255, 0.06);
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
border-radius: 4px;
transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
width: 0%;
}
.fake-fill {
background: linear-gradient(90deg, #dc2626, #ef4444);
box-shadow: 0 0 8px var(--danger-glow);
}
.real-fill {
background: linear-gradient(90deg, #059669, #10b981);
box-shadow: 0 0 8px var(--success-glow);
}
.gauge-container {
display: flex;
align-items: center;
justify-content: center;
gap: 3rem;
padding: 1.5rem 0;
flex-wrap: wrap;
}
.gauge {
position: relative;
width: 140px;
height: 140px;
display: flex;
flex-direction: column;
align-items: center;
}
.gauge svg {
width: 140px;
height: 140px;
transform: rotate(-90deg);
}
.gauge-bg {
fill: none;
stroke: rgba(255, 255, 255, 0.06);
stroke-width: 8;
}
.gauge-fill {
fill: none;
stroke-width: 8;
stroke-linecap: round;
transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gauge-fill.danger {
stroke: var(--danger);
filter: drop-shadow(0 0 6px var(--danger-glow));
}
.gauge-fill.success {
stroke: var(--success);
filter: drop-shadow(0 0 6px var(--success-glow));
}
.gauge-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.gauge-value {
font-size: 1.6rem;
font-weight: 800;
letter-spacing: -0.5px;
line-height: 1;
}
.gauge-value.danger { color: var(--danger); }
.gauge-value.success { color: var(--success); }
.gauge-label {
font-size: 0.7rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-top: 0.8rem;
font-weight: 600;
}
.image-comparison-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.image-panel {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.image-panel h4 {
margin-bottom: 0.8rem;
font-size: 1rem;
color: var(--text-secondary);
font-weight: 600;
}
.image-panel img {
width: 100%;
max-width: 100%;
height: auto;
border-radius: var(--radius-md);
border: 1px solid var(--glass-border);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
object-fit: cover;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-panel img:hover {
transform: scale(1.02);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.logic-breakdown {
margin-top: 1.5rem;
padding-top: 1.2rem;
border-top: 1px solid var(--glass-border);
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.logic-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.7rem;
font-size: 0.95rem;
padding: 0.4rem 0;
}
.logic-label {
color: var(--text-muted);
font-weight: 400;
}
.logic-value {
font-weight: 700;
text-align: right;
}
.evidence-card {
margin-bottom: 1.5rem;
}
.evidence-card h4 {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 0.2rem;
}
.evidence-list {
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.evidence-item {
background: rgba(0, 0, 0, 0.25);
border-left: 3px solid var(--primary);
padding: 1rem 1.2rem;
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
transition: background 0.2s ease, transform 0.2s ease;
}
.evidence-item:hover {
background: rgba(0, 0, 0, 0.35);
transform: translateX(3px);
}
.evidence-item.pro { border-left-color: var(--success); }
.evidence-item.con { border-left-color: var(--danger); }
.evidence-source {
font-weight: 600;
margin-bottom: 0.4rem;
font-size: 0.85rem;
color: var(--primary-light);
}
.evidence-source .credibility-tag {
font-size: 0.72rem;
color: var(--text-muted);
font-weight: 400;
}
.evidence-snippet {
font-size: 0.9rem;
color: var(--text-secondary);
margin-bottom: 0.6rem;
line-height: 1.5;
font-style: italic;
}
.evidence-stance-badge {
display: inline-block;
padding: 0.25rem 0.7rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.3px;
}
.badge-pro {
background: rgba(16, 185, 129, 0.15);
color: var(--success);
}
.badge-con {
background: rgba(239, 68, 68, 0.15);
color: var(--danger);
}
.no-evidence {
color: var(--text-muted);
font-style: italic;
padding: 1rem;
text-align: center;
font-size: 0.9rem;
}
.combined-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.combined-column-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1.2rem;
padding-bottom: 0.8rem;
border-bottom: 1px solid var(--glass-border);
}
.column-icon {
font-size: 1.2rem;
}
.column-title {
font-size: 1rem;
font-weight: 700;
color: var(--text-main);
}
.column-subtitle {
font-size: 0.75rem;
color: var(--text-muted);
font-weight: 400;
margin-left: auto;
}
.image-status-compact {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.8rem 1rem;
background: rgba(0, 0, 0, 0.2);
border-radius: var(--radius-sm);
margin-bottom: 1rem;
}
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
.status-dot.safe { background: var(--success); box-shadow: 0 0 6px var(--success-glow); }
.status-dot.danger { background: var(--danger); box-shadow: 0 0 6px var(--danger-glow); }
.status-dot.neutral { background: var(--text-muted); }
.image-status-text {
font-size: 0.85rem;
color: var(--text-secondary);
}
.compact-heatmap {
width: 100%;
border-radius: var(--radius-sm);
border: 1px solid var(--glass-border);
margin-top: 0.8rem;
}
@media (max-width: 768px) {
.container {
padding: 1.2rem 1rem 3rem;
}
.image-comparison-grid,
.combined-grid {
grid-template-columns: 1fr;
}
.gauge-container {
gap: 1.5rem;
}
.verdict-tag {
font-size: 1.1rem;
padding: 0.6rem 1.5rem;
}
.risk-score-display {
font-size: 2rem;
}
.glass-panel {
padding: 1.4rem;
}
.logic-row {
flex-direction: column;
align-items: flex-start;
gap: 0.2rem;
}
}
@media (max-width: 480px) {
header h1 {
font-size: 2rem;
}
.gauge {
width: 110px;
height: 110px;
}
.gauge svg {
width: 110px;
height: 110px;
}
.gauge-value {
font-size: 1.3rem;
}
}