/* 여기에 작업 또는 수정할 당신의 css style을 설정하세요. (customizations) */

/* Header Navigation Styles */
.header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
  transition: all 0.3s ease;
}

body {
  padding-top: 130px; /* 헤더 높이만큼 본문 여백 추가 */
}

.top-header {
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
  height: 50px;
  transition: all 0.3s ease;
}

.top-header .container {
  height: 100%;
}

.top-header .row {
  height: 100%;
}

.top-header-nav {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.top-header-nav.thn-end {
  justify-content: flex-end;
}

.top-header-nav li {
  display: flex;
  align-items: center;
  height: 100%;
}

.top-header-nav li a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #666;
  font-size: 0.875rem;
  text-decoration: none;
  height: 100%;
}

.top-header-nav li a i {
  margin-right: 5px;
}

.top-header-nav .dropdown-menu {
  margin-top: 0;
  border-radius: 0 0 4px 4px;
  border-top: none;
}

.top-header-nav .dropdown-menu a {
  padding: 8px 15px;
  height: auto;
}

.header-title {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  transition: all 0.3s ease;
}

/* 스크롤 시 헤더 스타일 */
.header-wrap.sticky {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.header-wrap.sticky .top-header {
  height: 0;
  overflow: hidden;
}

@media (max-width: 991px) {
  body {
    padding-top: 80px; /* 모바일에서는 헤더 높이가 줄어듦 */
  }
}

.header-title .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

.title-logo {
  flex: 0 0 auto;
}

.title-logo img {
  max-height: 50px;
  width: auto;
}

.header-nav-container {
  display: flex;
  justify-content: flex-end;
}

.header-nav-container .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 80px;
}

/* 관리자 메뉴 설정 버튼 컨테이너 수정 */
.header-nav-container .adm-edit-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1010;
}

.header-nav-container .navbar-nav > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.header-nav-container .navbar-nav > li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #ddd;
  font-size: 14px;
}

.header-nav-container .navbar-nav > li > a {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 25px;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.header-nav-container .navbar-nav > li:last-child > a {
  padding-right: 0; /* 마지막 메뉴의 오른쪽 패딩 제거 */
}

.header-nav-container .navbar-nav > li > a:hover {
  color: #007bff;
}

.header-nav-container .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 200px;
  padding: 8px 0;
  margin: 0;
  font-size: 16px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-nav-container .dropdown-menu.show {
  display: block;
}

.header-nav-container .dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav-container .dropdown-menu li a {
  display: block;
  padding: 10px 25px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.header-nav-container .dropdown-menu li a:hover {
  color: #007bff;
  background-color: rgba(0, 0, 0, 0.02);
}

.header-title-mobile-btn {
  display: none;
  margin-left: auto;
}

@media (max-width: 991px) {
  .header-nav-container {
    display: none;
  }

  .header-title-mobile-btn {
    display: block;
  }
}

/* Remove nav-wrap */
.nav-wrap {
  display: none;
}

.item-form-wrap table td {
  white-space: pre-line;
  word-break: keep-all;
  word-wrap: break-word;
}

#m640over {
  display: block;
}
#m640under {
  display: none;
}
#m640over #btn_55_fixed {
  position: fixed;
  left: 10px;
  bottom: 355px;
  z-index: 1000;
  width: 100px;
  height: 100px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
}
#m640over #btn_55_fixed img {
  width: 100px;
  vertical-align: top;
}
#m640over #btn_55_fixed.on {
  opacity: 1;
}

#m640over #btn_155_fixed {
  position: fixed;
  left: 10px;
  bottom: 245px;
  z-index: 1000;
  width: 100px;
  height: 100px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
}
#m640over #btn_155_fixed img {
  width: 100px;
  vertical-align: top;
}
#m640over #btn_155_fixed.on {
  opacity: 1;
}

@media screen and (max-width: 640px) {
  #m640over {
    display: none;
  }
  #m640under {
    display: block;
  }

  #m640under #btn_55_fixed {
    position: fixed;
    right: 10px;
    bottom: 125px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
  }
  #m640under #btn_55_fixed img {
    width: 60px;
    vertical-align: top;
  }
  #m640under #btn_55_fixed.on {
    opacity: 1;
  }

  #m640under #btn_155_fixed {
    position: fixed;
    right: 10px;
    bottom: 195px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
  }
  #m640under #btn_155_fixed img {
    width: 60px;
    vertical-align: top;
  }
  #m640under #btn_155_fixed.on {
    opacity: 1;
  }
}

#m640under #btn_255_fixed {
  position: fixed;
  right: 10px;
  bottom: 235px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
}
#m640under #btn_255_fixed img {
  width: 46px;
  vertical-align: top;
}
#m640under #btn_255_fixed.on {
  opacity: 1;
}

#m640under #btn_355_fixed {
  position: fixed;
  right: 10px;
  bottom: 290px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
}
#m640under #btn_355_fixed img {
  width: 46px;
  vertical-align: top;
}
#m640under #btn_355_fixed.on {
  opacity: 1;
}

.category-list2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-width: 140px;
  text-align: center;
}

.category-btn:hover {
  background-color: #f8f9fa;
  border-color: #ddd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-btn i {
  margin-right: 10px;
  font-size: 1.2em;
}

.category-btn span {
  font-size: 1em;
  font-weight: 500;
}

/* 카테고리별 아이콘 색상 */
.category-btn[href*="ca_id=10"] {
  border-color: #4caf50;
  color: #4caf50;
}
.category-btn[href*="ca_id=10"]:hover,
.category-btn[href*="ca_id=10"].active {
  background-color: #4caf50;
  color: #fff;
}

.category-btn[href*="ca_id=20"] {
  border-color: #2196f3;
  color: #2196f3;
}
.category-btn[href*="ca_id=20"]:hover,
.category-btn[href*="ca_id=20"].active {
  background-color: #2196f3;
  color: #fff;
}

.category-btn[href*="ca_id=30"] {
  border-color: #ff9800;
  color: #ff9800;
}
.category-btn[href*="ca_id=30"]:hover,
.category-btn[href*="ca_id=30"].active {
  background-color: #ff9800;
  color: #fff;
}

.category-btn[href*="ca_id=40"] {
  border-color: #9c27b0;
  color: #9c27b0;
}
.category-btn[href*="ca_id=40"]:hover,
.category-btn[href*="ca_id=40"].active {
  background-color: #9c27b0;
  color: #fff;
}

/* 활성화된 버튼 스타일 */
.category-btn.active {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

/* 반응형 스타일 */
@media (max-width: 991px) {
  .category-list2 {
    gap: 8px;
    margin: 20px auto;
  }

  .category-btn {
    padding: 8px 15px;
    min-width: 120px;
  }
}

@media (max-width: 767px) {
  .category-list2 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px auto;
  }

  .category-btn {
    width: calc(50% - 8px);
    max-width: none;
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .category-btn {
    padding: 8px 10px;
    font-size: 0.85em;
  }

  .category-btn i {
    font-size: 1em;
    margin-right: 5px;
  }
}
