/* ===== CONFIGURAÇÕES GERAIS ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
}

main {
  padding: 30px;
  min-height: 70vh;
}

.loading {
  text-align: center;
  color: #777;
}

.erro {
  color: red;
  text-align: center;
}

/* ===== HEADER ===== */
header {
  background-color: #111;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid #c00;
  position: relative;
}

/* Logo + título */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
  text-align: center;
}

.logo {
  height: 70px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

header h1 {
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  margin: 0;
}

/* ===== MENU ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s, transform 0.2s;
}

nav ul li a:hover {
  color: #ff3b3b;
  transform: scale(1.1);
}

/* ===== BOTÃO HAMBÚRGUER ===== */
#menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 25px;
  font-size: 1.8rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  background: #111;
  color: #fff;
  padding: 15px;
  font-size: 0.95rem;
}

/* ===== RESPONSIVIDADE ===== */

/* --- Telas médias --- */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 20px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  header h1 {
    font-size: 1.6rem;
  }
}

/* --- Telas pequenas / mobile --- */
@media (max-width: 700px) {
  /* Mostra botão hamburguer */
  #menu-toggle {
    display: block;
  }

  /* Esconde o título */
  header h1 {
    display: none;
  }

  /* Centraliza o logo sozinho */
  .logo-container {
    justify-content: center;
    margin-bottom: 0;
  }

  .logo {
    height: 60px;
  }

  /* Esconde menu inicialmente */
  nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    display: none;
    background: #111;
    padding: 15px;
    border-top: 2px solid #c00;
  }

  /* Quando ativo (menu aberto) */
  nav.ativo ul {
    display: flex;
  }
}

/* --- Telas muito pequenas --- */
@media (max-width: 450px) {
  header {
    padding: 15px;
  }

  .logo {
    height: 50px;
  }

  nav ul li a {
    font-size: 0.95rem;
  }

  main {
    padding: 15px;
  }

  footer {
    font-size: 0.85rem;
  }
}


.btn-login {
  background: #ff3b3b;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: #d63031;
}
