/* Gaya gelap modern */
body {
  font-family: "Poppins", sans-serif;
  background: #0f172a;
  color: #f1f5f9;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
  background: #1e293b;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: #38bdf8;
}

.card {
  background: #334155;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.card h2 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.status {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.status .card {
  flex: 1;
}

.controls {
  text-align: center;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

button {
  background: #475569;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 16px;
}

button:hover {
  background: #38bdf8;
}

button.active {
  background: #0ea5e9;
  color: white;
}

.manualControl button {
  background: #64748b;
}

.manualControl {
  display: none;
}

footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #94a3b8;
}
.status-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom: LDR, Arus, Status */
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.power-analysis {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.power-analysis .card {
    flex: 1;
}

/* Gaya untuk elemen monitoring */
.card h2 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.card p {
    font-size: 24px;
    font-weight: bold;
}

/* Penataan Kontrol Manual 2 Lampu */
.manualControl {
    display: none;
    padding: 20px;
    border-radius: 12px;
    background: #334155;
    margin-top: 20px;
}

.manualControl h3 {
    color: #0ea5e9;
    margin-top: 0;
    margin-bottom: 15px;
}

.lamp-controls {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.lamp-group h4 {
    color: #f1f5f9;
    margin-top: 0;
    margin-bottom: 10px;
}

.lamp-group button {
    margin: 5px;
    width: 120px;
}

.lamp-group .lamp-on {
    background: #22c55e; /* Hijau */
}
.lamp-group .lamp-on:hover {
    background: #15803d;
}

.lamp-group .lamp-off {
    background: #ef4444; /* Merah */
}
.lamp-group .lamp-off:hover {
    background: #b91c1c;
}

/* Tombol Mode */
.buttons button:hover {
  background: #38bdf8;
}

.buttons button.active {
  background: #0ea5e9;
  color: white;
}