* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	position: relative;
}

#stats {
	position: fixed;
	top: 20px;
	left: 20px;
	background: rgba(255, 255, 255, 0.95);
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	z-index: 1000;
	min-width: 200px;
}

.stat-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.stat-label {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.stat-value {
	font-size: 18px;
	color: #333;
	font-weight: 700;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

#verticalButtons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1000;
}

button {
	border: none;
	border-radius: 12px;
	padding: 12px 20px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 160px;
	justify-content: center;
}

button span {
	font-size: 18px;
}

button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

button:active {
	transform: translateY(0);
}

.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.btn-primary:hover {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-danger {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: white;
}

.btn-danger:hover {
	background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.btn-secondary {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: white;
}

.btn-secondary:hover {
	background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.btn-train {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	font-weight: 700;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-train:hover {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
	transform: translateY(-2px) scale(1.02);
}

#carCanvas {
	background: linear-gradient(180deg, #87CEEB 0%, #98D8C8 100%);
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	margin-right: 20px;
}

#networkCanvas {
	background: #0f172a;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(59, 130, 246, 0.2);
}