/* HEADER */
header {
  position: relative;
  z-index: 9998;
  background: linear-gradient(to bottom, #ffe5e5, #ffffff);
  border-bottom: 2px solid #f2f2f2;
  color: white;
  padding: 0 20px;
  border-radius: 0 0 5px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
  z-index: 1;
  height: 50px;
  box-shadow: 0 4px 6px -3px #a01f16;
  font-family: Poppins, calibri, Arial, sans-serif;
}

/* LOGO + TEXTO CONECTA */
header .logo-container {
  position: absolute;
  bottom: 0;
  left: 15px;
  display: inline-block;
  text-align: center;
  z-index: 10;
  
}

header img.logo {
  height: 50px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.9));
  pointer-events: none;
}

header .conecta {
  position: absolute;
  bottom: 0px;
  left: 40px;
  font-size: 13px;
  font-weight: bold;
  color: #a01f16;
  pointer-events: none;
  padding: 0 12px;
  
  border-radius: 0 25px 25px 0;
  z-index: -1;
}

/* MENU PRINCIPAL */
nav.menu-topo {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1px;
  z-index: 2;
  box-shadow: 0px 3px 10px -7px rgba(255, 255, 255, 0.55);
  padding: 0 10px;
}

.menu-item {
  position: relative;
}

.menu-link,
.menu-link-solicitacao {
  display: block;
  width: 120px;
  text-align: center;
  padding: 6px 10px 2px 10px;
  border-radius: 4px 4px 0 0;
  border: solid 1px rgba(255, 255, 255, 0.58);
  font-size: 11px;
  transition: all 0.3s ease;
  background: linear-gradient(to bottom, #C03227, rgb(236, 44, 26));
  color: #fff;
  text-decoration: none;
}

.menu-link:hover,
.menu-link-solicitacao:hover {
  background: linear-gradient(to bottom, #f44134, #C03227, #f44134);
}

/* SUBMENU */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-radius: 0 5px 5px 5px;
  padding: 5px 10px;
  width: 200px;
  z-index: 9999;
}

.menu-item:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 12px;
}

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

/* USUÁRIO LOGADO */
.usuario-logado {
  position: absolute;
  top: 8px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f44134;
  font-weight: bold;
  font-size: 10px;
  text-decoration: none;
  cursor: pointer;
  background-color: #ffffffd9;
  border-radius: 25px;
  padding: 4px 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.usuario-logado .btn-logout {
  background: none;
  border: none;
  color: #f44134;
  font-weight: bold;
  font-size: 10px;
  text-decoration: none;
  cursor: pointer;
  padding: 0 3px;
  border-left: 2px solid #f44134;
}

.usuario-logado .btn-logout:hover {
  background-color: #f1f1f1;
}
/* MENU MOBILE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #a01f16;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 15px;
  
}

/* Painel lateral */
.menu-lateral {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: -300px;
  width: 240px;
  height: 100%;
  background: #fafafaf0;;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: left 0.3s ease;
  
}

.menu-lateral a {
  text-decoration: none;
  color: #a01f16;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid #fafafad2;;
}

.menu-lateral a:hover {
  color: #d22b1e;
}

.menu-lateral .fechar {
  background: none;
  border: none;
  font-size: 26px;
  align-self: flex-end;
  color: #a01f16;
  cursor: pointer;
}

/* Fundo escurecido */
.fundo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* Estado ativo */
.menu-ativo .menu-lateral { left: 0; }
.menu-ativo #overlay { opacity: 1; pointer-events: auto; }

.mobile-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #eee;
}

.mobile-item > a {
  padding: 12px 0;
  color: #a01f16;
  font-weight: 600;
  text-decoration: none;
}

.mobile-item > a:hover {
  color: #d22b1e;
}

/* Submenus ocultos por padrão */
.submenu-mobile {
  display: none;
  flex-direction: column;
  padding-left: 10px;
  background: #fafafad2;
  border-left: 2px solid #d22b1e;
}

.submenu-mobile a {
  font-weight: normal;
  color: #333;
  padding: 8px 0;
}

.submenu-mobile a:hover {
  color: #a01f16;
}
.usuario-area {
  position: absolute;
  bottom: 0;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
}


/* login dropdown */
.btn-login {
  background: linear-gradient(to bottom, #C03227, rgb(236, 44, 26));
  color: #fff;
  border: none;
  padding: 6px 25px 2px 25px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  font-family: Poppins, calibri, Arial, sans-serif;
  transition: 0.2s;
}
.btn-login:hover { opacity: 0.9; }

.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  z-index: 200;
  width: 150px;
}
.dropdown-content a {
  color: #333;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  font-weight: 500;
}
.dropdown-content a:hover {
  background-color: #ffeaea;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* USUÁRIO */
.usuario-area {
  position: absolute;
  bottom: 0;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
  font-size: 10px;
}
.dropdown {
  position: relative;
  display: inline-block;
}
/* USUÁRIO LOGADO */
.user-logged {
  background: #fff;
  border-radius: 5px 5px 0 0;
  padding: 6px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #b22b27;
  font-size: 11px;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  appearance: none;
  -webkit-appearance: none;
}
.user-logged:focus,
.user-logged:focus-visible,
.user-logged:active {
  outline: none !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}
.user-logged::-moz-focus-inner {
  border: 0;
}

.user-logged:focus {
  outline: none;
  box-shadow: none;
}
.user-logged .logout {
  margin-left: 8px;
  border-left: 1px solid #d73725;
  padding-left: 8px;
  color: #d73725;
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

.user-logged .logout:hover {
  text-decoration: underline;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  z-index: 200;
  width: 180px;
}

.dropdown-content a {
  color: #333;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.dropdown-content a:hover {
  background-color: #ffeaea;
}
/* Responsivo */
@media (max-width: 600px) {
  nav.menu-topo, .usuario-logado {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  header .logo-container {
  position: absolute;
  bottom: 0;
  left: 10px;
  display: inline-block;
  text-align: center;
  z-index: 10;
  
}
  header img.logo {
  height: 40px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.9));
  pointer-events: none;
}

header .conecta {
  position: absolute;
  bottom: 1px;
  left: 30px;
  font-size: 14px;
  font-weight: bold;
  color: #a01f16;
  pointer-events: none;
  padding: 0 12px;
  
  border-radius: 0 25px 25px 0;
  z-index: -1;
}
}
