body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #e0f7fa;
  color: #333;
  min-width: 1024px;
  overflow-x: auto;
}

nav {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  color: #4caf50;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a.active {
  color: #4caf50;
}

.page-header {
  background: url('header.jpg') center/cover no-repeat;
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.page-header .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.page-header .header-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 20px;
}

.sensor-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.lampu-status {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 5px;
}

.lampu-status.aman { background-color: green; }
.lampu-status.waspada { background-color: orange; }
.lampu-status.bahaya { background-color: red; }

.lampu-status.glowing {
  animation: glow 1s infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 5px #ccc; }
  to   { box-shadow: 0 0 12px currentColor; }
}

.wlc-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 10px;
  font-weight: bold;
  color: white;
}

.wlc-status.aman { background-color: green; }
.wlc-status.waspada { background-color: orange; }
.wlc-status.bahaya { background-color: red; }

#charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 20px 40px;
}

.chart-wrapper {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  height: 350px;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

footer {
  background-color: #4caf50;
  color: white;
  text-align: center;
  padding: 12px 0;
  margin-top: 40px;
}

/* NON-RESPONSIVE: Hilangkan media queries */

.btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #45a049;
}

.flowmeter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

.flowmeter-graph {
  flex: 2;
}

.pnj-logo-text {
  flex: 1;
  text-align: center;
}

.pnj-logo {
  max-width: 100px;
  height: auto;
  margin-bottom: 5px;
}

.pnj-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #006666;
}
