body {
	font-family: 'Segoe UI', system-ui, sans-serif;
	background: #f4f6f8;
	margin: 0;
	padding: 24px;
	color: #222;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

header h1 {
	margin: 0;
	font-size: 1.6em;
}

button, select, input, label {
	font-size: 1em;
}

button, select {
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, box-shadow 0.2s;
}

button {
	background: #0078d4;
	color: #fff;
}

button:hover {
	background: #005ea6;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secondary-button {
	background: #6c757d;
}

.secondary-button:hover {
	background: #5a6268;
}

#chartControls, .chart-wrapper {
	background: white;
	border-radius: 8px;
	padding: 5px 10px 70px 20px;
	margin-bottom: 10px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#chartControls h3, #datasetConfigs h4, .chart-header h4 {
	margin: 0 0 10px;
	color: #333;
}

.chartParams, .signalRow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

input[type="text"], input[type="number"], input[type="color"] {
	padding: 4px 6px;
	border: 1px solid #ccc;
	border-radius: 6px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
	border-color: #0078d4;
	box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
	outline: none;
}

input[type="number"] {
	width: 70px;
	text-align: right;
}

.signalRow {
	padding: 6px 10px;
	border-bottom: 1px solid #f0f0f0;
}

.signalRow:nth-child(odd) {
	background: #f9fbfd;
}

#log {
	background: #f7f7f7;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 10px;
	height: 200px;
	overflow-y: auto;
	font-family: monospace;
	font-size: 0.9em;
	white-space: pre-wrap;
}

.chart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #ddd;
	padding-bottom: 5px;
	margin-bottom: 10px;
}

.chart-header .delete-button {
	background: none;
	border: none;
	color: #a00;
	font-size: 18px;
	cursor: pointer;
	transition: color 0.2s;
}

.chart-header .delete-button:hover {
	color: #dc3545;
}

