/* CSS tùy chỉnh cho thanh điều hướng 4 nút */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  background-color: #ffffff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  border-top: 1px solid #e0e0e0;
}

.mobile-bottom-nav__item {
  flex: 1;
  text-align: center;
  padding: 0 2px;
}

.mobile-bottom-nav__item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #757575;
  padding: 4px 0;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.mobile-bottom-nav__item.active .mobile-bottom-nav__item-link {
  color: #0066cc; /* Màu khi đang active */
  background-color: rgba(0, 102, 204, 0.05);
}

/* Biểu tượng */
.mobile-bottom-nav__item-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

/* Văn bản */
.mobile-bottom-nav__item-text {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Màu sắc theo từng tab */
.mobile-bottom-nav__item:nth-child(1) .mobile-bottom-nav__item-link.active {
  color: #FF9800; /* Màu cam cho Thực Đơn */
}

.mobile-bottom-nav__item:nth-child(2) .mobile-bottom-nav__item-link.active {
  color: #673AB7; /* Màu tím cho Hình Ảnh */
}

.mobile-bottom-nav__item:nth-child(3) .mobile-bottom-nav__item-link.active {
  color: #2196F3; /* Màu xanh dương cho Đặt Bàn */
}

.mobile-bottom-nav__item:nth-child(4) .mobile-bottom-nav__item-link {
  color: #4CAF50; /* Màu xanh lá cho Gọi Điện */
}

/* Hiệu ứng đặc biệt cho nút gọi điện */
.mobile-bottom-nav__item:nth-child(4) .mobile-bottom-nav__item-icon {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Hiệu ứng ripple khi nhấn */
.mobile-bottom-nav__item-link {
  position: relative;
  overflow: hidden;
}

.mobile-bottom-nav__item-link::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

.mobile-bottom-nav__item-link:active::after {
  transform: scale(0, 0);
  opacity: .3;
  transition: 0s;
}

/* Responsive - Chỉ hiển thị trên di động */
@media screen and (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* Thêm padding cho phần body để tránh bị che nội dung bởi thanh điều hướng */
body.has-mobile-nav {
  padding-bottom: 60px;
}

/* Ẩn thanh điều hướng khi bàn phím hiển thị trên iOS */
@media screen and (max-height: 400px) {
  .mobile-bottom-nav {
    display: none;
  }
}