/* Garante que o body ocupe 100% da altura da tela */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh; /* Usa 100% da altura da viewport */
  display: flex;
  flex-direction: column; /* Layout em coluna */
  background-color: #f4f4f4;
  font-family: Arial, Helvetica, sans-serif;
}

/* O container principal ocupa o espaço necessário conforme o conteúdo */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza verticalmente */
  align-items: center; /* Centraliza horizontalmente */
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  margin: auto; /* Centraliza horizontalmente */
  box-sizing: border-box;
  min-height: 200px; /* Garante que a container tenha uma altura mínima */
}

h1 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input[type="email"],
input[type="number"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

#user-list {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  text-align: center;
}

#user-list th, #user-list td {
  padding: 10px;
  border: 1px solid #ddd;
}

#user-list th {
  background-color: #f7f7f7;
}

button.edit-btn {
  background-color: #4caf50;
  color: white;
}

button.delete-btn {
  background-color: #f44336;
  color: white;
}

button.edit-btn:hover {
  background-color: #45a049;
}

button.delete-btn:hover {
  background-color: #e53935;
}

table td {
  padding: 10px;
  vertical-align: middle;
}

table {
  width: 100%;
  border-spacing: 0;
  margin-top: 20px;
}

form input, form button {
  border-radius: 8px;
}

table {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

button.edit-btn {
  background-color: #4caf50;
  color: white;
  border-radius: 4px;
  padding: 8px 12px;
}

button.delete-btn {
  background-color: #f44336;
  color: white;
  border-radius: 4px;
  padding: 8px 12px;
}

button.edit-btn:hover {
  background-color: #45a049;
}

button.delete-btn:hover {
  background-color: #e53935;
}

/* Estilização básica do footer */
footer {
  background-color: #f4f4f4;
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 20px;
  }

  form input, form button {
    font-size: 14px;
  }

  table td, table th {
    font-size: 14px;
  }
}
