/* app/public/css/style.css -- Batch S1 (redesign minimalis kekinian).
   File ini HANYA dipakai oleh app/public/index.html (setiap area punya
   salinan style.css sendiri -- /ops, /centcom, /sim tidak tersentuh oleh
   perubahan di sini). Identitas warna (navy + aksen oranye) dipertahankan
   sesuai arahan pengguna ("navy tetap, dibuat ringan"), tapi permukaan
   (card/tombol/hero) dibuat lebih lapang, sudut lebih lembut, dan bayangan
   halus menggantikan garis tepi tebal -- supaya kesannya lega & modern,
   bukan kaku/formal seperti sebelumnya. */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-soft: #eef2f8;
  --navy-soft-2: #e3e9f3;
  --accent: #c1440e;
  --accent-soft: #fdece3;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e7ebf1;
  --text: #1c2733;
  --muted: #6b7684;
  --ok: #1e7a3e;
  --ok-soft: #e7f4ec;
  --warn: #b8860b;
  --bad: #b3261e;
  --bad-soft: #fbeae8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,37,69,0.05), 0 1px 1px rgba(11,37,69,0.045);
  --shadow-md: 0 10px 28px rgba(11,37,69,0.10), 0 2px 6px rgba(11,37,69,0.06);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

header.topbar {
  background: rgba(11,37,69,0.98);
  color: #fff;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 6px 20px rgba(11,37,69,0.16);
}

header.topbar .brand {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.2px;
}

header.topbar .brand a { color: #fff; text-decoration: none; }

header.topbar .env-tag {
  background: transparent;
  color: #cfe0f2;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

header.topbar .spacer { flex: 1; }

header.topbar .sub { color: #9fb2ca; font-size: 12px; }
header.topbar .sub:hover { color: #cfe0f2; }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 70px;
}

h1 { font-size: 21px; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.2px; }
h2 {
  font-size: 17px;
  margin: 42px 0 16px;
  color: var(--navy-2);
  font-weight: 700;
  letter-spacing: -0.1px;
  display: flex;
  align-items: center;
  gap: 9px;
}
h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
h2:first-of-type { margin-top: 30px; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 700; }

.page-desc { color: var(--muted); margin: 0 0 18px; font-size: 13px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-2);
  margin: 10px 0 5px;
}

input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #9fb3d6;
  box-shadow: 0 0 0 3px rgba(11,37,69,0.08);
}

textarea { resize: vertical; min-height: 64px; }

button, .btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}

button:hover, .btn:hover { background: var(--navy-2); box-shadow: var(--shadow-sm); }
button:active, .btn:active { transform: translateY(1px); }

button.secondary, .btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
}

button.secondary:hover { background: var(--navy-soft); border-color: var(--navy-soft-2); }

button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

details.opt-fields summary {
  cursor: pointer;
  color: var(--navy-2);
  font-weight: 600;
  font-size: 12px;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

table th, table td {
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

table tr:hover td { background: #f8fafc; }

.muted { color: var(--muted); }
.empty-note { color: var(--muted); font-style: italic; padding: 8px 0; }

.incident-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.incident-row:last-child { border-bottom: none; }
.incident-row:hover { background: #f8fafc; }
.incident-row .title { font-weight: 600; }
.incident-row .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--navy-soft);
  color: var(--navy-2);
  white-space: nowrap;
}
.badge.unset { background: #eee; color: var(--muted); font-weight: 500; }

.section-block {
  margin-bottom: 22px;
}
.section-block > .count {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  margin-left: 6px;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: var(--shadow-md);
  z-index: 50;
}
.toast.error { background: var(--bad); }

.error-msg {
  color: var(--bad);
  font-size: 12.5px;
  margin-top: 8px;
}

/* Batch W4 -- konfirmasi Nomor Laporan + "Cek Status Laporan Saya" */
.status-ok { color: var(--ok); font-weight: 600; }
.report-submitted-box {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #cfe6d8;
  border-radius: var(--radius-sm);
  background: var(--ok-soft);
}
.report-id-display { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.report-id-display code {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #fff;
  border: 1px solid #cfe6d8;
  border-radius: 8px;
  padding: 4px 10px;
}
.report-status-card {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px 20px;
}
.info-grid .field .k {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.info-grid .field .v { font-size: 13.5px; margin-top: 1px; }

.backlink { color: var(--navy-2); font-size: 12.5px; text-decoration: none; }
.backlink:hover { text-decoration: underline; }

/* --- Responsif (aplikasi harus berjalan wajar di HP, tablet, PC, lintas
   OS/browser) --- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }

@media (max-width: 640px) {
  main { padding: 18px 14px 52px; }
  .grid-2 { grid-template-columns: 1fr; }
  header.topbar { padding: 12px 16px; gap: 8px; }
  .card { padding: 16px 16px; }
  .toast { left: 14px; right: 14px; bottom: 14px; }
}
