* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f4f7;
  color: #333;
}

/* HEADER */
header {
  background: #0b3d2e;
  color: #fff;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
  font-weight: bold;
}

/* MAIN */
main {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

/* CARD */
.section {
  background: #fff;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.section h2 {
  margin-bottom: 15px;
  color: #0b3d2e;
}

/* LIST */
ul {
  padding-left: 20px;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

/* TABLE (MONITORING) */
table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

table th {
  background: #0b3d2e;
  color: #fff;
}

/* FOOTER */
footer {
  background: #0b3d2e;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    margin-left: 0;
    margin-right: 15px;
  }
}

/* MONITORING STATUS */
.status {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  display: inline-block;
}

.status-normal {
  background: #2ecc71;
}

.status-warning {
  background: #f39c12;
}

.status-danger {
  background: #e74c3c;
}

/* MONITORING SUMMARY */
.monitoring-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.summary-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.summary-box h3 {
  font-size: 26px;
  color: #0b3d2e;
  margin-bottom: 5px;
}

.summary-box p {
  font-size: 14px;
}

/* === CHART FIX === */
.chart {
  margin-top: 20px;
}

.chart-row {
  display: grid;
  grid-template-columns: 60px minmax(200px, 1fr) 60px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-label {
  font-weight: bold;
}

.chart-bar {
  background: #e0e0e0;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  min-width: 200px;   /* 🔴 INI KUNCI */
}

.chart-fill {
  display: block;     /* 🔴 INI KUNCI */
  height: 100%;
  background: #0b3d2e;
}

.chart-value {
  font-size: 13px;
  text-align: right;
}
