/* Estilo geral do corpo */
body {
  font-family: Arial, sans-serif;
  background-color: #1e1e2f;
  color: white;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-areas:
    "header header"
    "left right";
  grid-template-columns: 1fr 3fr;
  grid-template-rows: auto 1fr;
  height: 100vh;
}

/* Estilo do cabeçalho */
h1, h2 {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}

input[type="file"] {
  margin: 10px 0;
}

input[type="submit"] {
  padding: 10px 20px;
  background-color: #391788;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.header {
  grid-area: header;
  padding: 20px;
  text-align: center;
  background-color: #391788;
  color: white;
}

.header h2, .header h3 {
  margin: 0;
}

/* Estilo das colunas */
.left, .right {
  padding: 20px;
}

.left {
  grid-area: left;
  background-color: rgb(22, 22, 32);
}

.right {
  grid-area: right;
  background-color: rgb(18, 18, 22);
}

input[type="submit"]:hover {
  background-color: #3700b3;
}

.audio-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px;
}

/* Estilos para o botão de áudio e o botão "X" */
.audio-button-container {
  position: relative;
  display: inline-block;
}

.audio-button {
  font-size: 12px;
  word-wrap: break-word;
  white-space: normal;
  width: 100px;
  height: 100px;
  background-color: #6200ea;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.message {
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  transition: opacity 1s ease-in-out;
}

.message.error {
  background-color: #ff4444; /* Vermelho para erros */
}

.message.success {
  background-color: #00C851; /* Verde para sucesso */
}

.delete-button {
  position: absolute;
  top: 1px;
  right: 35px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 2;
}

.delete-button:hover {
  background-color: darkred;
}

/* Estilo para o mini botão de prévia */
.preview-button {
  position: absolute;  /* Corrigido para não deixar o botão "flutuando" fora de lugar */
  top: 1px;            /* Alinhamento do botão */
  left: -10px;           /* Coloca o botão mais à esquerda */
  background-color: #1c18da; /* Azul */
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.preview-button:hover {
  background-color: #000000; /* Azul mais escuro ao passar o mouse */
}

/* Estilo base para o campo de pesquisa com aparência de botão */
.search-input.audio-button-style {
  font-size: 14px;
  width: 100%;
  max-width: 300px; /* Ajuste conforme necessário */
  height: 40px;
  background-color: #6200ea;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder estilizado */
.search-input.audio-button-style::placeholder {
  color: white; /* Placeholder mais claro */
  font-style: italic;
}

/* Efeito ao focar no campo de pesquisa */
.search-input.audio-button-style:focus {
  background-color: #5921db;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Efeito hover para o campo de pesquisa */
.search-input.audio-button-style:hover {
  background-color: #491cc2;
}