:root {
	--bg: #000000;          /* True pure black background */
	--card-bg: #08131a;     /* Deep dark teal card background */
	--border: #132a36;      /* Subtle dark blue-green border */
	--accent: #2dd4bf;      /* Vibrant teal (green-blue mix) accent */
	--accent-hover: #0d9488;/* Deeper teal for hover states */
	--text: #e2f1f8;        /* Soft icy blue-white for primary text */
	--text-muted: #5e828f;  /* Muted dark cyan-gray for secondary text */
}

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: var(--bg);
	color: var(--text);
	display: flex;
	justify-content: center;
	padding: 2rem 1rem;
	min-height: 100vh;
}

.container {
	width: 100%;
	max-width: 800px;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

header {
	border-bottom: 1px solid var(--border);
	padding-bottom: 1rem;
}

h1 { font-size: 1.5rem; color: var(--accent); margin-bottom: 0.25rem; }
p.subtitle { color: var(--text-muted); font-size: 1.0rem; }

.card {
	background-color: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	padding: 1.5rem;
}

.tabs {
	display: flex;
	gap: 1rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 1.5rem;
}

.tab-btn {
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 1.5rem;
	font-weight: 600;
	padding: 0.5rem 1rem;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}

.tab-btn.active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

label { font-size: 1.5rem; font-weight: 600; color: var(--text-muted); }

input[type="file"], textarea {
	background-color: var(--bg);
	border: 1px solid var(--border);
	color: var(--text);
	padding: 0.75rem;
	border-radius: 0.375rem;
	font-family: inherit;
}

textarea { resize: vertical; min-height: 100px; }

button.primary-btn {
	background-color: var(--accent);
	color: #0b0f19;
	font-weight: 700;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 0.375rem;
	cursor: pointer;
	transition: background 0.2s;
}

button.primary-btn:hover { background-color: var(--accent-hover); }

.preview-container {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

canvas {
	max-width: 100%;
	height: auto;
	border-radius: 0.375rem;
	border: 1px solid var(--border);
	background-color: #000;
}

.status-msg {
	margin-top: 1rem;
	padding: 0.75rem;
	border-radius: 0.375rem;
	font-size: 1.5rem;
	display: none;
}

.status-success { background: #064e3b; color: #6ee7b7; border: 1px solid #047857; }
.status-error { background: #7f1d1d; color: #fca5a5; border: 1px solid #b91c1c; }
.status-info { background: #1e3a8a; color: #93c5fd; border: 1px solid #1d4ed8; }
