* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: system-ui, -apple-system, sans-serif;
	background: #f9f9f9;
	color: #111;
	padding: 20px;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.5;
}

h1 {
	font-size: 1.6rem;
	text-align: center;
	margin-bottom: 20px;
}

.drop-zone {
	border: 2px dashed #aaa;
	padding: 40px;
	text-align: center;
	border-radius: 16px;
	background: #fff;
	transition: background .2s;
	cursor: pointer;
}

.drop-zone.dragover {
	background: #eef;
	border-color: #4477ff;
}

.btn {
	background: #3f3f3f;
	color: #fff;
	border: none;
	padding: .5em 1em;
	border-radius: 12px;
	cursor: pointer;
	margin: 5px;
	font-size: .95rem;
	transition: background .2s;
	text-decoration: none;
	height: auto;
	line-height: 1.2;
}

.btn:hover {
	background: #1d1d1d;
}

.btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.file-input {
	display: none;
}

.preview-section {
	margin: 20px 0;
	display: none;
}

.image-preview {
	max-width: 100%;
	max-height: 400px;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
	margin-bottom: 12px;
}

#downloadSection img {
	max-height: 10rem;
}

#downloadSection {
	margin: 20px 0;
	display: none;
	text-align: center;
	flex-direction: row;
	background: #e8e8e8;
	padding: 15px;
	justify-content: center;
	align-items: center;
	border-radius: 15px;
}

.fuj {
	visibility: none;
	display: none;
	opacity: 0;
	z-index: -999999;
}

@media (prefers-color-scheme: dark) {
	body {
		background: #121212;
		color: #eee;
	}

	.drop-zone {
		background: #1e1e1e;
		border-color: #555;
		color: #ddd;
	}

	.drop-zone.dragover {
		background: #2a2a2a;
		border-color: #4488ff;
	}

	.btn {
		background: #333;
		color: #fff;
	}

	.btn:hover {
		background: #555;
	}

	#downloadSection {
		background: #1e1e1e;
	}

	.image-preview {
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
	}
}
