body { background:#f4f6f8; }
.card { border-radius:12px; }
.map { height:300px; width:100%; }

/* RESET */
* {
  box-sizing: border-box;
}

/* BODY */
body {
  background: linear-gradient(135deg, #0d6efd, #084298);
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* WRAPPER */
.main-wrapper {
  min-height: calc(100vh - 56px);
}

/* CARD */
.laporan-card {
  border-radius: 18px;
  background: #ffffff;
}

/* HEADER FORM */
.header-form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* MAP */
.map-box {
  width: 100%;
  height: 300px;
  border-radius: 14px;
  background: #e9ecef;
}

/* FORM */
.form-control,
.form-select {
  border-radius: 10px;
}

.btn {
  border-radius: 12px;
}

/* =====================
   TABLET
===================== */
@media (max-width: 768px) {
  .map-box {
    height: 250px;
  }
}

/* =====================
   MOBILE
===================== */
@media (max-width: 576px) {

  .header-form {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .laporan-card {
    border-radius: 14px;
  }

  .map-box {
    height: 220px;
  }

  .form-control,
  .form-select {
    font-size: 0.95rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 12px;
  }
}

/* =====================
   RIWAYAT LAPORAN
===================== */

/* WARNA STATUS */
.table .row-diproses {
  --bs-table-bg: #fff3cd;
  --bs-table-color: #664d03;
}

.table .row-diterima {
  --bs-table-bg: #f8d7da;
  --bs-table-color: #842029;
}

.table .row-selesai {
  --bs-table-bg: #d1e7dd;
  --bs-table-color: #0f5132;
}

/* TABLE RESPONSIVE */
.table-responsive {
  border-radius: 12px;
  overflow-x: auto;
}

/* MODAL */
.modal-content {
  border-radius: 16px;
}

.modal-header {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* MOBILE */
@media (max-width: 576px) {

  .modal-dialog {
    margin: 0.75rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  table {
    font-size: 0.9rem;
  }

  .modal-footer .btn {
    width: 100%;
  }
}
/* =====================
   ADMIN DASHBOARD
===================== */

.admin-content {
  min-height: calc(100vh - 60px);
}

.stat-card {
  border-radius: 16px;
  transition: .2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.stat-card h6 {
  font-size: .9rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.stat-card h3 {
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .admin-content {
    padding: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .admin-content {
    padding: 1rem !important;
  }

  h3 {
    text-align: center;
  }

  .stat-card {
    text-align: center;
  }
}
/* =====================
   ADMIN SIDEBAR
===================== */

.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: #212529;
  color: #fff;
  padding: 1rem;
  flex-shrink: 0;
  z-index: 1100; /* WAJIB */
}

/* LINK */
.admin-sidebar .nav-link {
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-sidebar .nav-link:hover {
  background: rgba(255,255,255,.15);
}

.admin-sidebar .nav-link.active {
  background: #0d6efd;
  color: #fff;
}

/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100%;
    transition: left .3s ease;
  }

  .admin-sidebar.show {
    left: 0;
  }

  /* CONTENT HARUS DI BAWAH SIDEBAR */
  .admin-content {
    position: relative;
    z-index: 1;
  }
}
/* =========================
   BACKGROUND tabel dashboard
========================= */
/* CARD */
.card {
  background-color: #e8f1ff;
  border: 1px solid #b6d0ff;
  box-shadow: 0 4px 12px rgba(0, 98, 255, 0.12);
}

/* HEADER & FOOTER */
.card-header,
.card-footer {
  background-color: #cfe2ff;
  border-bottom: 1px solid #b6d0ff;
}

/* JUDUL */
.card-header h6 {
  font-weight: 700;
  color: #084298;
}

/* TABLE HEADER */
.table thead {
  background-color: #b6d4fe;
}

.table thead th {
  color: #052c65;
  font-weight: 600;
}

/* TABLE ROW */
.table tbody tr:nth-child(odd) {
  background-color: #f1f6ff;
}

.table tbody tr:nth-child(even) {
  background-color: #e0ecff;
}

/* HOVER – KELIHATAN BANGET */
.table-hover tbody tr:hover {
  background-color: #a9c7ff;
  color: #052c65;
  transition: all 0.2s ease;
}

/* BADGE LEBIH STAND OUT */
.badge {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 8px;
}

