body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f7f9fc;
  color: #333;
}

header {
  background: #0b2543;
  color: #fff;
  padding: 15px;
  text-align: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
}

.card h2 {
  margin-top: 0;
  font-size: 18px;
  text-align: center;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 280px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  font-size: 14px;
}

th {
  background: #0b2543;
  color: #fff;
}

tr:nth-child(even) {
  background: #f2f2f2;
}

/* Butang lihat */
.btn-lihat {
  background: #0b2543;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}
.btn-lihat:hover {
  background: #1e88e5;
}

/* Popup Modal */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
}
.modal-content h3 {
  margin-top: 0;
}
.modal-content ul {
  padding-left: 20px;
}
.close {
  float: right;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
}

/* 📱 Responsif Telefon */
@media (max-width: 768px) {
  .cards {
    display: block;
  }
  .card {
    width: 100%;
    margin-bottom: 20px;
  }
  .chart-wrapper {
    min-height: 320px;
  }
  th, td {
    font-size: 12px;
    padding: 6px;
  }
}

/* Floating Button */
.float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0b2543;
  color: #fff;
  font-size: 24px;
  text-align: center;
  text-decoration: none;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: background 0.3s;
  z-index: 1100;
}
.float-btn:hover {
  background: #1e88e5;
}

header {
  background: #0b2543;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

nav a {
  background: #1e88e5;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s;
}

nav a:hover {
  background: #1565c0;
}
