
:root{
	--bg:#f7f7fb;
	--card:#ffffff;
	--accent:#2b6cb0;
	--muted:#6b7280;
	--text:#111827;
	--button-plain:#4a5568;
}

*{box-sizing:border-box}
body{
	font-family:Inter,Segoe UI,Roboto,Arial, sans-serif;
	background:var(--bg);
	margin:0;
	color:var(--text);
	display:flex;
	flex-direction:column;
	min-height:100vh;
	align-items:center;
	justify-content:flex-start;
	padding:24px;
}
.container{
	width:100%;
	max-width:800px;
	background:var(--card);
	padding:20px;
	border-radius:10px;
	box-shadow:0 6px 18px rgba(15,23,42,0.08);
}
h1{margin:0 0 12px;font-size:1.4rem}
label{display:block;margin-top:12px;margin-bottom:6px;color:var(--muted);font-size:0.9rem}
textarea{
	width:100%;
	min-height:120px;
	padding:12px;
	border:1px solid #e6e9ef;
	border-radius:8px;
	resize:vertical;
	font-size:1rem;
	background:var(--card);
	color:var(--text);
}
.controls{display:flex;gap:8px;margin-top:10px}
button{
	background:var(--accent);
	color:#fff;
	border:none;padding:8px 12px;border-radius:8px;cursor:pointer;font-weight:600
}
button#copyBtn{background:var(--button-plain)}
button:active{transform:translateY(1px)}
footer{margin-top:14px;color:var(--muted);font-size:0.875rem}

.diffArea{
	min-height:80px;
	border:1px solid #e6e9ef;
	border-radius:8px;
	padding:12px;
	background:var(--card);
	margin-top:6px;
	white-space:pre-wrap;
	font-size:1rem;
	color:var(--text);
}
.diffArea del.removed{background:rgba(239,68,68,0.08);color:#991b1b;text-decoration:line-through;padding:0 2px;border-radius:3px}
.diffArea ins.added{background:rgba(34,197,94,0.12);color:#065f46;text-decoration:none;padding:0 2px;border-radius:3px}

/* footer pinned at bottom */
.site-footer{
	position:static;
	padding:10px 0 0;
	text-align:center;
	color:var(--muted);
	background:transparent;
	font-size:0.9rem;
	margin-top:12px;
	width:100%;
}
.site-footer p{
	margin:0;
	display:inline-flex;
	gap:8px;
	align-items:center;
	justify-content:center;
	flex-wrap:wrap;
}
.site-footer a{
	color:var(--accent);
	text-decoration:none;
	font-weight:600;
}
.site-footer a:hover,
.site-footer a:focus-visible{
	text-decoration:underline;
}

/* Dark mode - automatic based on device setting */
@media (prefers-color-scheme: dark){
	:root{
		--bg:#0b1220;
		--card:#0f1724;
		--accent:#60a5fa;
		--muted:#9ca3af;
		--text:#e6eef8;
		--button-plain:#2d3748;
	}
	body{background:var(--bg);}
	textarea{border-color:rgba(255,255,255,0.06)}
	.diffArea{border-color:rgba(255,255,255,0.06)}
	.diffArea del.removed{background:rgba(239,68,68,0.12);color:#ffb4b4}
	.diffArea ins.added{background:rgba(16,185,129,0.12);color:#bbf7d0}
	button#copyBtn{background:var(--button-plain)}
}

