body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff); /* biru soft */
  color: #111827;
  padding-bottom: 40px;
}

.data-card {
  background: #fff;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

header {
  background: #111827;
  color: #fff;
  padding: 16px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.container {
  padding: 20px;
  max-width: 600px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
button {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  transform: scale(1.03);
  opacity: 0.9;
  transition: all 0.2s ease-in-out;
}

button.btn-primary {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  background: #1e40af;
}

button.btn-secondary {
  background: linear-gradient(90deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-secondary:active {
  background: #059669;
}

.date-group {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.date-group h3 {
  margin: 0 0 6px;
}

.date-group ul {
  padding-left: 18px;
}

.date-group p {
  margin: 6px 0;
  color: #555;
}

.detail-list {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 14px;
}

#camera {
  width: 100%;
  margin-top: 15px;
  border-radius: 8px;
  background: #000;
}

#preview {
  width: 100%;
  max-width: 400px;
  margin-top: 15px;
  border-radius: 12px;
  background: #000;
  min-height: 200px;
}

#scan-result {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
}

#scan-result li {
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 15px;
}

#scan-result li:last-child {
  border-bottom: none;
}

/* --- TABLE WRAPPER --- */
#result-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  font-size: 15px;
}

/* --- HEADER --- */
#result-table thead {
  background: #e9e9eb;
  color: white;
}

#result-table th {
  padding: 12px;
  text-align: left;
  font-weight: 700;
  color: #111827;
  border-bottom: 2px solid #e5e7eb;
}

/* --- ROW STYLE --- */
#result-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}

/* --- ZEBRA STRIPES --- */
#result-table tbody tr:nth-child(odd) {
  background: #f0f9ff;
}
#result-table tbody tr:nth-child(even) {
  background: #ffffff;
}
/* --- HOVER EFFECT (BIAR KEREN) --- */
#result-table tbody tr:hover {
  background: #93c5fd;
  transition: 0.2s;
}
@media (max-width: 400px) {
  button {
    font-size: 14px;
    padding: 12px;
  }
}
