body {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #333;
}

main {
	user-select: none;
	text-align: center;
}

.tooltip {
	position: absolute;
	z-index: 2;
	background: rgba(255, 255, 255, 0.95);
	padding: 10px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	border: 1px solid #ddd;
}

section#menu {
	text-align: left;
	z-index: 1;
	position: relative;
}
.danger {
	color: red;
}
.warning {
	color: rgb(255, 119, 0);
}
.success {
	color: rgb(30, 109, 40);
	font-weight: 600;
}
#menuItems {
	width: 300px;
	position: fixed;
	background: rgba(255, 255, 255, 0.95);
	padding: 20px 15px;
	left: -340px;
	transition: left 0.3s ease;
	top: 0;
	z-index: 0;
	height: 100vh;
	overflow-y: auto;
	box-shadow: 2px 0 10px rgba(0,0,0,0.1);
	border-radius: 0 10px 10px 0;
}
#menuItems p {
	margin-bottom: 5px;
}

#menuItems span.info {
	border: 1px dashed #7f7f7f;
	border-radius: 50%;
	width: 14px;
	height: 14px;
	display: inline-block;
	margin-right: 10px;
	background: url(../images/i.png) -0.4px 0px no-repeat;
	box-sizing: border-box;
}

#closeMenu {
	background: rgba(255, 255, 255, 0.8);
	border: none;
	z-index: 1;
	position: fixed;
	left: 20px;
	top: 10px;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: background 0.2s;
	cursor: pointer;
}

#closeMenu:hover {
	background: rgba(255, 255, 255, 1);
}

#closeMenu span {
	display: block;
	width: 20px;
	height: 3px;
	background: #333;
	margin-bottom: 4px;
	transition: all 0.3s ease;
	border-radius: 2px;
}
#closeMenuCheck {
	display: none;
}

#menuItems.active {
	left: 0px;
}
#menuItems label {
	min-width: 109px;
}

div#menuItems section {
	margin-bottom: 8px;
}
.selected {
	border: 2px solid #2196F3;
	background: rgba(33, 150, 243, 0.1);
}

#closeMenu.active span:first-of-type {
	transform: rotate(45deg);
	translate: 0px 7px;
}

#closeMenu.active span:last-of-type {
	transform: rotate(-45deg);
	translate: 0px -7px;
}

#closeMenu.active span:nth-of-type(2) {
	opacity: 0;
}
#miniImage {
	background-color: rgba(255, 255, 255, 0.9);
	position: fixed;
	top: 20px;
	right: 20px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	padding: 10px;
}
#menu h2 {
	margin-top: -6px;
	margin-left: 40px;
}

.button-group {
	display: flex;
	gap: 8px;
	padding-bottom: 10px;
	flex-wrap: wrap;
}
.button-group button {
	flex: 1;
	background: #4CAF50;
	color: white;
	border: none;
	padding: 8px 12px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s, transform 0.1s;
	font-size: 14px;
}

.button-group button:hover {
	background: #45a049;
	transform: translateY(-1px);
}

.button-group button:active {
	transform: translateY(0);
}

#editMotionModel {
	text-align: center;
	height: 0;
	overflow: hidden;
}
#editMotionModel td input {
	width: 55px;
}

.modelCloseBtn {
	font-weight: 800;
	width: 50px;
}

.join-buttons {
	display: flex;
	width: 100%;
}
.join-buttons button {
	flex: 1;
	background: #2196F3;
	color: white;
	border: none;
	padding: 8px 12px;
	cursor: pointer;
	transition: background 0.3s;
	font-size: 14px;
}

.join-buttons button:hover {
	background: #1976D2;
}

.join-buttons button:first-of-type {
	border-radius: 5px 0 0 5px;
}

.join-buttons button:last-of-type {
	border-radius: 0 5px 5px 0;
}

.editing-options div {
	display: flex;
	font-size: 13px;
	align-items: center;
}

.ranges {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.ranges input {
	flex: 2;
	margin-left: 10px;
}

.ranges span {
	padding: 5px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	min-width: 50px;
	text-align: center;
	font-weight: bold;
}

.ranges span:focus {
	outline-color: #0075ff;
}

.show-item div {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
}
#animationSlider {
	position: fixed;
	top: 0;
	background: rgba(255, 255, 255, 0.9);
	text-align: center;
	width: 98.5vw;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 10;
}

.canvasSection {
	margin-top: 21px;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - 21px);
}

#canvas {
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	background: white;
}

section#graphContainer {
	position: absolute;
	opacity: 0;
	top: -200px;
	left: 20px;
	background: rgba(255, 255, 255, 0.95);
	width: calc(100vw - 40px);
	height: 0px;
	display: flex;
	z-index: 0;
	gap: 10px;
	transition: all 0.3s ease;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

section#graphContainer.active {
	opacity: 1;
	top: 20px;
	height: calc(100vh - 40px);
	display: flex;
	z-index: 1;
	gap: 10px;
}

.graphMenu {
	min-width: 250px;
	background-color: #333;
	margin: 10px;
	border-radius: 10px;
	color: white;
}

.graphMenu .header button {
	background: transparent;
	border: none;
	color: white;
	padding: 10px;
	font-size: 18px;
	cursor: pointer;
	transition: color 0.2s;
}

.graphMenu .header button:hover {
	color: #ccc;
}

#graphSection {
	flex: 4;
	margin: 10px;
}
#graphDataButtons {
    padding-left: 5px;
}

#graphDataButtons .btn-group {
	display: inline-flex;
	width: 120px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

#graphDataButtons .btn-group button {
	display: block;
	width: 100%;
	font-size: 12px;
	background: #555;
	color: white;
	border: none;
	padding: 8px;
	margin: 2px 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}

#graphDataButtons .btn-group button:hover {
	background: #666;
}

#graphDataButtons .btn-group button.active {
	background: #ff5722;
	color: white;
}

details {
	margin-bottom: 10px;
}

summary {
	cursor: pointer;
	font-weight: bold;
	padding: 5px 0;
	border-bottom: 1px solid #ddd;
	transition: color 0.2s;
}

summary:hover {
	color: #2196F3;
}

/* Checkbox Styling */
input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	border-radius: 4px;
	background: white;
	cursor: pointer;
	position: relative;
	transition: background 0.2s, border-color 0.2s;
	margin-right: 8px;
}

input[type="checkbox"]:checked {
	background: #4CAF50;
	border-color: #4CAF50;
}

input[type="checkbox"]:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 14px;
	font-weight: bold;
}

input[type="checkbox"]:hover {
	border-color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
	#menuItems {
		width: 250px;
		left: -270px;
	}
	
	.button-group {
		flex-direction: column;
	}
	
	.join-buttons {
		width: 100%;
	}
	
	.ranges {
		flex-direction: column;
		align-items: stretch;
	}
	
	.ranges input {
		margin-left: 0;
		margin-top: 5px;
	}
}
