:root {
  --color-dark-blue: #0a1628;
  --color-gold: #c9952a;
}

/* ── General ── */
.cursor-pointer { cursor: pointer; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f8f9fa;
}

/* ── Navbar ── */
.bg-dark-blue { background-color: var(--color-dark-blue) !important; }

.btn-gold {
  background-color: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
}
.btn-gold:hover {
  background-color: #a87a1f;
  border-color: #a87a1f;
  color: #fff;
}

/* ── Hero ── */
.hero-section {
  min-height: 70vh;
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, #1a3a6b 100%);
}

/* ── Sidebar (customer & admin) ──
   Scoped to desktop only — below md the customer sidebar is an
   offcanvas-md panel that manages its own position/height itself;
   overriding those here would break the show/hide transform. */
@media (min-width: 768px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding-top: 0;
  }
}

.sidebar-link {
  color: #495057;
  border-radius: 6px;
  margin: 2px 8px;
  padding: 8px 12px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover,
.sidebar-link.active {
  background-color: #e8f0fe;
  color: #1a3a6b;
}
.sidebar-link.active { font-weight: 600; }

/* Admin sidebar */
.admin-nav-link {
  color: rgba(255,255,255,.7);
  border-radius: 6px;
  margin: 2px 8px;
  padding: 8px 12px;
  transition: background 0.15s, color 0.15s;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  background-color: rgba(255,255,255,.1);
  color: #fff;
}
.admin-nav-link.active { font-weight: 600; }

/* ── Tables ── */
.table th { font-weight: 600; font-size: 0.85rem; }

/* ── Cards ── */
.card { border-radius: 10px; }

/* ── Footer ── */
.footer { border-top: 1px solid rgba(255,255,255,.1); }

/* ── Auth forms ── */
.card.shadow-sm { border-radius: 12px; }

/* ── Customer/admin layout ── */
.customer-layout,
.admin-layout {
  background-color: #f0f2f5;
}

@media (max-width: 767px) {
  /* Admin sidebar only (d-md-block, always visible, no offcanvas) — the
     customer sidebar is offcanvas-md below this width and manages its
     own position/height; overriding it here breaks the slide-in panel. */
  .sidebar:not(.offcanvas-md) { height: auto; position: relative; }
  .hero-section { min-height: 50vh; }
  .customer-layout { padding-bottom: 64px; }
}

/* ── Bottennav (mobil) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.bottom-nav-link {
  flex: 1;
  background: none;
  border: 0;
  text-align: center;
  padding: 6px 2px 4px;
  color: #6c757d;
  font-size: 0.7rem;
  text-decoration: none;
  line-height: 1.2;
}
.bottom-nav-link i {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.bottom-nav-link.active { color: var(--color-dark-blue); font-weight: 600; }
