html,
body {
	height: 100%;
	margin: 0;
}

html {
	transition:
		background-color 0.4s ease,
		color 0.4s ease;
}

button {
	transition:
		background-color 0.3s ease,
		border-color 0.3s ease,
		color 0.3s ease,
		box-shadow 0.3s ease,
		transform 0.15s ease;
}

#clear-all {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

#copy-status.show {
	opacity: 1;
	color: #327a7a;
}

.logo.vanilla:hover {
	filter: drop-shadow(0 0 2em #ffe21c);
}
:root {
	font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;

	color: #0f0f0f;
	background-color: #f6f6f6;

	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;

	--color-bg: #f9fafb;
	--color-text: #1a1a1a;
	--color-accent: #327a7a;
	--color-accent-hover: #255e5e;
	--color-border: #d0eae9;
	--color-link: #327a7a;
	--color-link-hover: #265f5f;

	color: var(--color-text);
	background-color: var(--color-bg);
}

.container {
	margin: 0;
	padding-top: 10vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.logo {
	height: 6em;
	padding: 1.5em;
	will-change: filter;
	transition: 0.75s;
}

.logo.tauri:hover {
	filter: drop-shadow(0 0 2em #24c8db);
}

.row {
	display: flex;
	justify-content: center;
}

a {
	font-weight: 500;
	color: var(--color-link);
	text-decoration: inherit;
}

a:hover {
	color: var(--color-link-hover);
}

h1 {
	text-align: center;
}

h1,
h3 {
	color: var(--color-accent);
	border-bottom-color: var(--color-border);
}

input,
button {
	border-radius: 8px;
	border: 1px solid transparent;
	padding: 0.6em 1.2em;
	font-size: 1em;
	font-weight: 500;
	font-family: inherit;
	color: #0f0f0f;
	background-color: #ffffff;
	transition: border-color 0.25s;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

button {
	cursor: pointer;
}

button:hover {
	border-color: var(--color-accent);
	background: #e7f5f5;
	border-color: #396cd8;
}
button:active {
	border-color: #396cd8;
	background-color: #e8e8e8;
}

input,
button {
	outline: none;
}

#greet-input {
	margin-right: 5px;
}

@media (prefers-color-scheme: dark) {
	:root {
		color: #f6f6f6;
		background-color: #2f2f2f;
	}

	a:hover {
		color: #24c8db;
	}

	input,
	button {
		color: #ffffff;
		background-color: #0f0f0f98;
	}
	button:active {
		background-color: #0f0f0f69;
	}
}

.button-row {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}

.button-row button {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	/*	touch-action: manipulation; */
	-webkit-tap-highlight-color: transparent;
}

button {
	background: #f0f0f0;
	border: 1px solid #bbb;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
}
button:hover {
	background: #e0f7f7;
}
#text-result {
	white-space: pre-wrap;
	word-wrap: break-word;
	border: 1px solid #ccc;
	padding: 8px;
	font-family: monospace;
}

body {
	font-family: system-ui, sans-serif;
	max-width: 800px;
	margin: 0 auto;
	padding: 1.5rem;
	line-height: 1.4;
}

h1 {
	color: #327a7a;
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid #e0f7f7;
}

h3 {
	color: #327a7a;
	font-size: 1rem;
	font-weight: 500;
	margin: 1rem 0 0.25rem 0;
}

textarea {
	width: 100%;
	height: 100px; /* was 120px */
	font-size: 13pt; /* was 14pt */
	font-family: Monaco, monospace;
	border: 1px solid #327a7a;
	border-radius: 4px;
	padding: 8px; /* was 10px */
	box-sizing: border-box;
}

.options-row {
	display: flex;
	align-items: center;
	gap: 8px; /* was 12px */
	margin: 8px 0; /* was 12px */
	padding: 4px 0; /* was 8px */
	font-size: 0.9rem; /* was 0.95rem */
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px; /* was 10px */
	margin: 8px 0; /* was 16px */
}

button {
	background: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 6px 12px; /* was 10x16px */
	font-size: 0.9rem; /* was 0.95rem */
	cursor: pointer;
}

button:hover {
	background: #e8f4f4;
	border-color: #327a7a;
}

#text-result {
	font-size: 14pt; /* was 15pt */
	font-family: Monaco, monospace;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px; /* was 16px */
	background: #fafbfc;
	white-space: pre-wrap;
	word-wrap: break-word;
	margin: 8px 0; /* was 12px */
	min-height: 60px; /* was 80px */
}

#legend {
	font-size: 0.85rem; /* was 0.9rem */
	line-height: 1.4; /* was 1.6 */
	margin-top: 8px; /* was 12px */
	padding: 8px; /* was 12px */
	background: #f8f9fa;
	border-left: 3px solid #327a7a;
	border-radius: 3px;
}

