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

body {
	display: flex;
	flex-direction: column;
}

#plan {
	flex: 1;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

nav {
	display: grid;
	gap: 10px;
	place-items: center;
	padding: 16px;
	background: white;
	border-bottom: 2px solid #e0e0e0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	z-index: 10;
}

nav label {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 12px;
	font-size: 14px;
}

.button-group {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.level-button {
	padding: 12px 24px;
	border: 2px solid #ddd;
	background: white;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: #555;
	flex: 1;
}

.level-button:hover {
	border-color: #667eea;
	color: #667eea;
}

.level-button.active {
	border-color: #667eea;
}

#svg-container {
	flex: 1;
	overflow: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
}

#svg-plan {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#svg-plan svg {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
}

.boundingBox {
	display: none;
}

.text {
	font-size: 200px !important;
	stroke-width: unset !important;
	fill-opacity: unset !important;
}

.measurementMarker {
	stroke-width: 10 !important;
	stroke-linecap: butt !important;
}

#visibility-controls {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.visibility-button {
	padding: 8px 12px;
	border: 1px solid #ccc;
	background-color: #f5f5f5;
	cursor: pointer;
	border-radius: 4px;
	font-size: 14px;
	transition: background-color 0.2s;
}

.visibility-button.hidden {
	background-color: #e0e0e0;
	opacity: 0.6;
}

.visibility-button.active {
	background-color: #667eea;
	color: white;
	border-color: #667eea;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
	nav {
		padding: 12px;
	}

	nav label {
		margin-bottom: 10px;
		font-size: 13px;
	}

	.level-button {
		padding: 10px 16px;
		font-size: 14px;
	}
}

/* ------------------------------- */
/* ------------ login ------------ */
/* ------------------------------- */
.login-container {
	background: white;
	border-radius: 12px;
	padding: 40px;
	display: flex;
	margin: auto;
}

.login-container form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.login-container label {
	margin: auto;
}

.login-container input {
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
}

.login-container input:focus {
	outline: none;
	border-color: #667eea;
}

.login-container button {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.login-container .error {
	background-color: #fee;
	color: #c33;
	padding: 12px 16px;
	border-radius: 8px;
	border-left: 4px solid #c33;
	font-size: 14px;
}

.login-container .input-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#pdf-container {
	//flex: 0 0 400px;
  height: 100%;
	border-top: 2px solid #e0e0e0;
	background: white;
	padding: 16px;
	overflow-y: auto;
	display: flex;
	display: none; //flex;
	flex-direction: column;
	gap: 12px;
}

#pdf-viewer {
	width: 100%;
	height: 100%;
	border: 1px solid #ddd;
	border-radius: 4px;
}
