body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1e1e2f;
  color: #ffffff;
  padding: 10px 30px; /* menor espaçamento */
  height: 70px;        /* reduzido de 100px */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .logo img {
  height: 50px; /* antes estava em 40px, agora mais visível */
}

header .titulo {
  flex-grow: 1;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

header .login a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border: 1px solid #fff;
  border-radius: 5px;
  transition: background-color 0.3s;
}

header .login a:hover {
  background-color: #fff;
  color: #1e1e2f;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}
.logo img {
  height: 60px;
  transition: transform 0.2s;
}
.logo img:hover {
  transform: scale(1.05);
}

/* Menu padrão */
.menu {
  background-color: #2c2c3c;
  padding: 15px 40px; /* era 10px, agora 15px */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 40;
}

.menu-list {
  display: flex;
  gap: 5vh;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li a {
  font-size: 18px; /* aumentamos de 16px para 18px */
  color: #f0f0f0;  /* tom mais claro para melhor contraste */
  text-decoration: none;
  font-weight: bold;
  padding: 12px 18px; /* aumenta área clicável */
  transition: background-color 0.3s, color 0.3s;
}

.menu-list li a:hover {
  background-color: #444;
  color: #ffffff;
}

.menu-list li a.active {
  color: #ffd700; /* dourado ou destaque */
}

/* Botão hambúrguer */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  background-color: #1e1e2f;
  cursor: pointer;
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 100;
  padding: 0 8px; /* aumenta a área clicável */
  border: 2px solid #fff; /* borda visível */
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Efeito hover semelhante ao botão sair */
.menu-toggle:hover {
  background-color: #fff;
  color: #1e1e2f;
  border-color: #1e1e2f;
}

.dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: #2c2c3c;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.dropdown:hover .submenu {
  display: block;
}

.submenu li {
  padding: 0 5px;
  width: 120px;
}

.submenu li a {
  color: #f0f0f0;
  text-decoration: none;
  display: block;
}

.submenu li a:hover {
  background-color: #444;
}

.botao-wrapper {
  margin: 20px 0;
}

.botao-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1e1e2f;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.botao-link:hover {
  background-color: #333;
}

/* Envolve toda a estrutura */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Conteúdo principal cresce para empurrar o rodapé */
main {
  flex: 1;
}

.dashboard-toggle {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background-color: #1e1e2f;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  z-index: 101;
  transition: 0.3s;
}

.dashboard-toggle:hover {
  background-color: #333;
  transition: 0.3s;
}

.dashboard-sidebar {
    /* Padrão: sidebar visível, toggle oculto */
  display: block;
  background-color: #1e1e2f;
  color: #fff;
  position: relative;
  top: 0; /* abaixo do header */
  left: 0;
  min-width: 220px;
  height: calc(110vh - 70px); /* altura total menos o header */
  overflow-x: hidden;
  transition: width 0.3s ease;
  z-index: 100;
}

.dashboard-sidebar.expandido {
  width: 220px;
  min-width: 220px;
  transition: 0.3s;
}

.dashboard-sidebar.recolhido {
  width: 50px;
  transition: 0.3s;
}

.dashboard-titulo {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 10px;
  transition: 0.3s;
}

.dashboard-sidebar.recolhido .dashboard-titulo {
  display: none;
}

.dashboard-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  transition: 0.3s;
}

.dashboard-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  font-size: 16px;
  position: relative;
  transition: 0.3s;
}

.dashboard-menu a:hover {
  background-color: #333;
}

.dashboard-sidebar.recolhido .dashboard-menu a {
  font-size: 0;
  padding: 10px;
}

.dashboard-sidebar.recolhido .dashboard-menu a::before {
  content: attr(data-inicial);
  font-size: 16px;
  color: #fff;
  position: absolute;
  left: 10px;
}

.pagina-interna {
  background-color: #1e1e2f;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-top: 0; /* para alinhar com o topo do menu */
}

.conteudo-principal {
  flex-grow: 1;
  margin: 0 auto;
  padding: 0 1rem;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

/* Página em desenvolvimento */
.pagina-em-desenvolvimento {
  text-align: center;
  padding: 60px 20px;
  color: #333;
}

.pagina-em-desenvolvimento h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1e1e2f;
}

.pagina-em-desenvolvimento p {
  font-size: 18px;
  color: #555;
}

/* Rodapé */
footer {
  background-color: #1e1e2f;
  color: #fff;
  text-align: center;
  padding: 15px 20px;
  font-size: 14px;
}

.dashboard-toggle {
  display: none;
}

/* Telas pequenas */
@media (max-width: 1024px) {
  header .logo img {
    height: 100px; /* antes estava em 40px, agora mais visível */
  }
  
  header .titulo {
    font-size: 50px;
  }
  .titulo {
    font-size: 30px;
  }
  .menu-list li a {
    font-size: 24px;
  }
  .dashboard-titulo {
    font-size: 40px;
  }
  .menu-list li a {
    font-size: 40px;
  }
  .dashboard-menu a {
    font-size: 36px;
  }
  .dashboard-toggle {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 80px;
    height: calc(100vh - 70px);
    background-color: #1e1e2f;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    z-index: 101;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl; /* texto na vertical */
    text-orientation: upright;
    letter-spacing: 2px;
    padding: 10px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    transition: 0.3s;
  }

  .dashboard-toggle:hover {
    color: #1e1e2f;
    background-color: #fff;
  }
  .dashboard-sidebar {
    display: none;
  }

  .dashboard-sidebar.expandido {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 220px;
    margin-right: -170px;
    height: calc(110vh - 70px);
    background-color: #1e1e2f;
    z-index: 100;
  }
  footer {
    font-size: 40px;
  }
}

/* Responsivo */
@media (max-width: 1024px) {
  .menu {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 40px 20px; /* aumenta o espaçamento em telas menores */
    justify-content: flex-start;
    z-index: 105;
  }

  .menu-list {
    display: none;
    flex-direction: column;
    background-color: #2c2c3c;
    position: absolute;
    top: 50px; /* abaixo do cabeçalho */
    left: 0;
    width: 100%;
    gap: 0;
    padding: 10px 0;
    z-index: 106;
    border-bottom: 1px solid #444;
  }

  .menu-list.active {
    display: flex;
    flex-direction: column;
    background-color: #2c2c3c;
    position: absolute;
    top: 80px;
    left: 0;
    width: 220px;
    padding: 20px 0;
    z-index: 104;
  }

  .menu-list li a {
    display: block;
  }

  .menu-list li a:hover {
    background-color: #444;
    color: #fff;
  }

  .menu-toggle {
    display: block;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 10px;
    z-index: 100; /* acima do menu-list */
  }
  .menu-toggle:hover {
    background-color: #FFF;
    cursor: pointer;
    transition: 0.3s;
  }
  .submenu {
    display: none;
    position: absolute;
    top: 0px;
    left: 180px;
    background-color: #2c2c3c;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
  }
  .submenu li {
    padding: 0 5px;
    width: 220px;
  }
  header .logo img {
    height: 100px;
  }
  header .login a {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 5px 15px;
  }

  header .titulo {
    font-size: 24px;
  }

  header .login a {
    padding: 6px 10px; /* reduzido, mantendo a fonte */
    white-space: nowrap;
  }
}
