/* Mobile Bottom Navigation Styles */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 0;
}

.mobile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 4px;
  text-decoration: none;
  color: #6c757d;
  transition: all 0.3s ease;
  position: relative;
  min-width: 0;
  font-size: 28px;
}

.mobile-bottom-nav-item i {
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.mobile-bottom-nav-label {
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: all 0.3s ease;
  font-size: 14px !important;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:focus {
  color: #0d6efd;
  text-decoration: none;
}

.mobile-bottom-nav-item.active {
  color: #0d6efd;
}

.mobile-bottom-nav-item.active i {
  transform: scale(1.1);
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-label {
  font-weight: 600;
}

/* Add padding to body when nav is visible to prevent content being hidden */
body.mobile-nav-visible {
  padding-bottom: 70px;
}

/* Media query for mobile devices */
@media (max-width: 767.98px) {
  .mobile-bottom-nav {
    display: block;
  }
}

/* Hide on tablets and larger */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  body.mobile-nav-visible {
    padding-bottom: 0;
  }
}

/* Support for 5 items layout (as shown in the image) */
.mobile-bottom-nav-container {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 374.98px) {
  .mobile-bottom-nav-item i {
    font-size: 18px;
  }

  .mobile-bottom-nav-label {
    font-size: 10px;
  }
}

/* Ripple effect on tap */
.mobile-bottom-nav-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.mobile-bottom-nav-item:active::before {
  width: 100%;
  height: 100%;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .mobile-bottom-nav {
    background: #1a1a1a;
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.1);
  }

  .mobile-bottom-nav-item {
    color: #adb5bd;
  }

  .mobile-bottom-nav-item:hover,
  .mobile-bottom-nav-item:focus,
  .mobile-bottom-nav-item.active {
    color: #0d6efd;
  }
}
