/* ============================================================
   EPermit — shell aplikasi (sidebar kiri / bottom nav HP)
   Konsep: seperti anjungan (ep-side) — di desktop sidebar kiri,
   di HP berubah menjadi bottom bar (Traveloka style).
   ============================================================ */

body { margin: 0; }

/* ---------- Sidebar (desktop) ---------- */
.ep-side {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 250px;
  background: #fff;
  border-right: 1px solid var(--line, #e4ebf3);
  z-index: 900;
  display: flex;
  flex-direction: column;
}
.ep-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px;
  font-weight: 800; font-size: 1.15rem; color: var(--navy, #0a2540);
  text-decoration: none;
  border-bottom: 1px solid var(--line, #e4ebf3);
}
.ep-brand .brand-logo { width: 30px; height: 30px; fill: var(--blue, #0052cc); }
.ep-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.ep-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 600; font-size: 0.92rem;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ep-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.ep-item:hover { background: var(--bg-alt, #f4f8fc); color: var(--blue, #0052cc); }
.ep-item.active {
  background: linear-gradient(135deg, #0052cc 0%, #00a6ff 100%);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0,102,255,.55);
}

/* ---------- Main ---------- */
.ep-main {
  margin-left: 250px;
  min-height: 100vh;
  padding: 18px 22px 24px;
}
.ep-main--guest { margin-left: 0; }

.ep-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.ep-top-brand {
  display: none;
  align-items: center; gap: 8px;
  color: var(--navy, #0a2540); text-decoration: none; font-weight: 800; font-size: 1.05rem;
}
.ep-top-brand .brand-logo { width: 26px; height: 26px; fill: var(--blue, #0052cc); }
.ep-top-sp { flex: 1; }
.ep-top-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line, #e4ebf3); color: var(--ink, #12263a);
}
.ep-bell-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #dc2626; color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 16px; text-align: center;
}
.ep-role {
  padding: 6px 12px; border-radius: 999px; background: rgba(10,37,64,.07);
  font-size: .78rem; font-weight: 700; color: var(--navy, #0a2540);
}

/* ---------- GUEST header ---------- */
.ep-guest-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line, #e4ebf3); border-radius: 16px;
  padding: 10px 16px; margin-bottom: 16px;
}
.ep-guest-brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--navy, #0a2540); font-weight: 800; font-size: 1.1rem;
}
.ep-guest-brand .brand-logo { width: 28px; height: 28px; fill: var(--blue, #0052cc); }
/* ---------- GUEST nav: Ala tab HP (ikon di atas, label di bawah) ---------- */
.ep-guest-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.ep-guest-nav .btn { align-self: center; }
.ep-guest-item {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-width: 60px; padding: 8px 8px; border-radius: 12px;
  text-decoration: none; color: var(--ink, #12263a); font-size: .68rem; font-weight: 700; line-height: 1;
  background: var(--bg-alt, #f4f8fc);
  transition: background .15s, color .15s;
}
.ep-guest-item svg { width: 20px; height: 20px; }
.ep-guest-item:hover { background: rgba(0,82,204,.12); color: var(--blue, #0052cc); }

/* ---------- Mobile: sidebar jadi bottom bar (Traveloka style) ---------- */
@media (max-width: 900px) {
  .ep-side {
    top: auto; bottom: 0; left: 0; right: 0;
    width: 100%; height: 66px;
    border-right: none; border-top: 1px solid var(--line, #e4ebf3);
    flex-direction: row; align-items: stretch;
  }
  .ep-brand { display: none; }
  .ep-nav {
    flex-direction: row;
    overflow-x: auto; overflow-y: hidden;
    padding: 6px; gap: 4px;
    max-height: none;
  }
  .ep-item {
    flex: 0 0 auto;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 4px; min-width: 64px; padding: 6px 8px; border-radius: 10px;
  }
  .ep-item span { font-size: 0.68rem; font-weight: 700; line-height: 1; }
  .ep-main { margin-left: 0; padding: 14px 14px 88px; }
  .ep-top-brand { display: inline-flex; }
  .ep-role { display: none; }
}

/* scroll kecil */
.ep-nav::-webkit-scrollbar { height: 4px; width: 4px; }
.ep-nav::-webkit-scrollbar-thumb { background: #d6e0dc; border-radius: 10px; }
