/* ✅ 1행: 로그인/회원가입 */
.top-header-bar {
  background-color: #fff;
  height: 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 12.5px;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
  line-height: 1;
  margin: 0;
}

.top-header-bar a {
  margin-left: 10px;
  color: #555;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.top-header-bar a:hover {
  color: #007bff;
}

/* ✅ 2행: 메인 내비게이션 바 */
.main-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 12px 30px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

/* ✅ 로고 + 햄버거 한줄 */
.main-header-row {
  display: flex;
  align-items: center;
}

/* ✅ 로고 */
.main-logo img {
  height: 40px;
}

/* ✅ 메뉴/검색 영역 */
.nav-expandable {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ✅ 메뉴 링크들 */
.main-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}

.main-menu a {
  color: #222;
  font-weight: 500;
  text-decoration: none;
}

.main-menu a:hover {
  color: #007bff;
}

/* ✅ 검색창 */
.main-search {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 18px;
  padding: 0 10px;
  height: 36px;
  box-sizing: border-box;
  max-width: 300px;
}

.main-search input[type="text"] {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  width: 160px;
  padding: 6px;
  color: #333;
}

.main-search button {
  width: 24px;
  height: 24px;
  background: url('/webgate/static/images/btn_search.png') no-repeat center center;
  background-size: 20px 20px;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  display: block;
}

/* ✅ 햄버거 버튼 */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  margin-left: 16px;
}

/* ✅ 삭제 버튼 예외 스타일 */
.delete-btn {
  padding: 5px 12px;
  background-color: white;
  color: #333;
  border: 1.5px solid #555;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  height: auto;
  min-width: 60px;
}

.delete-btn:hover {
  background-color: #555;
  color: white;
}

/* ✅ 모바일 반응형 */
@media (max-width: 900px) {
  .main-nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .main-header-row {
    width: 100%;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .nav-expandable {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .main-nav-bar.expanded .nav-expandable {
    display: flex;
  }

  .main-menu {
    flex-direction: column;
    gap: 10px;
  }

  .main-search {
    max-width: 100%;
    width: 100%;
  }

  .main-search input[type="text"] {
    width: 100%;
  }
}
