.topbar {
  height: var(--topbar-height);
  background-color: #ffffff;
  /* Shadow តាមការចង់បានរបស់អ្នក */
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
  z-index: 200;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger (=) Button */
.btn-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: #334155;
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.15s ease;
  display: none;
}

.btn-hamburger:hover {
  background-color: #f1f5f9;
}

/* Brand Area */
.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tenable-logo-icon {
  width: 26px;
  height: 26px;
}

.brand-tenable {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.brand-product {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
}

.header-divider {
  width: 1px;
  height: 22px;
  background-color: #cbd5e1;
  margin: 0 4px;
}

.header-page-title {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-search {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  padding: 6px 12px;
  border-radius: 4px;
  width: 220px;
  border: 1px solid #e2e8f0;
}

.topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  margin-left: 8px;
  width: 100%;
}

.btn-icon {
  background: transparent;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 16px;
}

.btn-icon:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}
/* ================= RESPONSIVE HEADER ================= */
@media (max-width: 1024px) {
    .header-page-title,
    .header-divider,
    .brand-product {
        display: none !important; /* Hide non-essential text on mobile/tablet */
    }
    
    .topbar-search {
        width: 140px; /* Shrink search box */
    }
    
    .brand-tenable {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .topbar-search {
        display: none; /* Hide search entirely on very small screens */
    }
}

  @media (max-width: 767px) {
    .btn-hamburger {
      display: flex;
    }

    .header-left {
      gap: 6px;
    }

    .brand-logo-img {
      width: 30px;
    }
  }