.drop-zone {
	border: 2px dashed #327a7a;
	border-radius: 6px;
	padding: 20px;
	text-align: center;
	margin: 12px 0;
	background: #f8fdfc;
	transition: all 0.2s;
}

.drop-zone.dragover {
	background: #e0f7f7;
	border-color: #1e5f5f;
}

button[data-shortcut]::after {
	content: attr(data-shortcut-label);
	margin-left: 8px;
	font-size: 0.8rem;
	font-weight: 500;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: Monaco, monospace;
	background: rgba(50, 122, 122, 0.1);
	color: #245c5c;
	opacity: 0.4; /* soft by default */
	transition:
		opacity 0.25s ease,
		background 0.25s ease;
	pointer-events: none; /* avoid hover jitter */
}

button[data-shortcut]:hover::after,
button[data-shortcut]:focus-visible::after {
	opacity: 1;
	background: rgba(50, 122, 122, 0.2);
}

button:focus-visible,
textarea:focus-visible {
	outline: 2px solid #327a7a;
	outline-offset: 2px;
}

button:focus-visible {
	box-shadow: 0 0 0 3px rgba(50, 122, 122, 0.25);
}

#copy-status {
	opacity: 0;
	transition: opacity 0.3s;
}
#copy-status.show {
	opacity: 1;
	color: #10b981;
}

#copy-status {
	opacity: 0;
	transition: opacity 0.3s;
}
#copy-status.show {
	opacity: 1;
	color: #10b981;
}

textarea:focus {
	position: relative;
}

#pro-overlay .modal div:first-child {
	animation: kangarooPulse 2s infinite;
}
@keyframes kangarooPulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

/* === PRO OVERLAY === */
#pro-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	background: rgba(255, 255, 255, 0.2);
	-webkit-backdrop-filter: blur(12px) saturate(1.5);
	backdrop-filter: blur(12px) saturate(1.5);
	font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	transition: background 0.4s ease;
	padding: 2rem;
	box-sizing: border-box;
}

#pro-overlay .modal {
	background: rgba(255, 255, 255, 0.85);
	border-radius: 20px;
	padding: 2.5rem 2rem;
	box-shadow: 0 25px 50px -12px rgba(50, 122, 122, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.4);
	text-align: center;
	max-width: 420px;
	width: 90%;
}

#pro-overlay h1 {
	font-size: 1.9rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 1rem;
}

#pro-overlay p {
	color: #444;
	line-height: 1.7;
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
}

#pro-key {
	width: 100%;
	padding: 1rem 1.25rem;
	font-size: 1.1rem;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	background: rgba(248, 250, 252, 0.8);
	color: #2d3748;
	box-sizing: border-box;
	margin-bottom: 1rem;
	font-family: inherit;
	transition: all 0.2s;
}

#pro-key:focus {
	border-color: #327a7a;
	background: white;
	outline: none;
}

#pro-unlock-btn {
	width: 100%;
	padding: 1.1rem;
	font-size: 1.1rem;
	font-weight: 600;
	background: #327a7a;
	color: white;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(50, 122, 122, 0.3);
	font-family: inherit;
}

