/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #f5f5f5;
  min-height: 100vh;
}

/* Container centralizado */
.container {
  max-width: 500px;
  margin: 80px auto;
  padding: 30px;
  background-color: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Título */
.container h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
  color: #03a9f4;
}

/* Formulário */
form input, form select, form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  background-color: #2c2c2c;
  color: #fff;
}

form input::placeholder, form textarea::placeholder {
  color: #aaa;
}

form button {
  width: 100%;
  padding: 12px;
  background-color: #03a9f4;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #0288d1;
}

/* Alerta de erro ou sucesso */
.alert {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  text-align: center;
}

.alert.error {
  background-color: #f44336;
  color: white;
}

.alert.success {
  background-color: #4caf50;
  color: white;
}

/* Tabela */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #1a1a1a;
}

table th, table td {
  padding: 12px;
  border-bottom: 1px solid #333;
  text-align: left;
}

table th {
  background-color: #333;
  color: #03a9f4;
}

table tr:hover {
  background-color: #222;
}

/* Botões estilo painel */
.painel-botao {
  display: inline-block;
  padding: 12px 20px;
  margin: 8px 0;
  font-size: 16px;
  background-color: #03a9f4;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  min-width: 220px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.painel-botao:hover {
  background-color: #0288d1;
  transform: translateY(-2px);
}

.painel-botao.sair {
  background-color: #f44336;
}

.painel-botao.sair:hover {
  background-color: #d32f2f;
}

/* Lista de links como botões */
.link-lista {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

/* Responsivo */
@media (max-width: 600px) {
  .container {
    margin: 40px 20px;
    padding: 20px;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  table tr {
    margin-bottom: 15px;
  }

  table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    color: #03a9f4;
    font-weight: bold;
  }
}
