/* Status View Styles */

#statusview-container {
	padding: 20px;
	max-width: 1400px;
	margin: 0 auto;
}

.statusview-header {
	margin-bottom: 30px;
	padding: 20px;
	background-color: #f8f9fa;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.statusview-header h2 {
	margin: 0 0 15px 0;
	color: #2c3e50;
	font-size: 28px;
}

.statusview-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 14px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.legend-box {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	display: inline-block;
}

.statusview-account {
	margin-bottom: 40px;
	padding: 20px;
	background-color: #ffffff;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.statusview-account-name {
	margin: 0 0 20px 0;
	color: #1a5490;
	font-size: 24px;
	border-bottom: 2px solid #1a5490;
	padding-bottom: 10px;
}

.statusview-gateway {
	margin-bottom: 25px;
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #d0d0d0;
}

.statusview-gateway-name {
	margin: 0 0 15px 0;
	color: #34495e;
	font-size: 20px;
}

.statusview-node {
	margin-bottom: 20px;
	padding: 12px;
	background-color: #ffffff;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.statusview-node-name {
	margin: 0 0 12px 0;
	color: #555;
	font-size: 16px;
	font-weight: 600;
}

.statusview-sensors {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 15px;
}

.statusview-sensor-card {
	padding: 15px;
	background-color: #ffffff;
	border: 2px solid #ddd;
	border-radius: 8px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.statusview-sensor-card:hover {
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
	transform: translateY(-2px);
}

.sensor-name {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 10px;
	color: #2c3e50;
}

.sensor-status {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border-radius: 6px;
	margin-bottom: 10px;
	font-weight: bold;
	font-size: 18px;
}

.status-indicator {
	font-size: 32px;
	line-height: 1;
}

.status-text {
	flex: 1;
}

.status-green {
	background-color: #27ae60;
	color: white;
}

.status-yellow {
	background-color: #f39c12;
	color: white;
}

.status-red {
	background-color: #e74c3c;
	color: white;
}

.status-gray {
	background-color: #95a5a6;
	color: white;
}

.sensor-value {
	font-size: 28px;
	font-weight: bold;
	color: #2c3e50;
	text-align: center;
	margin: 10px 0;
}

.sensor-time {
	font-size: 12px;
	color: #7f8c8d;
	text-align: center;
	font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.statusview-sensors {
		grid-template-columns: 1fr;
	}
	
	.statusview-header h2 {
		font-size: 22px;
	}
	
	.statusview-legend {
		font-size: 12px;
		gap: 10px;
	}
}
