body {
  background: #111;
  color: #eee;
  font-family: sans-serif;
  margin: 20px;
}

h1 {
  color: #ffa500;
  margin-bottom: 1em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
  margin-bottom: 2em;
}

#wifi_bar {
  background: #444;
  height: 10px;
  width: 100%;
  border-radius: 4px;
  margin-top: 5px;
}

#wifi_fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
}

#cpuUsageChart {
  width: 50%;
  height: 300px;
  display: block;
}

.charts canvas {
  width: 100%;
  margin-bottom: 2em;
}

.status-pill {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  color: white;
}

.status-pill::after {
  content: attr(data-status);
}

.status-up {
  background-color: green;
}

.status-down {
  background-color: red;
}

.led-bar {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 20px 0;
  justify-content: center;
}

.led-container {
  text-align: center;
}

.led {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background-color: gray;
  box-shadow: 0 0 6px #000;
  border: 2px solid #222; /* Add this to give it contrast */
}

.led-label {
  font-size: 0.9em;
  color: #ccc;
}

.led-ok {
  background-color: limegreen !important;
}

.led-missing {
  background-color: red !important;
}

.chart-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Space between charts */
}

.chart-card {
  background-color: #222;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  width: 300px; /* Fixed width per card */
  flex: 1 1 300px; /* Allow growing and shrinking */
  box-sizing: border-box;
}

.chart-card h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #eee;
  text-align: center;
}

.led-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* spacing between LEDs */
  margin-bottom: 20px;
}

.led-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9em;
  color: #eee;
}

canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  margin-bottom: 30px;
}
