.header {
  height: 80px;
  padding: 0 30px;
  background-color: white;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.header_icon-btn.mobile-menu-btn {
  display: none;
}

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

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

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

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 320px;
  height: 42px;
  padding: 0 50px 0 20px;
  background-color: var(--bg-app);
  border-radius: 24px;
  outline: none;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  font-size: 14px;
  font-family: inherit;
}

.search-box input:focus {
  border-color: var(--primary-blue);
  background-color: white;
}

.search-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.header_icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.header_icon-btn:hover {
  background-color: var(--bg-app);
  color: var(--text-main);
}

.badge-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid white;
}

.header-avatar {
  margin-left: 8px;
  cursor: pointer;
}

.mobile-search-btn {
  display: none !important;
}

@media (max-width: 768px) {

  .mobile-menu-btn {
    display: flex !important;
  }

  .header {
    position: relative;
    padding: 0 10px 0 5px;
  }

  .header-actions {
    gap: 0px
  }

  .search-box {
    position: static;
  }

  .mobile-search-btn {
    display: flex !important;
  }

  .search-input-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-app, #f8fafc);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
    z-index: 1020;
    animation: header-fade-in-down 0.2s ease forwards;
  }

  .search-box.mobile-search-active .search-input-wrapper {
    display: flex !important;
  }

  .search-input-wrapper input {
    width: 100% !important;
    max-width: 100%;
    border-color: var(--primary-blue);
    background-color: white;
  }

  .search-btn {
    top: 16px;
    right: 20px;
  }
}

@keyframes header-fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}