/* ===========================================================
   NAVBAR — GLASS FLOAT FIXED + HEIGHT FIX + RESPONSIVE
   =========================================================== */

/* WRAPPER NAVBAR */
.glassnav {
  position: fixed;
  gap : 10px;
  top: 10px;                        /* DITURUNKAN dari 20px → 8px agar tidak terlalu tinggi */
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 40px);        /* sedikit lebih kecil agar tidak turun */
  max-width: 1180px;

  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.78);
  border-radius: 16px;

  padding: 12px 0 !important;      /* FIX NAVBAR TINGGI – dari 16px → 10px */
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);   /* lebih soft supaya tidak terlihat bulky */
}

/* Cegah margin / padding global nambah tinggi */
body {
  margin-top: 3px !important;     /* nav fixed → beri ruang pas (tinggi nav = 60–70px) */
}

/* INNER NAV LAYOUT */
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  height: 38px;                    /* kecilkan sedikit biar tidak menambah tinggi */
  width: 38px;
  object-fit: contain;
}

.brand-text {
  font-weight: 900;
  color: #022b47;
  font-size: 19px;
}

/* LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #003647;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #007bff;
}

/* ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* USER STATS */
.user-stats {
  display: flex;
  gap: 10px;
  font-weight: 700;
  background: rgba(0,108,255,0.12);
  padding: 6px 10px;
  border-radius: 8px;
  color: #0053cc;
}

/* HAMBURGER MOBILE */
.hamburger {
  display: none;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #003647;
  display: block;
  margin: 4px 0;
  border-radius: 5px;
}

/* MOBILE NAVIGATION */
@media(max-width: 900px){

  .hamburger { display: block; }

  .nav-links {
    position: absolute;
    top: 70px;                       /* disesuaikan dengan navbar fixed height baru */
    right: 20px;
    width: 240px;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);

    flex-direction: column;
    gap: 16px;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }
}
