* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
}

body {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	padding: 20px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

header {
	text-align: center;
	color: white;
	margin-bottom: 30px;
	padding: 20px;
}

header h1 {
	font-size: 2.5em;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
	font-size: 1.1em;
	opacity: 0.9;
}

.status-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	padding: 15px 20px;
	border-radius: 8px;
	color: white;
	margin-bottom: 30px;
	backdrop-filter: blur(10px);
}

.status {
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: bold;
	font-size: 0.9em;
}

.status.connected {
	background-color: #4CAF50;
	color: white;
}

.status.disconnected {
	background-color: #f44336;
	color: white;
}

#last-update {
	font-size: 0.9em;
	opacity: 0.8;
}

.sensors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.sensor-card {
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sensor-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.sensor-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
}

.sensor-header h2 {
	font-size: 1.2em;
	color: #333;
	margin: 0;
}

.sensor-icon {
	font-size: 1.8em;
}

.sensor-value {
	display: flex;
	align-items: baseline;
	margin: 15px 0;
}

.sensor-value span:first-child {
	font-size: 2.5em;
	font-weight: bold;
	color: #667eea;
	margin-right: 8px;
}

.unit {
	font-size: 1em;
	color: #888;
	font-weight: 500;
}

.sensor-label {
	font-size: 0.85em;
	color: #888;
	margin-top: 10px;
	font-style: italic;
}

.chart-container {
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
}

.chart-container h2 {
	color: #333;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #667eea;
}

#myChart {
	max-width: 100%;
}

.data-logs {
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.data-logs h2 {
	color: #333;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #667eea;
}

#data-log-container {
	max-height: 300px;
	overflow-y: auto;
}

.log-entry {
	padding: 12px;
	margin: 8px 0;
	background: #f5f5f5;
	border-left: 4px solid #667eea;
	border-radius: 4px;
	font-size: 0.9em;
	color: #333;
}

.log-empty {
	text-align: center;
	color: #999;
	padding: 20px;
	font-style: italic;
}

.log-timestamp {
	font-weight: bold;
	color: #667eea;
	margin-right: 10px;
}

.log-device {
	color: #666;
	font-weight: 500;
}

th, td {
	padding: 5px;
}