/* Fonte padrão e reset básico */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  transition: background 0.5s;
}

/* Container central */
.container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(134, 133, 133, 0.5);
  text-align: center;
  width: 100%;
  max-width: 500px;
  border: 2px solid #6c63ff;
}

/* Cabeçalho */
h1 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* Label */
label {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: left;
}

/* Textarea */
textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #6c63ff;
  border-radius: 8px;
  resize: none;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

textarea:focus {
  border-color: #5548c8;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

/* Saída do Braille */
#brailleOutput {
  font-size: 2rem;
  word-break: break-word;
  margin: 1.5rem 0;
  min-height: 50px;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
}

/* Botões */
.buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

button {
  flex: 1 1 30%;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background: #6c63ff;
  color: white;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
  min-width: 100px;
}

button:hover {
  background: #5548c8;
  transform: scale(1.05);
}

button:focus {
  outline: 2px solid #5548c8;
}

/* Animação para texto Braille */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsividade para telas pequenas */
@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
    font-size: 1rem;
  }
}

/* Modo escuro */
body.dark {
  background: linear-gradient(135deg, #232526, #414345);
  color: white;
}

body.dark .container {
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

body.dark textarea,
body.dark #brailleOutput {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: #ff6584;
}

body.dark button {
  background: #ff6584;
}

body.dark button:hover {
  background: #d94c68;
}

