.topbar {
  height: 70px;
}

.topbar .navbar-brand {
  font-size: 20px;
  min-width: 180px;
}

.topbar .navbar-nav {
  height: 70px;
}

.topbar .nav-link {
  height: 70px;
  display: flex;
  align-items: center;
  position: relative;
  color: #5f6368;
  font-size: 13px;
}

.topbar .nav-link:hover {
  color: #e26100;
}

.topbar .nav-link.active {
  color: #e26100;
  font-weight: 600;
}

/* Garis biru di menu aktif */
.topbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #e26100;
}

.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent !important;
  border: none;
  color: #5f6368;
}

.icon-btn:hover {
  background: #f1f3f4 !important;
}

.profile-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.logo {
  margin-bottom: 20px;
  text-align: center;
  padding-top: 20px;
}

.logo img {
  width: 150px;
  height: auto;
  display: block;
}

/* ===== HAMBURGER MENU STYLES ===== */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== MOBILE PROFILE SECTION ===== */
.mobile-profile-section {
  display: none;
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0.5rem;
}

.mobile-profile-section img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  margin-right: 12px;
}

.mobile-profile-info {
  flex: 1;
}

.mobile-profile-info .profile-name {
  font-weight: 600;
  font-size: 14px;
  color: #202124;
  margin-bottom: 2px;
}

.mobile-profile-info .profile-email {
  font-size: 12px;
  color: #5f6368;
}

/* ===== MOBILE ACTION BUTTONS ===== */
.mobile-actions {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 0.5rem;
}

.mobile-action-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #202124;
  font-size: 14px;
  text-align: left;
  width: 100%;
  transition: background 0.2s;
}

.mobile-action-item:hover {
  background: #f1f3f4;
}

.mobile-action-item.logout {
  color: #d93025;
}

.mobile-action-item i {
  font-size: 18px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
  /* Hide desktop profile */
  .profile-menu-wrap {
    display: none !important;
  }

  /* Show mobile elements */
  .mobile-profile-section {
    display: flex;
    align-items: center;
  }

  .mobile-actions {
    display: flex;
  }

  /* Fix logo alignment in mobile */
  .topbar .logo {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    text-align: left;
  }

  .topbar .logo img {
    width: 100px;
    height: auto;
  }

  /* Fix navbar brand width */
  .topbar .navbar-brand {
    min-width: auto;
    padding: 0;
  }

  /* Fix hamburger button alignment */
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    height: 40px;
    display: flex;
    align-items: center;
  }

  /* Ensure topbar container centers items vertically */
  .topbar .container-fluid {
    display: flex;
    align-items: center;
  }

  /* Vertical menu in collapsed state */
  .navbar-collapse .navbar-nav {
    margin: 0 !important;
    flex-direction: column;
    height: auto !important;
  }

  .navbar-collapse .nav-link {
    height: auto !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #f1f3f4;
  }

  .navbar-collapse .nav-link.active::after {
    display: none;
  }

  .navbar-collapse .nav-link.active {
    background: #fef7ec;
    border-left: 3px solid #e26100;
  }

  /* Collapsed menu styling */
  .navbar-collapse {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
}

@media (min-width: 992px) {
  /* Hide mobile elements on desktop */
  .mobile-profile-section {
    display: none !important;
  }

  .mobile-actions {
    display: none !important;
  }

  /* Hide hamburger on desktop */
  .navbar-toggler {
    display: none;
  }
}
