body {
	margin: 0;
	font-family: 'Segoe UI', Roboto, sans-serif;
	background-color: #121212;
	color: #eee;
}

/* --- Select Type --- */
#select-type {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin: 2rem 0;
}

#select-type div {
	padding: 1rem 2rem;
	border-radius: 8px;
	background-color: #1f1f1f;
	cursor: pointer;
	transition: all 0.2s, transform 0.1s;
	text-align: center;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#select-type div:hover {
	background-color: #333;
	transform: translateY(-2px);
}

#select-type div.selected {
	background-color: #36f;
	color: #fff;
}

/* --- Forms --- */
form {
	max-width: 500px;
	margin: 1rem auto;
	padding: 2rem;
	background-color: #1e1e1e;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

form label {
	font-size: 0.9rem;
	color: #aaa;
	margin-bottom: 0.2rem;
}

#password {
	padding-right: 30px; /* make room for the icon */
	width: 90.5%;
}

.toggle-password {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #aaa;
}

input[type='text'],
input[type='number'],
input[type='password'],
select {
	padding: 0.8rem 1rem;
	border-radius: 8px;
	border: 1px solid #333;
	background-color: #121212;
	color: #eee;
	transition: border 0.2s;
}

input[type='text']:focus,
input[type='number']:focus,
input[type='password']:focus,
select:focus {
	outline: none;
	border-color: #36f;
}

input.incorrect {
	border-color: #f55;
}

input[type='submit'],
button {
	padding: 0.8rem 1.2rem;
	border: none;
	border-radius: 8px;
	background-color: #36f;
	color: #fff;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s;
	height: 40px;
}

input[type='submit']:hover,
button:hover {
	background-color: #248;
}

/* --- File Inputs --- */
input[type='file'] {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
	z-index: -1;
}

.file-wrapper {
	display: flex;
	align-items: center;
	padding: 0.8rem 1rem;
	background-color: #1a1a1a;
	border: 1px solid #333;
	border-radius: 8px;
	cursor: pointer;
	gap: 0.5rem;
	transition: all 0.2s, border-color 0.2s;
}

.file-wrapper:hover {
	background-color: #222;
	border-color: #36f;
}

.file-wrapper i {
	font-size: 1.2rem;
}

.file-wrapper span {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --- Drag & Drop --- */
#drop-area,
#prehlidky-drop-area {
	padding: 2rem;
	text-align: center;
	border: 2px dashed #555;
	border-radius: 12px;
	background-color: #1a1a1a;
	color: #aaa;
	transition: all 0.2s, border-color 0.2s;
	margin-top: 1rem;
}

#drop-area.highlight,
#prehlidky-drop-area.highlight {
	background-color: #222;
	border-color: #36f;
	color: #fff;
}

/* --- More images section --- */
#more-img-section {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
	#select-type {
		flex-direction: column;
		gap: 0.5rem;
	}

	form {
		padding: 1rem;
	}
}
#alert-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
}

.alert {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	min-width: 250px;
	padding: 1rem 1.5rem;
	border-radius: 12px;
	color: #fff;
	font-weight: bold;
	font-size: 1.2rem;
	opacity: 0;
	transform: translateY(-30px);
	transition: opacity 0.3s, transform 0.3s;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.alert.show {
	opacity: 1;
	transform: translateY(0);
}

.alert.success {
	background-color: #28a745;
}

.alert.error {
	background-color: #dc3545;
}

.alert i {
	font-size: 1.4rem;
}

.loader {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	position: relative;
	animation: rotate 1s linear infinite;
}
.loader::before {
	content: '';
	box-sizing: border-box;
	position: absolute;
	inset: 0px;
	border-radius: 50%;
	border: 5px solid #fff;
	animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
	100% {
		transform: rotate(360deg);
	}
}

@keyframes prixClipFix {
	0% {
		clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
	}
	25% {
		clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
	}
	50% {
		clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
	}
	75% {
		clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
	}
	100% {
		clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
	}
}
