* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg,#1260cc,#0a5fa8);
  color: #fff;
}

/* NAVBAR */
.navbar {
  background: #0274ff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 18px;
}

.navbar input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 14px;
}

/* SECTION */
.section {
  padding: 22px 16px;
}

.section h2 {
  margin-bottom: 14px;
  font-size: 20px;
}
/* =========================
   APP HEADER
   ========================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  background: linear-gradient(180deg,#0274ff,#0b5fd7);
  color: #fff;
}

/* tombol close */
.btn-back {
  background: rgba(255,255,255,.2);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;

  font-size: 18px;
  font-weight: 800;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* judul */
.app-title {
  font-size: 17px;
  font-weight: 800;
}
.page {
  padding-top: 12px;
}
/* NAVBAR PAGE (NON INDEX) */
.navbar-page {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* tombol close */
.nav-close {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 10000; /* 🔥 DI ATAS MODAL */
  height: 56px;
  background: linear-gradient(135deg,#2563eb,#1e40af);
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.btn-close-page {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.app-title {
  flex: 1;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-right: 22px; /* biar center */
}
.navbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-box {
  margin-left: auto;
}

.bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.bubble-text {
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  position: relative;
  max-width: 260px;
}

.bubble-text::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent rgba(255,255,255,.15) transparent transparent;
}

.bubble-text span {
  color: #38bdf8;
  font-weight: 600;
  cursor: pointer;
}
.user-box {
  position: relative;
  margin-left: auto;
}

/* bubble */
.nav-bubble {
  position: absolute;
  top: 42px;
  right: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 10px;
  max-width: 180px;
  line-height: 1.3;
  z-index: 999;
}

/* ekor bubble */
.nav-bubble::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0,0,0,.35) transparent;
}

/* bubble bisa diklik */
.nav-bubble {
  cursor: pointer;
}
.user-btn {
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search-wrapper {
  padding: 10px 14px;
  background: linear-gradient(180deg,#0d6efd,#0b5ed7);
}

.search-wrapper input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  font-size: 14px;
  outline: none;
}
#adminBtn {
  position: fixed;
  bottom: 14px;
  left: 14px;
  background: rgba(11, 60, 138, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

#adminBtn:hover {
  background: #2563eb;
}
/* =========================
   GLOBAL ADMIN
   ========================= */
body {
  background: #0a2f63;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
}

/* =========================
   HEADER
   ========================= */
.navbar {
  background: #0b3a7e;
  color: #fff;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.navbar .brand {
  flex: 1;
  font-weight: bold;
}

/* =========================
   LIST CONTAINER
   ========================= */
.container {
  padding: 12px;
  padding-bottom: 90px; /* biar ga ketutup nav bawah */
}

/* =========================
   CARD ORDER
   ========================= */
.admin-card {
  background: #0b3c8a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.admin-card b {
  font-size: 15px;
}

.admin-card small {
  opacity: .85;
}

/* =========================
   STATUS BADGE
   ========================= */
.admin-card .status {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

.status.pending {
  background: #facc15;
  color: #000;
}

.status.success {
  background: #22c55e;
  color: #000;
}

.status.rejected {
  background: #ef4444;
  color: #fff;
}

/* =========================
   BUTTON
   ========================= */
.btn {
  margin-top: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn.ok {
  background: #22c55e;
  color: #000;
}

.btn.no {
  background: #ef4444;
  color: #fff;
}

/* =========================
   NAV BAWAH (ACC / TOLAK)
   ========================= */
#adminNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0b3a7e;
  display: flex;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  z-index: 999;
}

#adminNav button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#adminNav .acc {
  background: #22c55e;
  color: #000;
}

#adminNav .reject {
  background: #ef4444;
  color: #fff;
}
/* =========================
   ACTION BUTTON DI CARD
   ========================= */
.admin-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.admin-card .actions button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-weight: bold;
}
.admin-header {
  background: #0b3a7e;
  padding: 12px;
  color: #fff;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title {
  font-weight: 700;
  font-size: 16px;
}

.admin-actions button {
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.admin-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: #fff;
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.25s ease;
}

/* WARNA DASAR */
.tab.pending { background: #64748b; }
.tab.acc     { background: #22c55e; }
.tab.reject  { background: #ef4444; }

/* TAB AKTIF */
body.page-pending .tab.pending,
body.page-acc .tab.acc,
body.page-reject .tab.reject {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  pointer-events: none;        /* gak bisa diklik */
  filter: brightness(1.15);
}

/* TAB TIDAK AKTIF (hover dikit) */
.admin-tabs .tab:not([style]):hover {
  opacity: 0.85;
  transform: scale(0.98);
}

/* ===== PROFILE DROPDOWN ===== */

.profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: white;
  font-weight: 600;
}

.profile-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
}

.profile-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  width: 190px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.profile-menu a {
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: 0.2s;
}

.profile-menu a:hover {
  background: #f1f5f9;
}

.profile-menu .divider {
  height: 1px;
  background: #eee;
}

.logout-btn {
  color: red;
  font-weight: 600;
}

.profile-menu.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-google {
  background: #ffffff;
  color: #0b3c8a;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-google:hover {
  background: #e6f0ff;
}