html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: url('robot_arm.png') no-repeat center center fixed;
  background-size: cover;
  backdrop-filter: blur(6px);
  color: white;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center; /* pusat vertikal */
  align-items: center;     /* pusat horizontal */
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin: 0 0 20px 0;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  width: 100%;
  max-width: 900px;
}

/* Responsive untuk HP */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "motor1 motor2"
      "motor3 motor3";
  }
  #motor3-container {
    grid-area: motor3;
    justify-self: center;
  }
}

.gauge-container {
  background-color: rgba(42, 42, 64, 0.8);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 220px;
  position: relative; /* supaya teks bisa ditaruh di tengah */
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

canvas {
  width: 180px !important;
  height: 180px !important;
}

.gauge-container h2 {
  font-size: 1.1rem;
  margin: 6px 0 10px 0;
}

/* 🔹 Warna gauge pakai CSS variable */
:root {
  --gauge1-color: #3b82f6; /* biru */
  --gauge2-color: #22c55e; /* hijau */
  --gauge3-color: #f97316; /* oranye */
}

.gauge-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  pointer-events: none;
}
