/* ================================
   GLOBAL
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); 
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

body {
  font-family: "Inter", Arial, sans-serif;
  background: #f4f6f8;
  color: #2d2d2d;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* ================================
   HEADER
================================ */
/* ===== HEADER ===== */
header {
  width: 100%;
  background: #1e3a57;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
   
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;


}

/* LOGO + TÍTULO */
header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

header .logo img {
  width: 45px;
  height: 45px;
}

header .logo h1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* NAV DESKTOP */
header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  text-decoration: none;
  color: #45e0b8;
  font-size: 1rem;
  padding: 8px 15px;
  border-radius: 8px;
  transition: 0.2s;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

header nav a:hover {
  background: #f0f0f0;
}

header nav .sair {
  background: #ff4d4d;
  color: white;
  font-weight: bold;
  
}

header nav .sair:hover {
  background: #e60000;
}

/* BOTÃO MOBILE */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== MENU MOBILE ===== */
/* MOBILE */
@media (max-width: 820px) {

  nav {
    display: none !important;   /* 🔥 força ocultar por padrão */
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    padding: 15px 0;
    border-radius: 0 0 15px 15px;
  }

  nav.active {
    display: flex !important;   /* 🔥 mostra apenas quando tem .active */
  }

  .menu-btn {
    display: block;
  }

  nav a {
    padding: 12px;
    text-align: center;
    width: 100%;
  }
}



/* ================================
   ELEMENTOS GERAIS
================================ */
.btn {
  background: #1e88e5;
  color: #fff;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secundario {
  background: #43a047;
}

.btn-terciario {
  background: #6a1b9a;
}

/* ================================
   FORMULÁRIOS
================================ */
.formulario {
  max-width: 420px;
  margin: 60px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

form label {
  font-size: 15px;
  font-weight: 600;
  color: #444;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
  margin-bottom: 18px;
  font-size: 15px;
}

form button {
  width: 100%;
  padding: 12px;
  background: #1e88e5;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

form button:hover {
  opacity: 0.9;
}

/* ================================
   DASHBOARD
================================ */
.dashboard {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.dashboard h2 {
  margin-bottom: 25px;
  color: #1e88e5;
  font-size: 28px;
  font-weight: 700;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  color: #555;
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 24px;
  font-weight: bold;
  color: #222;
}

.positivo { color: #2e7d32; }
.negativo { color: #c62828; }

/* Destaque */
.card.destaque {
  background: #1e88e5;
  color: #fff;
}

.card.destaque p {
  color: #fff;
}

/* ================================
   RESPONSIVIDADE GERAL
================================ */
@media (max-width: 480px) {
  header .logo h1 {
    font-size: 16px;
  }

  .dashboard h2 {
    font-size: 22px;
  }

  .formulario {
    margin: 30px 15px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* BOTÃO DO MENU MOBILE */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* MENU DESKTOP */
nav {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {

  /* Mostra botão no mobile */
  .menu-btn {
    display: block;
  }

  /* Esconde o menu no mobile */
  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #1e3a57;
    padding: 20px;
    width: 200px;
    flex-direction: column;
    display: none;
  }

  nav a {
    margin: 10px 0;
  }

  /* Quando o JS ativa */
  nav.ativo {
    display: flex;
  }
}
