* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

body {
  background: linear-gradient(135deg, #00BCD4, #006064, #004D40);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  /* ✅ OTIMIZAÇÃO DE BATERIA: Animação pausada por padrão, ativada apenas quando necessário */
  background-size: 400% 400%;
}

/* ✅ OTIMIZAÇÃO: Animação apenas quando página está visível */
body:not(.paused-animations) {
  animation: gradientBG 15s ease infinite;
}

/* ✅ OTIMIZAÇÃO: Respeitar preferência do usuário por menos movimento */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
    background: linear-gradient(135deg, #00BCD4, #006064, #004D40);
  }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.menu-container {
  min-height: 100vh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header {
  display: flex;
  align-items: center;
  padding: 15px 12px;
  min-height: 60px;
  background: rgba(0, 188, 212, 0.2);
  color: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  flex-shrink: 0;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header i {
  font-size: 22px;
  margin-right: 12px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-header span {
  font-size: clamp(14px, 4vw, 15px);
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.2;
}

.menu-items {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-grow: 1;
  padding: 15px;
  gap: 15px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
  -webkit-overflow-scrolling: touch;
}

.menu-items::-webkit-scrollbar {
  display: none;
}

.menu-item {
  display: flex;
  align-items: flex-start;
  padding: 20px 20px;
  color: white;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 120px;
  margin-bottom: 5px;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideIn 0.4s ease forwards;
  opacity: 0;
  text-decoration: none !important;
}

.menu-item a {
  text-decoration: none !important;
  display: contents;
  color: white !important; /* Força a cor branca */
}

.menu-item a * {
  text-decoration: none !important;
  color: inherit; /* Herda a cor branca do elemento pai */
}

.menu-item .title,
.menu-item .description,
.menu-item .tag {
  color: white; /* Garante que todos os textos sejam brancos */
}

.menu-item a .icon-wrapper,
.menu-item a .content-wrapper,
.menu-item a .description,
.menu-item a .title,
.menu-item a .tags {
  text-decoration: none;
}

.menu-item a:hover {
  text-decoration: none; /* Remove underline on hover */
}

.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 0.15) !important;
}

.icon-wrapper {
  flex-shrink: 0;
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  position: relative;
}

.icon-wrapper i {
  font-size: 68px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  color: #E0F7FA;
  text-shadow: 0 0 15px rgba(0, 188, 212, 0.8);
  filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.5));
}

.content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 5px;
}

.title {
  font-size: clamp(14px, 4.5vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: -2px;
}

.description {
  font-size: clamp(12px, 3.5vw, 14px);
  opacity: 0.9;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: clamp(10px, 3vw, 12px);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.menu-item.vender {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.7), rgba(0, 151, 167, 0.7));
  border-left: 4px solid #00BCD4;
}

.menu-item.estoque {
  background: linear-gradient(135deg, rgba(0, 172, 193, 0.7), rgba(0, 131, 143, 0.7));
  border-left: 4px solid #009688;
}

.menu-item.despesas {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.7), rgba(55, 48, 163, 0.7));
  border-left: 4px solid #7C4DFF;
}

.menu-item.verao {
  background: linear-gradient(135deg, rgba(0, 131, 143, 0.7), rgba(0, 96, 100, 0.7));
  border-left: 4px solid #00ACC1;
}

.menu-item.fornecedor {
  background: linear-gradient(135deg, rgba(0, 96, 100, 0.7), rgba(0, 77, 80, 0.7));
  border-left: 4px solid #00838F;
}

.menu-item.mapa {
  background: linear-gradient(135deg, rgba(0, 77, 80, 0.7), rgba(0, 60, 62, 0.7));
  border-left: 4px solid #006064;
}

@keyframes smokeEffect {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.2;
  }
}

.menu-item:hover i {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.menu-item:hover i::after {
  animation: smokeEffect 1.5s infinite alternate;
}

.icon-wrapper i::after {
  content: '';
  position: absolute;
  width: 102px;
  height: 102px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.3) 0%, rgba(255,255,255,0) 70%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(5px);
  z-index: -1;
  opacity: 0.8;
}

@media screen and (max-width: 430px) {
  .menu-header {
    padding: 12px 15px;
    min-height: 50px;
  }
  
  .menu-header i {
    font-size: 20px;
  }
  
  .menu-item {
    padding: 18px 15px;
    min-height: 110px;
  }
  
  .icon-wrapper {
    width: 65px;
    height: 65px;
    margin-right: 15px;
  }
  
  .icon-wrapper i {
    font-size: 50px;
  }
  
  .content-wrapper {
    gap: 6px;
  }
  
  .description {
    line-height: 1.4;
    margin-top: 2px;
  }
  
  .tags {
    gap: 6px;
    margin-top: 4px;
  }
  
  .tag {
    padding: 3px 6px;
  }
}

@media screen and (max-width: 375px) {
  .menu-item {
    padding: 15px 15px;
    min-height: 100px;
  }
  
  .content-wrapper {
    gap: 4px;
  }
  
  .menu-header span {
    font-size: 13px;
  }
  
  .title {
    font-size: 13px;
  }
  
  .description {
    font-size: 11px;
  }
  
  .tag {
    font-size: 9px;
  }
  
  .icon-wrapper {
    width: 55px;
    height: 55px;
  }
  
  .icon-wrapper i {
    font-size: 45px;
  }
}

@media screen and (min-width: 428px) and (max-width: 926px) {
  .menu-header span {
    font-size: 15px;
  }
  
  .title {
    font-size: 16px;
  }
  
  .description {
    font-size: 13px;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes iosPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.menu-item:active {
  transform: scale(0.98) translateY(0);
  background: rgba(255, 255, 255, 0.2) !important;
  animation: iosPress 0.2s forwards;
  transition: all 0.1s ease;
}

@supports (padding-top: env(safe-area-inset-top)) {
  .menu-container {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}