:root {
  --metal-dark: #0a1628;
  --metal-blue: #1a2f4a;
  --metal-cyan: #2d4a5c;
  --accent-teal: #00d9ff;
  --accent-green: #00ff88;
  --metal-light: #3d5a6b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  padding-bottom: 90px;
  background: linear-gradient(135deg, #0a1628 0%, #1a2f4a 50%, #2d4a5c 100%);
  min-height: 100vh;
}

.appFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg,
    rgba(10, 22, 40, 0.98) 0%,
    rgba(26, 47, 74, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 2px solid rgba(0, 217, 255, 0.4);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow:
    0 -4px 20px rgba(0, 0, 0, 0.6),
    0 -2px 10px rgba(0, 217, 255, 0.2),
    inset 0 1px 0 rgba(0, 255, 136, 0.1);
}

.footerItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  border-radius: 12px;
  margin: 0 2px;
  background: rgba(0, 217, 255, 0.05);
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.footerItem i {
  font-size: 18px;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.25s ease;
  display: block;
}

.footerItem span {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  line-height: 1.1;
}

.footerItem::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(0, 217, 255, 0.3) 0%,
    rgba(0, 255, 136, 0.2) 100%);
  border-radius: 12px;
  transition: transform 0.25s ease;
  z-index: -1;
}

.footerItem:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.footerItem.active {
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg,
    rgba(0, 217, 255, 0.4) 0%,
    rgba(0, 255, 136, 0.3) 100%);
  box-shadow:
    0 2px 12px rgba(0, 217, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.footerItem.active i {
  color: #ffffff;
  transform: translateY(-1px) scale(1.1);
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.9));
}

.footerItem.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 1), transparent);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.8);
}

.footerItem:hover {
  color: #ffffff;
  background: rgba(0, 217, 255, 0.15);
}

.footerItem:active {
  transform: scale(0.93);
}

@media (min-width: 480px) {
  .footerItem {
    font-size: 11px;
    padding: 8px 4px;
  }
  .footerItem i {
    font-size: 20px;
  }
  .footerItem span {
    font-size: 10px;
  }
}

@media (min-width: 600px) {
  .footerItem {
    font-size: 13px;
    padding: 10px 6px;
    margin: 0 4px;
  }
  .footerItem i {
    font-size: 22px;
    margin-bottom: 5px;
  }
  .footerItem span {
    font-size: 11px;
  }
}

@supports (-webkit-touch-callout: none) {
  .appFooter {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}