/* === 하단 메뉴바 스타일 개선 === */

/* 전체 메뉴바 배경 및 디자인 */
#bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(95deg, #ff66cc 5.7%, #4d3dbf 84.87%), #f1f1f1;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  z-index: 9999;
  height: 65px;
}

/* 모든 메뉴 아이템 기본 스타일 */
#bottom-menu .menu-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff; /* 기본 텍스트 색상을 흰색으로 */
  font-size: 12px;
  position: relative;
  transition: all 0.3s ease;
  padding: 10px 0;
}

/* SVG 아이콘 스타일 */
#bottom-menu .svg-icon {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  position: relative;
}

#bottom-menu .menu-item:not(.active) .svg-icon img {
  filter: brightness(0) invert(1); /* 아이콘을 흰색으로 변경 */
}

#bottom-menu .svg-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* 그라데이션 아이콘을 위한 가상 요소 */
#bottom-menu .menu-item:not(.active) .svg-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff66cc, #4d3dbf);
  mask-image: url('../img/home.svg'); /* 각 아이콘 경로에 맞게 수정 필요 */
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* 각 아이콘에 맞는 마스크 이미지 설정 */
#bottom-menu a[href*='/']:not(.active) .svg-icon::before {
  mask-image: url('../img/home.svg');
}
#bottom-menu a[href*='/web/hospital/list']:not(.active) .svg-icon::before {
  mask-image: url('../img/hospital.svg');
}
#bottom-menu a[href*='/web/brand/loanMain']:not(.active) .svg-icon::before {
  mask-image: url('../img/loan.svg');
}
#bottom-menu a[href*='/web/bbs/list']:not(.active) .svg-icon::before {
  mask-image: url('../img/bell.svg');
}
#bottom-menu a[href*='/webmy/info']:not(.active) .svg-icon::before {
  mask-image: url('../img/mypage.svg');
}
#bottom-menu a[href*='/web/my/loginSelect']:not(.active) .svg-icon::before {
  mask-image: url('../img/mypage.svg');
}

/* 호버 효과 */
#bottom-menu .menu-item:hover {
  color: #ffffff;
}

#bottom-menu .menu-item:hover:not(.active) .svg-icon img {
  transform: scale(1.1);
}

/* 활성 메뉴 아이템 스타일 */
#bottom-menu .menu-item.active {
  background-color: #ffffff;
  color: #4d3dbf;
}

#bottom-menu .menu-item.active .svg-icon img {
  filter: none; /* 활성 상태에서는 원본 아이콘 색상 사용 */
}

/* 활성 메뉴 아이템의 텍스트 */
#bottom-menu .menu-item.active span {
  font-weight: 600;
}

/* 푸터 여백 조정 */
@media (max-width: 991px) {
  #footer {
    margin-bottom: 65px; /* 메뉴바 높이에 맞게 조정 */
  }
}

/* 작은 모바일 화면 스타일 조정 */
@media (max-width: 375px) {
  #bottom-menu .menu-item {
    font-size: 11px;
  }
}
