#app{
	padding: 20px;
}
h1 {
	color: #333;
	margin-bottom: 30px;
}

.sensors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.sensor-card {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	transition: transform 0.2s, box-shadow 0.2s;
}
.sensor-card.online {
	border-left: 4px solid #1976d2;
}
.sensor-card.offline {
	border-left: 4px solid #999;
}

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

.sensor-id {
	font-size: 24px;
	font-weight: bold;
	color: #333;
	margin-bottom: 10px;
}

.sensor-info {
	color: #666;
	font-size: 14px;
	margin: 5px 0;
}

.sensor-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: bold;
	margin-top: 10px;
}

.status-active {
	background: #c8e6c9;
	color: #2e7d32;
}

.status-inactive {
	background: #e0e0e0;
	color: #555555;
}

.record-btn {
	display: inline-block;
	margin-top: 15px;
	padding: 10px 20px;
	background: #2196F3;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	transition: background 0.3s;
}

.record-btn:hover {
	background: #1976D2;
}

.no-sensors {
	text-align: center;
	padding: 40px;
	color: #999;
}

.sessions-count {
	font-size: 14px;
	color: #666;
	margin-top: 8px;
}

.edit-btn {
	display: inline-block;
	margin-top: 15px;
	margin-right: 10px;
	padding: 10px 20px;
	background: #FF9800;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
}

.edit-btn:hover {
	background: #F57C00;
}

/* Modal styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	align-items: center;
	justify-content: center;
}

.modal-content {
	background-color: #fff;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
	margin: 0;
	font-size: 20px;
	color: #333;
}

.close {
	font-size: 28px;
	font-weight: bold;
	color: #999;
	cursor: pointer;
	transition: color 0.3s;
}

.close:hover {
	color: #333;
}

#editSensorForm {
	padding: 20px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

.form-group input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.form-group input:focus {
	outline: none;
	border-color: #2196F3;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

.cancel-btn {
	padding: 10px 20px;
	background: #e0e0e0;
	color: #333;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
}

.cancel-btn:hover {
	background: #bdbdbd;
}

.save-btn {
	padding: 10px 20px;
	background: #1976d2;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
}

.save-btn:hover {
	background: #45a049;
}