/*
  NOVO STYLE.CSS MODERNO E RESPONSIVO
  Paleta principal: Verde vibrante (#00c853), cinza escuro (#212121), branco (#fff)
  Tipografia: Inter (leve, legível e moderna)
  Responsivo para mobile-first
*/

:root {
  --verde: #00c853;
  --cinza-escuro: #212121;
  --branco: #ffffff;
  --azul-hover: #00b0ff;
  --fonte: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--fonte);
}

body {
  background-color: var(--cinza-escuro);
  color: var(--branco);
  padding: 1rem;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url("https://www.programacaoemexcel.com.br/imagens/NAIM-17.jpg");
  background-size: cover;
}

#main {
  width: 100%;
  max-width: 480px;
  background: #111;
  border-radius: 16px;
  padding: 2rem 1rem;
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

h1 {
  color: var(--verde);
  font-size: 1.8rem;
  text-align: center;
  animation: pulse 3s infinite;
}

section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

linha, linha2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

linha2 {
  flex-direction: row;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
}

.input-config,
.textarea1,
.textarea2 {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  background-color: #f1f1f1;
  color: var(--cinza-escuro);
  font-weight: bold;
  font-size: 1rem;
}

.textarea1 {
  height: 150px;
}

.textarea2 {
  height: 300px;
}

.input-config:focus,
.textarea1:focus,
.textarea2:focus {
  outline: none;
  border-color: var(--verde);
  background-color: #fff;
}

.action-button {
  background-color: var(--verde);
  color: var(--branco);
  font-weight: 600;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.action-button:hover {
  background-color: var(--azul-hover);
}

#MIC, #STOP {
  font-size: 2rem;
  cursor: pointer;
  animation: tremida 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes tremida {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Responsividade */
@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }
  .action-button {
    font-size: 1rem;
    padding: 0.8rem;
  }
  #MIC, #STOP {
    font-size: 1.8rem;
  }
}
