/* Style pelengkap Tailwind CDN — komponen kecil yang dipakai berulang di semua halaman */

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}
.nav-link-active {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.1rem 1.25rem;
}

/* Peta mockup statis: grid pola + marker, BUKAN peta interaktif fungsional */
.map-mockup {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #dbeafe;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid #bfdbfe;
}
.map-mockup::after {
  content: "PETA MOCKUP — BUKAN PETA INTERAKTIF";
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #64748b;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 6px;
  border-radius: 4px;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

/* Cuplikan peta statis (mosaik ubin OpenStreetMap + pin) — gambar diam, bukan peta interaktif */
.static-map {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #e2e8f0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.progress-bar-track {
  width: 100%;
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 9999px;
}

.qr-frame {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  display: inline-flex;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
table.data-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
table.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
table.data-table tr:last-child td {
  border-bottom: none;
}

.tab-btn {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab-btn.active {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
}

.scan-flash {
  animation: flashGreen 0.6s ease;
}
@keyframes flashGreen {
  0% { background-color: #bbf7d0; }
  100% { background-color: transparent; }
}
