:root {
	--primary-color: #0f172a;
	--primary-hover: #1e293b;
	--text-main: #0f172a;
	--text-muted: #64748b;
	--bg-color: #f8fafc;
	--card-bg: #ffffff;
	--border-color: #e2e8f0;
	--error-color: #dc2626;
	--success-color: #059669;
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--radius: 0.375rem;
}

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

body {
	font-family: system-ui, -apple-system, sans-serif;
	background: linear-gradient(rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.85)), url('/addons/bg-lake.jpg') no-repeat center center fixed;
	background-size: cover;
	color: var(--text-main);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem;
	-webkit-font-smoothing: antialiased;

	@media (min-width: 768px) {
		justify-content: center;
		padding: 2rem;
	}
}

h1, h2, h3 {
	color: var(--text-main);
	margin-bottom: 1rem;
	font-weight: 600;
}

h1 {
	font-size: 1.5rem;
	text-align: center;
	margin-bottom: 1.5rem;

	@media (min-width: 600px) {
		font-size: 2rem;
	}
}

p {
	margin-bottom: 1rem;
	color: var(--text-muted);
}

a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;

	&:hover {
		color: var(--primary-hover);
		text-decoration: underline;
	}

	&:focus-visible {
		outline: 2px solid var(--primary-color);
		outline-offset: 2px;
		border-radius: 2px;
	}
}

.content-container,
.container,
.test-container {
	background-color: var(--card-bg);
	padding: 1.5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	width: 100%;
	max-width: 800px;
	margin-bottom: 2rem;

	@media (min-width: 600px) {
		padding: 2.5rem;
	}
}

.test-container {
	display: flex;
	flex-direction: column;
	max-width: 1000px;
	padding: 0;
	overflow: hidden;
	height: 85vh;
}

.test-header {
	background-color: var(--bg-color);
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-weight: 500;

	@media (min-width: 600px) {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	p {
		margin: 0;
		color: var(--text-main);
	}
}

.test-body {
	padding: 1.5rem;
	overflow-y: auto;
	flex-grow: 1;

	@media (min-width: 600px) {
		padding: 2.5rem;
	}
}

.button {
	display: inline-block;
	padding: 0.625rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #ffffff;
	background-color: var(--primary-color);
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	text-align: center;
	text-decoration: none;
	width: 100%;
	font-family: inherit;

	@media (min-width: 600px) {
		width: auto;
	}

	&:hover {
		background-color: var(--primary-hover);
		text-decoration: none;
	}

	&:active {
		transform: scale(0.98);
	}

	&:focus-visible {
		outline: 2px solid var(--primary-color);
		outline-offset: 2px;
	}

	&:disabled {
		background-color: var(--text-muted);
		cursor: not-allowed;
	}
}

form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;

	label {
		font-size: 0.95rem;
		font-weight: 600;
		color: var(--text-main);
		margin-bottom: 0.25rem;
		display: block;
	}

	input[type="text"],
	input[type="email"],
	input[type="password"] {
		width: 100%;
		padding: 0.75rem;
		border: 1px solid var(--border-color);
		border-radius: var(--radius);
		font-size: 1rem;
		background-color: var(--card-bg);
		color: var(--text-main);
		transition: border-color 0.2s ease, box-shadow 0.2s ease;
		font-family: inherit;

		&:focus {
			outline: none;
			border-color: var(--primary-color);
			box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
		}
	}

	button {
		margin-top: 0.5rem;
	}
}

.login {
	max-width: 400px;
	margin: 0 auto;
}

.dash-buttons-container,
.buttons-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2rem;

	@media (min-width: 600px) {
		flex-direction: row;
		justify-content: center;
	}
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.5rem;
	font-size: 0.875rem;

	th, td {
		padding: 0.75rem 1rem;
		border-bottom: 1px solid var(--border-color);
		text-align: left;
	}

	th {
		background-color: var(--bg-color);
		font-weight: 600;
		color: var(--text-muted);
		text-transform: uppercase;
		letter-spacing: 0.05em;
		font-size: 0.75rem;
	}

	tbody tr:hover {
		background-color: var(--bg-color);
	}
}

.message {
	padding: 1rem;
	border-radius: var(--radius);
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	text-align: center;
	font-weight: 500;
}

.success-message {
	background-color: #ecfdf5;
	color: var(--success-color);
	border: 1px solid #a7f3d0;
}

.error-message {
	background-color: #fef2f2;
	color: var(--error-color);
	border: 1px solid #fecaca;
}

.case-study {
	background-color: var(--bg-color);
	padding: 1.5rem;
	border-radius: var(--radius);
	margin-bottom: 2rem;
	border: 1px solid var(--border-color);
	border-left: 4px solid var(--primary-color);

	p {
		color: var(--text-main);
		margin-bottom: 0;
	}
}

.question-container {
	margin-bottom: 2rem;

	.question-text p {
		font-size: 1.125rem;
		font-weight: 500;
		color: var(--text-main);
	}
}

.answer-option {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	/* margin-bottom: 0.75rem; */
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;

	&:hover {
		background-color: var(--bg-color);
	}

	input[type="radio"] {
		margin-top: 0.25rem;
		accent-color: var(--primary-color);
		width: 1.125rem;
		height: 1.125rem;
	}

	label {
		margin: 0;
		font-weight: 400;
		cursor: pointer;
		width: 100%;
		line-height: 1.5;
	}

	&:has(input[type="radio"]:checked) {
		border-color: var(--primary-color);
		background-color: #f1f5f9;
		box-shadow: 0 0 0 1px var(--primary-color);
	}
}

#password-strength {
	font-size: 0.875rem;
	font-weight: 500;
	margin-top: 0.5rem;
	min-height: 1.25rem;
}