body {
	font-family: Arial, sans-serif;
	margin: 20px;
	background-color: #f5f5f5;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	background: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.controls {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	align-items: center;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 5px;
}

.control-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.control-group label {
	font-weight: bold;
	font-size: 14px;
}

button {
	padding: 8px 15px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	background: #007bff;
	color: white;
	font-weight: bold;
}

button.active {
	background: #0056b3;
}

button:hover {
	opacity: 0.9;
}

.color-picker {
	display: flex;
	gap: 5px;
	align-items: center;
}

.color-btn {
	width: 25px;
	height: 25px;
	border: 2px solid #ccc;
	border-radius: 50%;
	cursor: pointer;
}

.color-btn.active {
	border-color: #000;
}

#drawingCanvas {
	border: 2px solid #333;
	background: white;
	cursor: crosshair;
	display: block;
	margin: 0 auto;
}

.status {
	margin-top: 10px;
	text-align: center;
	color: #666;
}

.snap-options {
	display: flex;
	gap: 10px;
	align-items: center;
}

.length-display {
	position: absolute;
	background: rgba(255, 255, 255, 0.9);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
	pointer-events: none;
}

.length-edit-overlay {
	position: absolute;
	background: white;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	z-index: 100;
}

.length-edit-overlay input {
	width: 80px;
	padding: 2px 5px;
	border: 1px solid #ccc;
	border-radius: 3px;
}

.length-edit-overlay button {
	padding: 2px 8px;
	margin-left: 5px;
	font-size: 12px;
}



/* для js3.js */
.point-controls {
	margin: 15px 0;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background-color: #f9f9f9;
}

.point-controls h3 {
	margin-top: 0;
	color: #333;
}

.control-group {
	margin: 10px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.control-group label {
	min-width: 100px;
	font-weight: bold;
}

.point-edit-overlay {
	position: fixed;
	background: white;
	border: 2px solid #333;
	border-radius: 5px;
	padding: 15px;
	z-index: 1000;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.edit-form h4 {
	margin-top: 0;
	color: #333;
}

.form-group {
	margin: 8px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.form-group label {
	margin-right: 10px;
	font-weight: bold;
}

.form-group input {
	width: 100px;
}