#navbar {
  padding: 10px 0;
  transition: 0.4s;
  background: #ffffff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar.scrolled {
  background: #ffffff;
  padding: 8px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Logo */

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: 0.3s ease;
}

.logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: 0.4s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text .title {
  display: block;
  color: #3051a1;
  font-weight: 700;
  font-size: 18px;
}

.brand-text small {
  color: #3051a1;
  opacity: 0.8;
}

#navbar.scrolled .brand-text .title,
#navbar.scrolled .brand-text small {
  color: #3051a1;
}

/* Menu */

.nav-link {
  position: relative;
  margin: 0 6px;
  padding: 0.5rem 0.8rem;
  color: #3051a1 !important;
  font-weight: 500;
}

#navbar.scrolled .nav-link {
  color: #3051a1 !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background: #49c5b6;
  border-radius: 30px;
  transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown */

.dropdown-menu {
  min-width: 220px;
  border: none;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.dropdown-item {
  padding: 12px 20px;
}

.dropdown-item:hover {
  background: #3051a1;
}

.dropdown-item-text {
  padding: 12px 18px;
}

/* ================= BUTTON LOGIN ================= */

.btn-login {
  border: 2px solid #49c5b6;
  color: #49c5b6;
  border-radius: 50px;
  padding: 8px 22px;
  font-weight: 600;
  transition: all 0.35s ease;
}

.btn-login:hover {
  background: #49c5b6;
  color: #3051a1;
  transform: translateY(-2px);
}

/* Saat Navbar di Scroll */

.navbar.scrolled .btn-login {
  background: transparent;
  border-color: #3051a1;
  color: #3051a1;
}

.navbar.scrolled .btn-login:hover {
  background: #3051a1;
  color: #fff;
  transform: translateY(-2px);
}

/* ================= BUTTON REGISTER ================= */

.btn-register {
  margin-left: 10px;
  background: #fff000;
  color: #3051a1;
  border-radius: 50px;
  padding: 8px 22px;
  font-weight: 600;
  transition: all 0.35s ease;
}

.btn-register:hover {
  background: #ffe600;
  color: #3051a1;
  transform: translateY(-2px);
}

/* mobile view */
@media (max-width: 991px) {

  #navbar {
    background: #ffffff;
  }

  .navbar-collapse {
    background: #ffffff;
    padding: 20px;
    margin-top: 15px;
    border-radius: 18px;
  }

  .brand-text .title,
  .brand-text small {
    color: #3051a1;
  }

  .nav-link {
    color: #3051a1 !important;
    padding: 12px 0;
  }

  .action-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    align-items: stretch;
    gap: 12px;
  }

  .action-buttons .btn {
    width: 100%;
  }

  .dropdown,
  .dropdown button {
    width: 100%;
  }

  .btn-login,
  .btn-register {
    width: 100%;
    margin: 5px 0;
  }

  .btn-login {
    border-color: #3051a1;
    color: #3051a1;
  }
}