/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

/* Container principal */
main {
  background: white;
  padding: 25px 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
  margin: 40px auto;
}

/* Títulos */
h1, h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

p {
  margin-bottom: 25px;
  font-size: 1.05rem;
  text-align: center;
}

/* Seções (caso use) */
section {
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 25px;
}

/* Labels */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #34495e;
}

/* Inputs, selects, textareas */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.8px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
  font-family: inherit;
  resize: vertical;
  min-height: 35px;
  box-sizing: border-box;
}

textarea {
  min-height: 80px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2980b9;
  outline: none;
  box-shadow: 0 0 6px #2980b9aa;
}

/* Botões */
button {
  background-color: #2980b9;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  font-weight: 600;
  user-select: none;
}

button:hover {
  background-color: #1c5980;
}

button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

/* Status de login/erro */
#loginStatus {
  color: #c0392b;
  font-weight: 600;
  margin-top: 15px;
  text-align: center;
}

/* Header (se usar em outras páginas) */
header {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

#consultar-btn {
  background-color: #27ae60;
  padding: 10px 18px;
  font-weight: 600;
}

#consultar-btn:hover {
  background-color: #1e8449;
}

/* Responsividade */
@media (max-width: 600px) {
  main {
    max-width: 100%;
    padding: 20px;
  }

  button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  #btn-logout {
    margin-top: 20px;
  }

  header {
    justify-content: center;
  }
}

/* Dialog (lista de entradas) estilização simples */
dialog {
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  padding: 20px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  font-size: 1rem;
  background: white;
}

dialog h2 {
  margin-bottom: 15px;
}

dialog ul {
  list-style: none;
  max-height: 60vh;
  overflow-y: auto;
  padding-left: 10px;
}

dialog ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

dialog button {
  background-color: #c0392b;
  margin-top: 15px;
  width: 100%;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

dialog button:hover {
  background-color: #7f241a;
}
