body {
	font-family: "Segoe UI", Arial, sans-serif;
	margin: 0;
	min-height: 100vh;
	height: fit-content;
	display: flex;
	flex-direction: column;
	gap: 2em;
	align-items: center;
	justify-content: flex-start;
	background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%);
	background-attachment: fixed;
	color: #222;
	position: relative;
}

body::selection {
	background: #2193b0;
	color: white;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url("https://www.transparenttextures.com/patterns/cubes.png");
	opacity: 0.08;
	pointer-events: none;
	z-index: 0;
}

body.centered {
	justify-content: center;
}

h1 {
	color: #fff;
	margin-bottom: 0px;
	letter-spacing: 1px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

form {
	text-align: center;
	z-index: 1;
}

input {
	padding: 15px;
	font-size: 1.5rem;
	width: 400px;
	max-width: 90vw;
	text-align: center;
	border: 1.5px solid #b2ebf2;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
	outline: none;
	background: rgba(255, 255, 255, 0.85);
	transition: border 0.2s, box-shadow 0.2s;
}
input:focus {
	border: 1.5px solid #2193b0;
	box-shadow: 0 0 0 3px #b2ebf2;
}
input::placeholder {
	opacity: 50%;
}

button {
	margin-top: 20px;
	padding: 15px 36px;
	font-size: 1.2rem;
	background: linear-gradient(90deg, #ffb347 0%, #ff9800 100%);
	color: white;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: background 0.3s, transform 0.15s, box-shadow 0.2s;
	font-weight: 500;
	letter-spacing: 0.5px;
}

button:hover {
	filter: brightness(1.08) drop-shadow(0 2px 8px rgba(255, 152, 0, 0.13));
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 8px 24px rgba(255, 152, 0, 0.1);
}

#results {
	width: 80%;
	max-width: 1000px;
	background: rgba(255, 255, 255, 0.85);
	padding: 28px 24px 24px 24px;
	margin-bottom: 4em;
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(33, 147, 176, 0.13);
	backdrop-filter: blur(6px);
	border: 1.5px solid #b2ebf2;
	z-index: 1;
}

#counter {
	margin-bottom: 18px;
	font-weight: bold;
	color: #2193b0;
	font-size: 1.1rem;
}

#dniList {
	column-width: 220px;
	column-gap: 28px;
}

.dni-item {
	font-family: "Fira Mono", "Consolas", monospace;
	font-size: 1.08rem;
	padding: 2px 0;
	color: #333;
	background: rgba(178, 235, 242, 0); /* Transparent for now */
	border-radius: 4px;
	margin-bottom: 2px;
	display: inline-block;
	width: 100%;
}

.export-buttons {
	margin-top: 18px;
	text-align: center;
	display: none;
}

.export-buttons button {
	padding: 10px 20px;
	font-size: .8rem;
	background: linear-gradient(90deg, #32c262 0%, #31a758 100%);
	margin: 0 10px;
	color: #fff;
	font-weight: 500;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(67, 233, 123, 0.1);
	border: none;
	transition: background 0.3s, transform 0.15s;
}

.export-buttons button:hover {
	filter: brightness(1.08) drop-shadow(0 2px 8px rgba(67, 233, 123, 0.13));
	transform: translateY(-1px) scale(1.02);
}

.footer {
	font-size: medium;
	color: #e3f4f8;
	position: absolute;
	bottom: 1em;
	cursor: default;
}

a {
	text-decoration: none;
	color: #e3f4f8;
}

a:hover {
	color: #ffffff;
}

.lang-select {
	position: absolute;
	top: 0.5em;
	right: 0.5em;
	display: flex;
	align-items: center;
	gap: 0.7em;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(33, 147, 176, 0.1);
	z-index: 2;
}

.lang-select label {
	font-size: 1.08rem;
	color: #e1f1f5;
	font-weight: 500;
	letter-spacing: 0.2px;
}

.lang-select select {
	font-size: 1.08rem;
	padding: 7px 18px 7px 10px;
	border-radius: 6px;
	border: 1.5px solid #b2ebf2;
	background: #f8fdff;
	color: #2193b0;
	font-weight: 500;
	outline: none;
	box-shadow: 0 2px 8px rgba(33, 147, 176, 0.07);
	transition: border 0.2s, box-shadow 0.2s;
	cursor: pointer;
	appearance: none;
}

.lang-select select:focus {
	border: 1.5px solid #2193b0;
	box-shadow: 0 0 0 3px #b2ebf2;
}
