:root {
  --navy: #0f1f3d;
  --navy-dark: #0a1429;
  --navy-light: #1a2f54;
  --gold: #c9a227;
  --gold-light: #e6c558;
  --gray-bg: #f4f5f7;
  --success: #1e8e3e;
  --warning: #e8a317;
  --danger: #d33636;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--gray-bg);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1f2733;
  padding-bottom: 70px;
}

/* ===== Topbar ===== */
.app-topbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-topbar .brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-topbar .brand small {
  display: block;
  font-size: 15px;
  color: #cdd6e6;
  font-weight: 400;
}

.app-topbar a.logout-btn {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
}

/* ===== Container ===== */
.app-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

/* ===== Card ===== */
.card-hk {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #ebedf0;
}

.card-hk h6 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ===== Lokasi Card (untuk daftar pilihan) ===== */
.lokasi-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #ebedf0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #1f2733;
  transition: all 0.15s;
}

.lokasi-card:active {
  background: #f0f2f5;
}

.lokasi-card .lokasi-name {
  font-weight: 600;
  font-size: 15px;
}

.lokasi-card .lokasi-sub {
  font-size: 12px;
  color: #8a93a3;
  margin-top: 2px;
}

.lokasi-card .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot-done {
  background-color: var(--success);
}
.dot-pending {
  background-color: #d1d5db;
}
.dot-problem {
  background-color: var(--danger);
}

/* ===== Shift Badge ===== */
.shift-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 20px;
}

/* ===== Item Checklist Row ===== */
.item-row {
  border-bottom: 1px solid #f0f1f3;
  padding: 14px 0;
}

.item-row:last-child {
  border-bottom: none;
}

.item-row .item-name {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 10px;
  color: #1f2733;
}

.status-options {
  display: flex;
  gap: 8px;
}

.status-options input[type="radio"] {
  display: none;
}

.status-options label {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 10px;
  border: 1.5px solid #e2e5ea;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}

.status-options input[value="Baik"]:checked + label {
  background-color: rgba(30, 142, 62, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.status-options input[value="Kurang"]:checked + label {
  background-color: rgba(232, 163, 23, 0.12);
  border-color: var(--warning);
  color: var(--warning);
}

.status-options input[value="Rusak"]:checked + label {
  background-color: rgba(211, 54, 54, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.item-catatan-box {
  margin-top: 10px;
  display: none;
}

.item-catatan-box.show {
  display: block;
}

/* ===== Buttons ===== */
.btn-navy {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}

.btn-navy:hover,
.btn-navy:active {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
}

.btn-gold:hover {
  background-color: var(--gold-light);
  color: var(--navy-dark);
}

/* ===== Bottom Sticky Action ===== */
.bottom-action {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.bottom-action .app-container {
  padding: 0;
}

/* ===== Login Page ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 20px;
}

.login-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.login-box .logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.login-box h5 {
  text-align: center;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.login-box p.subtitle {
  text-align: center;
  color: #8a93a3;
  font-size: 13px;
  margin-bottom: 24px;
}

/* ===== Table (Admin/Desktop) ===== */
.table-hk thead {
  background-color: var(--navy);
  color: #fff;
}

.table-hk th {
  font-weight: 600;
  font-size: 13px;
}

/* ===== Stat Cards (Dashboard) ===== */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}

.stat-card .stat-label {
  font-size: 12.5px;
  color: #8a93a3;
}

/* ===== Sidebar Admin (desktop) ===== */
.admin-sidebar {
  background: var(--navy-dark);
  min-height: 100vh;
  padding: 20px 0;
}

.admin-sidebar .nav-link {
  color: #cdd6e6;
  padding: 11px 20px;
  font-size: 14px;
  border-left: 3px solid transparent;
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
  border-left: 3px solid var(--gold);
}

.admin-sidebar .sidebar-brand {
  color: var(--gold-light);
  font-weight: 700;
  padding: 0 20px 20px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    padding-bottom: 0;
    background: #fff;
  }
}
