body {
	margin: 0;
	font-family: Arial, sans-serif;
	background-color: rgb(0, 0, 31);
	color: white;
}

.dashboard-container {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
	padding: 1rem;
	box-sizing: border-box;
}

.printer-card {
	background: rgb(0, 31, 63);
	border: 1px solid rgb(0, 95, 191);
	border-radius: 8px;
	padding: 1rem;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
	text-align: left;
	font-weight: bold;
	color: white;
	transition: background-color 0.4s ease;
}

.printer-card h2 {
	margin-top: 0;
	color: white;
	text-align: center;
}

.printer-status {
	margin-top: 0.5rem;
}

.status-line {
	font-size: 1rem;
	margin-bottom: 0.25rem;
	font-weight: bold;
}

.spacer {
	height: 0.75rem;
}

.layer-line {
	display: flex;
	justify-content: space-between;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.progress-bar {
	width: 100%;
	height: 10px;
	background-color: rgb(0, 0, 127);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.progress-fill {
	height: 100%;
	background-color: rgb(0, 127, 255);
	width: 0%;
	transition: width 0.3s ease-in-out;
}

.eta-line {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	margin-bottom: 1rem;
	color: white;
}

.temp-pair {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	margin-bottom: 0.25rem;
}

.temp-left {
	text-align: left;
}

.temp-right {
	text-align: right;
}

/* Responsive behavior */
@media (max-width: 1024px) {
	.dashboard-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.dashboard-container {
		grid-template-columns: 1fr;
	}

	/* Hide temps and spacer on mobile */
	.temp-pair,
	.spacer:last-of-type {
		display: none;
	}
}

@keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 0.3; }
	100% { opacity: 1; }
}

.lightbulb {
	animation: blink 2s infinite;
}

.printer-header {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin-bottom: 10px;
	min-height: 48px; /* helps define text height */
}

.printer-icon {
	height: auto;
	max-height: 100%;
	max-width: 80px;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 8px;
	align-self: stretch;
	border: 1px solid black;
}

.printer-header-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start; /* ← this ensures left alignment */
}

.printer-title {
	margin: 0;
	font-size: 28px;
	color: white;
	font-weight: bold;
}

.printer-status-text {
	color: white;
	font-size: 20px;
	font-weight: bold;
}

@media (max-width: 768px) {
	.desktop-only {
		display: none !important;
	}
	.h1 {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.ams-unit {
		display: none !important;
	}
}
