/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2D2D2D 0%, #8B8680 100%);
  border-radius: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  padding: 10px 25px;
  gap: 30px;
  z-index: 9999;
  max-width: 90vw;
  min-width: 280px;
  font-family: 'Inter', sans-serif;
}

.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 1.2px, transparent 1.2px),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.08) 0.8px, transparent 0.8px),
    radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px),
    radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.04) 0.7px, transparent 0.7px),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.03) 0.6px, transparent 0.6px);
  background-size: 40px 40px, 35px 35px, 50px 50px, 45px 45px, 30px 30px, 38px 38px, 42px 42px, 32px 32px;
  background-position: 0 0, 10px 10px, 5px 5px, 15px 15px, 20px 20px, 25px 25px, 8px 8px, 18px 18px;
  border-radius: 40px;
  animation: rotateDots 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotateDots {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

/* Logo styles with modern effects */
.logo-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  animation: logo-float 6s ease-in-out infinite;
}

.logo {
  height: clamp(25px, 5vw, 38px);
  width: auto;
  opacity: 0.85;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: 
    brightness(1.1) 
    contrast(1.05)
    drop-shadow(0 0 15px rgba(79, 172, 254, 0.4))
    drop-shadow(0 0 30px rgba(79, 172, 254, 0.2))
    drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
  animation: logo-shimmer 4s ease-in-out infinite;
}



.logo:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: 
    brightness(1.2) 
    contrast(1.1)
    drop-shadow(0 0 20px rgba(79, 172, 254, 0.6))
    drop-shadow(0 0 40px rgba(79, 172, 254, 0.3))
    drop-shadow(0 6px 25px rgba(0, 0, 0, 0.2));
}

@keyframes logo-float {
  0%, 100% { 
    transform: translateY(0px) scale(1);
  }
  50% { 
    transform: translateY(-5px) scale(1.02);
  }
}

@keyframes logo-shimmer {
  0%, 100% { 
    filter: brightness(1.1) contrast(1.05) saturate(1);
  }
  50% { 
    filter: brightness(1.2) contrast(1.1) saturate(1.1);
  }
}



/* Responsive adjustments for logo */
@media (max-width: 768px) {
  .logo-container {
    top: 15px;
    left: 15px;
  }
  
  .logo {
    height: clamp(30px, 8vw, 50px);
  }
}

@media (max-width: 480px) {
  .logo-container {
    top: 10px;
    left: 10px;
  }
  
  .logo {
    height: clamp(25px, 10vw, 40px);
  }
}



.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 80px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  z-index: 1;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.nav-item:hover span {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 1) 30%,
    rgba(255, 255, 255, 1) 70%,
    rgba(255, 255, 255, 0.8) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-hover 1.5s ease-in-out infinite;
}

@keyframes shimmer-hover {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.nav-item.active {
  color: #ffffff;
  font-weight: 500;
}

.nav-item.active span {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.9) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-active 2s ease-in-out infinite;
}

@keyframes shimmer-active {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.nav-item.active .nav-icon {
  filter: brightness(1.2);
}

.nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  filter: brightness(0.8);
}

.nav-item:hover .nav-icon {
  filter: brightness(1.1);
  transform: scale(1.1);
}

.nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.7) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.icon-with-dot {
  position: relative;
}

.dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Responsive design for different screen sizes */

/* Add item with center plus icon */
.add-item {
  position: relative;
}

.plus-icon-center {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-plus-center 3s ease-in-out infinite;
  box-shadow: 
    0 0 15px rgba(79, 172, 254, 0.4),
    0 0 30px rgba(79, 172, 254, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-plus-center {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    opacity: 1;
    box-shadow: 
      0 0 15px rgba(79, 172, 254, 0.4),
      0 0 30px rgba(79, 172, 254, 0.2),
      0 4px 20px rgba(0, 0, 0, 0.2);
  }
  25% {
    transform: scale(1.05) rotate(90deg);
    opacity: 0.9;
  }
  50% { 
    transform: scale(1.1) rotate(180deg);
    opacity: 0.8;
    box-shadow: 
      0 0 20px rgba(79, 172, 254, 0.6),
      0 0 40px rgba(79, 172, 254, 0.4),
      0 6px 25px rgba(0, 0, 0, 0.3);
  }
  75% {
    transform: scale(1.05) rotate(270deg);
    opacity: 0.9;
  }
}

.add-item:hover .plus-icon-center {
  transform: scale(1.2) rotate(180deg);
  animation-duration: 1s;
  box-shadow: 
    0 0 25px rgba(79, 172, 254, 0.8),
    0 0 50px rgba(79, 172, 254, 0.5),
    0 8px 30px rgba(0, 0, 0, 0.4);
}

.add-item:active .plus-icon-center {
  transform: scale(1.1) rotate(90deg);
}

/* Dropdown menu styles */
.dropdown-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4), 
    0 12px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  margin-bottom: 15px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10001;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 25px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #1a1a1a;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 400;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
  transition: width 0.3s ease;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
  color: rgba(255, 255, 255, 1);
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
}

.dropdown-item:hover::before {
  width: 4px;
}

.dropdown-item:active {
  transform: translateX(6px) scale(0.98);
}

.dropdown-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0.8);
  transition: all 0.3s ease;
}

.dropdown-item:hover .dropdown-icon {
  filter: brightness(1.2);
  transform: scale(1.1);
}

/* Menu item with dropdown functionality */
.menu-item {
  position: relative;
}

/* Menu item hover and active states */
.menu-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.menu-item:hover .menu-icon {
  transform: scale(1.1);
  filter: brightness(1.3);
}

/* Touch/click support for mobile */
.menu-item.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
@media (max-width: 480px) {
  .bottom-nav {
    padding: 8px 15px;
    gap: 15px;
    border-radius: 30px;
    bottom: 15px;
    min-width: 260px;
  }
  
  .nav-item {
    font-size: 10px;
  }
  
  .nav-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
  }
  
  .dot {
    width: 6px;
    height: 6px;
    top: -1px;
    right: -1px;
  }
  
  .plus-icon-center {
    width: 28px;
    height: 28px;
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .dropdown-menu {
    min-width: 180px;
    right: -20px;
  }
  
  .dropdown-item {
    padding: 10px 15px;
    font-size: 12px;
  }
  
  .dropdown-icon {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .bottom-nav {
    padding: 9px 20px;
    gap: 25px;
    border-radius: 35px;
  }
  
  .nav-item {
    font-size: 11px;
  }
  
  .nav-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
  }
  
  .plus-icon-center {
    width: 30px;
    height: 30px;
    font-size: 17px;
    margin-bottom: 4px;
  }
  
  .dropdown-menu {
    min-width: 190px;
  }
}

@media (min-width: 769px) {
  .bottom-nav {
    padding: 12px 30px;
    gap: 35px;
    border-radius: 45px;
  }
  
  .nav-item {
    font-size: 13px;
  }
  
  .nav-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
  }
  
  .plus-icon-center {
    width: 34px;
    height: 34px;
    font-size: 20px;
    margin-bottom: 6px;
  }
}
