body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: radial-gradient(1200px 600px at 10% 10%, rgba(6,30,60,0.28), transparent), radial-gradient(900px 400px at 90% 90%, rgba(10,40,60,0.18), transparent), #030412; color: #e6eef8; }
.container { max-width:980px; margin:26px auto; background:transparent; padding:12px; border-radius:12px; }
.centered { display:flex; justify-content:center; }
.upload-panel { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.file-label { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px dashed rgba(255,255,255,0.04); border-radius:8px; cursor:pointer; }
.file-label input { display:none; }
.btn { padding:8px 14px; background:#2b7cff; color:white; border:none; border-radius:8px; cursor:pointer; }
.btn:disabled { background:#678fd9; cursor:not-allowed; }
.result { margin-top:12px; white-space:normal; }
.ok { color: #9ef1c9; font-weight:700; margin-bottom:6px; }
.err { color:#ff9aa2; font-weight:700; margin-bottom:6px; }
pre { background:rgba(2,8,10,0.28); padding:12px; border-radius:8px; color:#dff7ef; }

/* Hero / glowing heading */
.site-header { padding:18px 24px; }
.header-inner { display:flex; gap:12px; align-items:center; max-width:980px; margin:0 auto; }
.logo { font-size:28px; }
.glow { font-size:44px; letter-spacing:2px; margin:0; font-weight:800; color:#cfe9ff; text-transform:uppercase; text-shadow:0 0 18px rgba(43,124,255,0.28), 0 0 36px rgba(43,124,255,0.12); }
.sub { color: rgba(230,238,248,0.75); margin-top:4px; }

/* Report controls */
.report-controls { margin-top:12px; display:flex; gap:8px; align-items:center; }
.download-btn { background: linear-gradient(90deg,#00e0b0,#00a6ff); color:#012226; padding:8px 12px; border-radius:8px; font-weight:700; text-decoration:none; display:inline-block; }
.download-btn:hover { filter:brightness(1.03); transform:translateY(-1px); }

/* subtle animated aurora */
.container::before { content: ''; position: absolute; left: 0; right:0; top:0; bottom:0; pointer-events: none; background: radial-gradient(circle at 10% 20%, rgba(43,124,255,0.06), transparent 10%), radial-gradient(circle at 85% 80%, rgba(75,192,255,0.04), transparent 12%); mix-blend-mode: screen; }

/* Processing overlay */
.processing {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(2,6,23,0.5);
	z-index: 60;
}
.processing-box {
	background: rgba(10,20,40,0.9);
	color: #dbefff;
	padding: 18px 22px;
	border-radius: 10px;
	display: flex;
	gap: 14px;
	align-items: center;
	box-shadow: 0 8px 30px rgba(43,124,255,0.12);
}
.spinner {
	width:36px; height:36px; border-radius:50%;
	border:4px solid rgba(255,255,255,0.08);
	border-top-color: #5fc0ff;
	animation: spin 1s linear infinite;
	box-shadow: 0 0 18px rgba(95,192,255,0.08);
}
.processing-text { font-weight:600; font-size:14px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Make the main container slightly translucent to show glow */
.container { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.04); }

/* Grid layout fallback (legacy) */
.grid { display:grid; grid-template-columns: 1fr 420px; gap:28px; align-items:start; }


.card { width:100%; max-width:640px; border-radius:14px; overflow:hidden; box-shadow:0 18px 60px rgba(2,6,23,0.6); border:1px solid rgba(255,255,255,0.04); }
.card-header { background: linear-gradient(90deg,#082031, #06212b); padding:18px; }
.card-title { font-weight:700; color:#d8fbf0; }
.card-sub { color:rgba(232,251,245,0.6); font-size:13px; margin-top:6px; }
.card-body { padding:18px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); }

.file-drop { display:block; border:2px dashed rgba(143,232,214,0.08); padding:22px; border-radius:12px; cursor:pointer; transition:all 160ms ease; min-height:120px; display:flex; align-items:center; }
.file-drop:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(11,65,60,0.08); }
.drop-inner { display:flex; gap:12px; align-items:center; }
.drop-icon { font-size:28px; }
.drop-text { color:rgba(232,251,245,0.75); }
.file-drop input { display:none; }

/* Dragover pulse/glow */
.file-drop.dragover {
	box-shadow: 0 30px 80px rgba(0,180,200,0.14), 0 8px 32px rgba(0,160,200,0.06) inset;
	transform: translateY(-8px) scale(1.01);
	border-color: rgba(0,200,160,0.45);
}

/* subtle floating animation for card */
.card { transition: transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 420ms ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 36px 90px rgba(0,20,40,0.6); }

/* Upload button glow effect */
.btn.primary { position:relative; overflow:visible; }
.btn.primary::after { content:''; position:absolute; inset:-6px; background: radial-gradient(circle at 30% 20%, rgba(0,180,160,0.06), transparent 10%), radial-gradient(circle at 70% 80%, rgba(0,120,255,0.04), transparent 12%); border-radius:14px; opacity:0; transition:opacity 220ms ease; z-index:-1; }
.btn.primary:hover::after { opacity:1; }
.btn.primary:active { transform: translateY(1px) scale(0.998); }

/* upload percent badge in the button */
.upload-pct { font-weight:800; color:#e6fff6; background:rgba(2,12,20,0.6); padding:4px 8px; border-radius:10px; font-size:12px; margin-left:8px; box-shadow:0 6px 18px rgba(0,30,40,0.45); border:1px solid rgba(255,255,255,0.04); display:inline-flex; align-items:center; }

/* small motion for toast */
.toast.show { animation: toastIn 360ms ease both; }
@keyframes toastIn { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity:1; } }

.controls { display:flex; align-items:center; gap:12px; margin-top:12px; }
.btn.primary { background:linear-gradient(90deg,#00d6a8,#00b3ff); color:#012226; border:none; padding:12px 16px; border-radius:10px; font-weight:800; box-shadow:0 8px 30px rgba(0,160,200,0.06); }
.small { font-size:12px; color:rgba(232,251,245,0.6); }

.result { margin-top:12px; white-space:normal; padding-top:8px; }

.preview { margin-top:12px; display:flex; justify-content:center; }
.preview-img { max-width:100%; max-height:220px; border-radius:8px; box-shadow:0 12px 40px rgba(3,10,15,0.6); border:1px solid rgba(255,255,255,0.03); }

.report-header { display:flex; gap:8px; align-items:center; margin-top:8px; }
.report-body { margin-top:8px; background:rgba(2,8,10,0.28); padding:12px; border-radius:10px; color:#e6f7f4; }
.btn.small { padding:6px 8px; font-size:13px; border-radius:8px; background:rgba(255,255,255,0.03); color:#d9fff4; border:1px solid rgba(255,255,255,0.02); cursor:pointer; }
.btn.small:hover { transform:translateY(-2px); }

/* Toast */
.toast { position:fixed; right:20px; bottom:20px; min-width:240px; max-width:320px; background:linear-gradient(180deg,#022c2a,#021f20); color:#d6fff6; padding:12px 14px; border-radius:10px; box-shadow:0 8px 30px rgba(2,6,23,0.6); opacity:0; transform:translateY(20px); transition:all 220ms ease; z-index:120; }
.toast.show { opacity:1; transform:translateY(0); }

/* Responsive */
@media (max-width:880px) {
	.grid { grid-template-columns: 1fr; }
	.right { order: -1; }
}
