:root {
	--bg:#0f172a; /* slate-900 */
	--panel:#111827; /* gray-900 */
	--muted:#94a3b8; /* slate-400 */
	--text:#e5e7eb; /* gray-200 */
	--accent:#22d3ee; /* cyan-400 */
	--accent-2:#06b6d4; /* cyan-500 */
	--card:#0b1220; /* custom */
	--ok:#22c55e; /* green-500 */
	--warn:#f59e0b; /* amber-500 */
	--err:#ef4444; /* red-500 */
	--radius:16px;
}

* {
	box-sizing:border-box;
}

html, body {
	height:100%
}

body {
	margin:0;
	background:
		radial-gradient(1200px 800px at 10% -10%, #0b1b35 0%, var(--bg) 55%),
		radial-gradient(1000px 700px at 100% 0%, #0b223f 0%, rgba(15,23,42,0) 60%),
		var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	-webkit-font-smoothing:antialiased;
	line-height:1.45;
}

header {
	max-width:1100px;
	margin: 40px auto 24px;
	padding: 0 20px
}

h1 {
	font-size: clamp(24px,3.5vw,42px);
	margin:0 0 8px;
	letter-spacing:-0.02em
}

h2 {
	margin: 0;
}

p.subtitle {
	margin: 0;
	color: var(--muted);
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 80px;
}

.uploader {
	border: 1px dashed rgba(255,255,255,0.18);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
	padding: 28px;
	display: flex;
	gap: 20px;
	align-items: center;
	cursor: pointer;
	transition: border-color .2s, background .2s, transform .05s;
	user-select: none;
}

.uploader:hover {
	border-color: rgba(34,211,238,.9);
	background:
		linear-gradient(180deg, rgba(255,255,255,0.06),
		rgba(255,255,255,0.03));
}

.uploader.dragover {
	border-color: var(--accent);
	box-shadow:0 0 0 4px rgba(34,211,238,.15) inset;
}

.uploader .icon {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	display: grid;
	place-items: center;
}

.uploader .icon span {
	font-size:28px;
	font-weight:800;
	color:#06252b;
}

.uploader .text {
	flex:1 1 auto;
}

.uploader .text .title{
	font-weight:700;
}

.uploader .text .hint{
	color:var(--muted);
	font-size:14px;
}

.uploader input {
	display:none;
}

.file-types {
	font-size:13px;
	color:var(--muted);
}

.results {
	margin-top:28px;
	display:grid;
	gap:16px;
}

.card {
	border:1px solid rgba(255,255,255,0.08);
	background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
	border-radius:var(--radius);
	padding:18px;
}

.card h3{
	margin:0 0 8px;
	font-size:18px;
}

.meta {
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	color:var(--muted);
	font-size:13px;
	margin-bottom:10px;
}

.badge {
	display:inline-flex;
	align-items:center;
	gap:6px;
	padding:4px 8px;
	border-radius:999px;
	background:rgba(148,163,184,0.12);
	border:1px solid rgba(148,163,184,0.2);
}

.badge.ok {
	background:rgba(34,197,94,0.12);
	border-color:rgba(34,197,94,0.22);
	color:#9be7b1;
}

.badge.warn {
	background:rgba(245,158,11,0.12);
	border-color:rgba(245,158,11,0.22);
	color:#ffd489;
}

.sheet {
	border:1px solid rgba(255,255,255,0.08);
	border-radius:12px;
	overflow:auto;
}

table {
	width:100%;
	border-collapse:collapse;
	font-size:14px;
}

thead {
	background:rgba(2,6,23,0.6);
}

th, td {
	padding:8px 10px;
	border-bottom:1px solid rgba(255,255,255,0.06);
}

tbody tr:nth-child(odd) {
	background:rgba(148,163,184,0.04)
}

.sheet-header {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	margin:10px 0;
}

.sheet-header .title {
	font-weight:600;
}

.actions {
	display:flex;
	gap:8px;
	flex-wrap:wrap;
}

button {
	border:1px solid rgba(255,255,255,0.14);
	background:rgba(255,255,255,0.04);
	color:var(--text);
	padding:8px 10px;
	border-radius:10px;
	cursor:pointer;
	font-weight:600;
}

button:hover {
	border-color:rgba(34,211,238,.5);
}

.footer {
	margin-top:32px;
	color:var(--muted);
	font-size:13px;
}

.small {
	font-size:12px;
	color:var(--muted);
}

.hidden {
	display:none;
}
