* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

#login, #chat {
  width: 400px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="email"], input[type="password"], #mensagem {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  font-size: 1rem;
}

button {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

button.enviar {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  padding: 10px;
}

button.audio {
  background: #fff;
  color: #000;
  border: 2px solid #25D366;
  padding: 10px;
}

#chat-box {
  width: 100%;
  height: 300px;
  border: 1px solid #000;
  padding: 15px;
  overflow-y: auto;
  background: #fff;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.mensagem {
  margin-bottom: 20px;
  border: 2px solid #000;
  padding: 15px;
  border-radius: 8px;
  background: #fff;
}

.mensagem strong {
  display: block;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.1em;
  margin-bottom: 5px;
}

#input-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

#botoes {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

#botoes button {
  flex: 1;
}

.typing-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: #000;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
}
