:root {
	--background-color: #ffffff;
	--primary-color: #516476;
	--secondary-color: #f44336;
	--text-color: #060606;
	--text-color-alt: #ffffff;
	--input-bg-color: #ffffff;
	--input-border-color: #2f2d2d;
	--button-bg-color: #303a42;
	--background-color-alt: #303a42;
	--border-color: #d9d9d9;
	--err-bg-color: #f7d6d9;
	--err-text-color: #58151c;
	--err-border-color: #f2b0b7;

	background-color: var(--background-color-alt);
}

.page {
	display: flex;
	background-color: var(--background-color);
	color: var(--text-color);
	width: 100%;
}

.App {
	background-color: var(--background-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-bottom: 5rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.homePage {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 2rem;
}

.app-header {
	background-color: var(--background-color-alt);
	width: 100%;
	color: var(--text-color-alt);
	display: flex;
	align-self: center;
	justify-content: space-between;
}

.header-title {
	padding: 1rem 0 1rem 4rem;
}

.header-user-info {
	padding: 2rem 4rem 2rem 0;
}

.username {
	padding-right: 10px;
}

.signout {
	text-decoration: none;
	color: var(--text-color-alt);
	padding-left: 10px;
	cursor: pointer;
}

.actionButtons {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 1rem 0;
}

.dropdown {
	/* Remove the native appearance */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: none;
	background-color: transparent;
	color: var(--text-color);
	font-weight: 600;
	font-size: x-large;
	box-shadow: none;
	outline: none;
	/* Default background image (when not clicked) */
	background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path d='M12 15L7 10H17L12 15Z' fill='%231D1B20'/></svg>");
	background-repeat: no-repeat;
	/* Position the icon — adjust as needed */
	background-position: right 0.75rem center;
	/* Extra padding so text doesn't overlap with the icon */
	background-position-y: 0.5rem;
	padding-bottom: 2rem;
	padding-right: 2.5rem;
}

/* When the dropdown is focused (clicked), change the background image */
.dropdown:active {
	background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path d='M12 9L17 14L7 14L12 9Z' fill='%231D1B20'/></svg>");
}

.sendButton {
	border: none;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	margin: 0 0.5rem;
	padding: 0.2rem 1rem;
	cursor: pointer;
	border-radius: 5px;
	background-color: var(--button-bg-color);
	color: var(--text-color-alt);
}
.sendButton:active {
	background-color: var(--primary-color);
}

.clearSearchButton {
	border: none;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	padding: 0.2rem 1rem;
	cursor: pointer;
	background-color: var(--button-bg-color);
	color: var(--text-color-alt);
	border-radius: 5px;
	margin-top: 1rem;
}
.clearSearchButton:active {
	background-color: var(--primary-color);
}

.resolveButton {
	border: none;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	margin: 0 0.5rem;
	padding: 0.2rem 1rem;
	cursor: pointer;
	background-color: var(--button-bg-color);
	color: var(--text-color-alt);
	margin-bottom: 2rem;
	border-radius: 5px;
}
.resolveButton:active {
	background-color: var(--primary-color);
}

.uuid-input {
	border: 1px solid var(--input-border-color);
	border-radius: 4px;
	margin: 0 0.2rem;
	padding: 0.25rem;
	background-color: var(--input-bg-color);
	min-width: 250px;
}

.uuid-section {
	width: 100%;
	margin: 2rem;
	padding: 2rem 3rem;
	border: 2px solid var(--border-color);
}

.error-list {
	margin: 1rem 2rem;
}

.errorBox {
	display: flex;
	flex-direction: column;
	align-items: center;
	border: 1px solid var(--err-border-color);
	margin: 1rem 0;
	padding: 1rem;
	color: var(--err-text-color);
	background-color: var(--err-bg-color);
	border-radius: 5px;
}

.box {
	border: 1px solid var(--border-color);
	margin: 1rem 0;
	padding: 1rem;
}

.loading-box {
	/* margin: 1rem 0;
	padding: 1rem; */
	display: flex;
	flex-direction: column;
	align-items: center;
}

.disabled {
	opacity: 0.5;
	pointer-events: none;
}

.text-danger {
	color: var(--secondary-color);
}

.errorTryAgainButton {
	border: none;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	padding: 0.2rem 1rem;
	cursor: pointer;
	background-color: var(--button-bg-color);
	color: var(--text-color-alt);
	border-radius: 5px;
	margin-top: 1rem;
}

.app-container {
	margin: 10px 15px;
}

.form-label {
	margin-bottom: 0.5rem;
	font-weight: bold;
}

.search-bar {
	margin: 1rem 0 2rem 0;
}

.alertOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(151, 149, 149, 0.5);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.alertBox {
	position: relative; /* <-- Added to ensure absolute children are positioned relative to this element */
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	text-align: left;
	max-width: 80%;
	overflow: hidden;
	box-shadow: 0 2px 10px #000000;
}

.confirm-content {
	position: relative;
	z-index: 1;
}

form.htmx-request .confirm-content {
	display: none;
}

.alertData {
	display: flex;
	justify-content: space-between;
}

.alertSection {
	margin: 0 1rem;
}

.alertButtons {
	display: flex;
	align-items: right;
	justify-content: flex-end;
}

.alertCloseButton {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
}

.alertCancelButton {
	border: none;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	padding: 0.2rem 1rem;
	cursor: pointer;
	background-color: var(--input-bg-color);
	color: var(--button-bg-color);
	border: 2px solid var(--button-bg-color);
	border-radius: 5px;
	margin-right: 1rem;
}

.alertConfirmButton {
	border: none;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	padding: 0.2rem 1rem;
	cursor: pointer;
	background-color: var(--button-bg-color);
	color: var(--text-color-alt);
	border-radius: 5px;
}
.alertConfirmButton:active {
	background-color: var(--primary-color);
}

.warningStyle {
	color: var(--secondary-color);
}

.successPageBody {
	display: flex;
	flex-direction: column;
	width: 75%;
	padding: 2rem 0;
}

.successPageButton {
	border: none;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	margin: 0.5rem 0;
	padding: 0.2rem 1rem;
	cursor: pointer;
	background-color: var(--button-bg-color);
	color: var(--text-color-alt);
	border-radius: 5px;
	margin-bottom: 2rem;
	width: 250px;
}
.successPageButton:active {
	background-color: var(--primary-color);
}

.successPageIds {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
}

.checkbox-label {
	margin-left: 0.5rem;
}

.searched-ids {
	height: 80px;
}

/* Hide the animation by default */
.htmx-indicator {
	opacity: 0;
	transition: opacity 200ms ease-in-out;
}
.loading-overlay {
	display: none;
	justify-content: center;
	align-items: center;
}

.confirm-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	background-color: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(1px);
	flex-direction: column;
	text-align: center;
}

/* Reveal the animation when an htmx request is active */
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
	opacity: 1;
	display: flex;
}
