body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  margin: 0;
  padding: 16px;
}

h1 {
  margin-bottom: 16px;
  font-size: 20px;
}

.status {
  margin-bottom: 12px;
  font-size: 14px;
  color: #38bdf8;
}

.offline {
  color: #ef4444;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 800px;
}

.card {
  background: #1e293b;
  padding: 14px;
  border-radius: 10px;
  min-width: 0;
}

.label {
  font-size: 13px;
  color: #94a3b8;
}

.value {
  font-size: 20px;
  margin-top: 6px;
  font-weight: bold;
  word-break: break-word;
}

/* MOBILE */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  h1 {
    font-size: 18px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .value {
    font-size: 18px;
  }
}

/* GAUGE */
.gauge-container {
  width: 200px;
  margin: 50px auto;
  font-family: sans-serif;
}

.gauge-body {
  width: 200px;
  height: 100px;
  position: relative;
  overflow: hidden;
  background-color: #ddd;
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
}

.gauge-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
  background: linear-gradient(to right, #00c853, #ffd600, #ff3d00, #b71c1c);
  transform: rotate(0deg);
  transform-origin: center bottom;
}

.gauge-center {
  width: 140px;
  height: 70px;
  background: #fff;
  position: absolute;
  top: 30px;
  left: 30px;
  border-top-left-radius: 140px;
  border-top-right-radius: 140px;
}

.gauge-needle {
  position: absolute;
  width: 4px;
  height: 85px;
  background: #22c55e;

  bottom: 0;
  left: 50%;

  transform: translateX(-50%) rotate(-90deg);
  transform-origin: bottom center;

  border-radius: 999px;

  transition:
    transform 0.4s ease,
    background 0.4s ease;

  z-index: 10;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-top: 5px;
}

.temp-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
}

.temp-value {
  margin-top: 12px;
  font-size: 26px;
  font-weight: bold;
}
