bitirme79's picture
Create static/css/style.css
675246a verified
Raw History Blame Contribute Delete
12.5 kB
/* ─── AI Detection Lab Β· style.css ─── */
/* Dark blue-white theme, no icons, minimal */
:root {
--bg: #080f1e;
--surface: #0e1729;
--surface-2: #141f35;
--surface-3: #1a2845;
--border: #1e3050;
--border-2: #243860;
--blue: #3b82f6;
--blue-hover: #2563eb;
--blue-dim: #1d4ed8;
--blue-soft: rgba(59,130,246,0.12);
--blue-glow: rgba(59,130,246,0.25);
--text: #e2e8f0;
--text-dim: #94a3b8;
--text-muted: #4e6280;
--green: #22c55e;
--green-soft: rgba(34,197,94,0.12);
--red: #ef4444;
--red-soft: rgba(239,68,68,0.12);
--sidebar-w: 220px;
--radius: 8px;
--radius-sm: 5px;
--transition: 0.18s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
font-family: 'Inter', system-ui, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
font-size: 14px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
.app { display: flex; min-height: 100vh; }
.sidebar {
width: var(--sidebar-w);
background: var(--surface);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
flex-shrink: 0;
position: sticky;
top: 0;
height: 100vh;
}
.sidebar-logo { padding: 24px 20px 20px; border-bottom: 1px solid var(--border); }
.logo-text { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; text-transform: uppercase; }
.sidebar-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-dim); font-size: 13.5px; font-weight: 500; transition: background var(--transition), color var(--transition); }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--blue-soft); color: var(--blue); }
.sidebar-footer { padding: 16px 16px 20px; border-top: 1px solid var(--border); }
.device-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.device-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.main-content { flex: 1; overflow-y: auto; padding: 40px 48px; max-width: 900px; }
.section { display: none; }
.section.active { display: block; }
.section.hidden { display: none; }
.section-header { margin-bottom: 28px; }
.section-header h2 { font-size: 20px; font-weight: 600; color: var(--text); margin: 6px 0 4px; }
.section-header p { font-size: 13px; color: var(--text-dim); }
.section-divider { margin: 40px 0 24px; }
.section-divider h2 { font-size: 20px; font-weight: 600; color: var(--text); margin: 6px 0 4px; }
.section-divider p { font-size: 13px; color: var(--text-dim); }
.step-badge { display: inline-block; font-size: 11px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.result-badge { color: var(--text-dim); }
.model-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 8px; }
.model-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; cursor: pointer; transition: border-color var(--transition), background var(--transition); position: relative; }
.model-card:hover { border-color: var(--border-2); background: var(--surface-2); }
.model-card.selected { border-color: var(--blue); background: var(--blue-soft); }
.model-card.unavailable { opacity: 0.4; cursor: not-allowed; }
.card-name { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.card-architecture { font-size: 11.5px; color: var(--text-dim); margin-bottom: 6px; line-height: 1.5; }
.card-architecture-label { color: var(--text-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; }
.card-dataset { font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }
.card-dataset-label { color: var(--text-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; margin-top: 8px; }
.card-unavailable { font-size: 11px; color: var(--red); margin-top: 8px; }
.card-selected-dot { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: none; }
.model-card.selected .card-selected-dot { display: block; }
.skeleton-card { height: 110px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; border-radius: var(--radius); border: 1px solid var(--border); }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.upload-panel { display: flex; flex-direction: column; gap: 16px; }
.drop-zone { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 160px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color var(--transition), background var(--transition); outline: none; }
.drop-zone:hover, .drop-zone:focus { border-color: var(--blue); background: var(--surface-2); }
.drop-zone.drag-over { border-color: var(--blue); background: var(--blue-soft); }
.drop-zone-idle { text-align: center; padding: 32px; }
.drop-main { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.drop-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.link-btn { background: none; border: none; color: var(--blue); font-size: inherit; padding: 0; cursor: pointer; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }
.drop-hint { font-size: 11.5px; color: var(--text-muted); }
.drop-zone-preview { display: flex; align-items: center; gap: 16px; padding: 20px 24px; width: 100%; }
.drop-zone-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.preview-meta { display: flex; align-items: center; gap: 12px; flex: 1; }
.preview-filename { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.remove-btn { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 12px; padding: 4px 10px; transition: border-color var(--transition), color var(--transition); }
.remove-btn:hover { border-color: var(--red); color: var(--red); }
.btn-analyze { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 24px; background: var(--blue); color: white; font-size: 14px; font-weight: 600; border: none; border-radius: var(--radius); transition: background var(--transition), opacity var(--transition); letter-spacing: 0.01em; }
.btn-analyze:hover:not(:disabled) { background: var(--blue-hover); }
.btn-analyze:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary { background: none; border: 1px solid var(--border); color: var(--text-dim); font-size: 13px; font-weight: 500; padding: 9px 20px; border-radius: var(--radius); margin-top: 20px; transition: border-color var(--transition), color var(--transition), background var(--transition); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.btn-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.results-panel { margin-top: 16px; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .results-grid { grid-template-columns: 1fr; } }
.result-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.verdict-card { display: flex; flex-direction: column; gap: 16px; }
.verdict-image-wrap img { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.verdict-label { font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.verdict-label.real { color: var(--green); }
.verdict-label.fake { color: var(--red); }
.verdict-confidence { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.verdict-model-info { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.probs-card { display: flex; flex-direction: column; gap: 16px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--text); }
.prob-bar-wrap { display: flex; flex-direction: column; gap: 6px; }
.prob-label-row { display: flex; justify-content: space-between; align-items: center; }
.prob-label { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.prob-dot { width: 6px; height: 6px; border-radius: 50%; }
.real-dot { background: var(--green); }
.fake-dot { background: var(--red); }
.prob-pct { font-size: 12px; font-weight: 600; color: var(--text); }
.prob-track { background: var(--surface-3); border-radius: 2px; height: 5px; overflow: hidden; }
.prob-bar { height: 100%; border-radius: 2px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.real-bar { background: var(--green); }
.fake-bar { background: var(--red); }
.confidence-meter { margin-top: 4px; }
.meter-label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }
.meter-track { background: var(--surface-3); border-radius: 2px; height: 5px; overflow: hidden; margin-bottom: 5px; }
.meter-fill { height: 100%; background: var(--blue); border-radius: 2px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.meter-text { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.ensemble-details { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.ensemble-title { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.ensemble-vote-summary { font-size: 11.5px; color: var(--text-dim); margin-bottom: 12px; }
.ensemble-votes-container { display: flex; flex-direction: column; gap: 8px; }
.ensemble-vote-row { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.ensemble-model-name { font-size: 12px; font-weight: 500; color: var(--text); }
.ensemble-vote-info { display: flex; align-items: center; gap: 12px; }
.ensemble-prob { font-size: 11.5px; color: var(--text-dim); }
.ensemble-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.05em; }
.ensemble-badge.ai { background: var(--red-soft); color: var(--red); }
.ensemble-badge.real { background: var(--green-soft); color: var(--green); }
.error-panel { margin-top: 16px; background: var(--red-soft); border: 1px solid rgba(239,68,68,0.25); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; color: var(--red); }
.model-detail-list { display: flex; flex-direction: column; gap: 10px; }
.model-detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.detail-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.detail-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.detail-dataset { font-size: 12px; color: var(--text-dim); }
.avail-badge { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.avail-badge.ok { background: var(--green-soft); color: var(--green); }
.avail-badge.missing { background: var(--red-soft); color: var(--red); }
.detail-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.65; margin-bottom: 14px; }
.detail-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-key { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.meta-val { font-size: 12.5px; color: var(--text-dim); }
.hidden { display: none !important; }