#pro-unlock-btn:hover {
	background: #286a6a;
	transform: translateY(-1px);
}

#pro-overlay .gumroad-link {
	margin: 1rem 0 0;
	color: #555;
	font-size: 0.95rem;
}

#pro-overlay .gumroad-link a {
	color: #327a7a;
	font-weight: 600;
	text-decoration: none;
}

#app.pro-blur,
body.pro-blur {
	/*	filter: blur(3px) brightness(0.9) !important;
	pointer-events: none !important;
	user-select: none !important; */
	transition: filter 0.3s ease-out !important;
}

#pro-overlay,
#pro-overlay * {
	pointer-events: auto !important;
	filter: none !important;
}

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
	:root {
		color: #e8e8e8;
		background-color: #1e1e1e;
	}

	body {
		background: #1e1e1e;
		color: #e8e8e8;
	}

	h1,
	h3 {
		color: #5fe0e0;
		border-bottom-color: #265f5f;
	}

	a {
		color: #5fe0e0;
	}
	a:hover {
		color: #9ff;
	}

	input,
	textarea,
	button {
		color: #eaeaea;
		background-color: #2b2b2b;
		border: 1px solid #444;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	}
	input:focus,
	textarea:focus {
		border-color: #5fe0e0;
		background-color: #333;
	}

	button {
		background: #2b2b2b;
		color: #eaeaea;
		border: 1px solid #555;
	}
	button:hover {
		background: #345a5a;
		border-color: #5fe0e0;
		color: #fff;
	}
	button:active {
		background: #264e4e;
	}

	.drop-zone {
		border-color: #5fe0e0;
		background: #202f2f;
	}
	.drop-zone.dragover {
		background: #345a5a;
	}

	#text-result {
		border-color: #444;
		background: #2b2b2b;
		color: #eaeaea;
	}

	#legend {
		background: #2c2c2c;
		border-left-color: #327a7a;
		color: #ccc;
	}

	#copy-status.show {
		color: #10b981;
	}

	button[data-shortcut]::after {
		background: rgba(95, 224, 224, 0.15);
		color: #aefefe;
		opacity: 0.5;
	}

	button[data-shortcut]:hover::after,
	button[data-shortcut]:focus-visible::after {
		background: rgba(95, 224, 224, 0.25);
		opacity: 1;
	}

	/* Overlay tweaks for better balance with page */
	#pro-overlay {
		background: rgba(18, 18, 18, 0.6);
		backdrop-filter: blur(14px) saturate(1.2);
	}

	#pro-overlay .modal {
		background: rgba(30, 30, 30, 0.9);
		border: 1px solid rgba(255, 255, 255, 0.12);
	}

	#pro-unlock-btn {
		background: #10b981;
		color: #111;
	}
	#pro-unlock-btn:hover {
		background: #14c79a;
	}
}

/* @media (prefers-color-scheme: dark) {
	#pro-overlay {
		background: rgba(47, 47, 47, 0.4);
		-webkit-backdrop-filter: blur(12px) saturate(1.3) brightness(0.9);
		backdrop-filter: blur(12px) saturate(1.3) brightness(0.9);
	}

	#pro-overlay .modal {
		background: rgba(30, 30, 30, 0.95);
		border: 1px solid rgba(255, 255, 255, 0.15);
	}

	#pro-overlay h1 {
		color: #f6f6f6;
	}

	#pro-overlay p {
		color: #d1d5db;
	}

	#pro-key {
		background: rgba(50, 50, 50, 0.8);
		color: #f6f6f6;
		border-color: #4b5563;
	}

	#pro-key:focus {
		background: rgba(70, 70, 70, 0.95);
		border-color: #10b981;
	}

	#pro-overlay .gumroad-link {
		color: #9ca3af;
	}

	#pro-overlay .gumroad-link a {
		color: #10b981;
	}
}
*/
