@import url("../variavel_css/variavel.css");

body {
  background-color: var(--fundo-branco-cinzaDark60);
}

header {
  height: 80px;
  width: 100%;
  color: var(--branco);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--fundo-roxoDomus-cinzaDark);
  z-index: 99999;
  overflow: visible;
  justify-content: center;
  align-items: center;
}

h1 {
  font-family: Verdana;
  color: var(--branco);
  font-size: 20px;
}

.icon_navbar {
  height: 30px;
  width: 30px;
  margin-left: 5px;
  object-fit: contain;
}

.foto_perfil_nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--fundo-roxoDomusClaro-cinzaDark80);
}

#icon_domus {
  max-height: 70px;
  max-width: 100%;
  height: auto;
  margin-right: 5px;
  align-content: center;
}

.conjunto_elementos {
  display: flex;
  align-items: center;
  gap: 75px;
  max-width: 1600px;
  margin: 0 auto;
}

#logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: inherit;
}

#logo:hover {
  font-weight: 700;
}

.botoes {
  font-family: inherit;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  height: 70%;
}

.navbar-menu-full {
  display: none;
}

.botoes:hover {
  text-decoration: var(--branco) underline;
  background-color: var(--hover-roxoDomusClaro-cinzaDark60);
  border-radius: 8px;
}

.conjunto_elementos {
  display: flex;
  align-items: center;
  gap: 75px;
  max-width: 1600px;
  margin: 0 auto;
  overflow: visible;
}

.botoes:hover .nav_drop {
  display: block;
}

.botoes:hover #seta {
  transform: rotate(180deg);
}

.nav_drop {
  display: none;
  position: absolute;
  top: 60px;
  background-color: var(--fundo-branco-cinzaDark60);
  border: 1px solid var(--fundo-verdeDomus-branco);
  border-radius: 3px;
  width: 150px;
  height: max-content;
}

.btn_drop {
  display: block;
  padding: 12px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  background-color: var(--fundo-branco-cinzaDark);
  text-align: center;
  border-bottom: 1px solid var(--fundo-verdeDomus-branco);
  color: var(--texto-preto-branco);
  transition: all 0.4s ease;
  text-decoration-line: none;
}

#drop_perfil button {
  width: 100%;
}

.btn_drop:hover {
  text-decoration: var(--texto-preto-branco) underline;
  background-color: var(--hover-cinzaUsuario-cinzaDark60);
}

#seta {
  transition: transform 0.3s ease;
  height: 27px;
  width: 27px;
}

#logado {
  margin-left: 0;
}

#logadoDesktop {
  margin: 0;
}

.menu-btn {
  display: block; /* Visível por padrão para mobile. */
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--branco); 
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--pretoTransparente); /* Cor semi-transparente */
  z-index: 99; /* Garante que fique abaixo do menu, mas acima do conteúdo */
  opacity: 0; /* Começa invisível */
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#overlay.active {
  opacity: 1; /* Fica visível e opaco */
  visibility: visible;
}
.mobile-menu {
  position: fixed;
  top: 8.7%;
  right: -100%; /* Move o menu para fora da tela. */
  height: auto;
  background-color: var(--fundo-roxoDomus-cinzaDark);
  box-shadow: -2px 0 5px var(--pretoTransparente02);
  transition: right 0.3s ease; /* Adiciona uma transição suave para a animação. */
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1002;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 18px;
}

.mobile-menu.active {
  right: 0; /* Move o menu para dentro da tela quando a classe `active` é adicionada. */
}

@media screen and (min-width: 769px) {
    .navbar-menu-full {
        display: flex; /* Exibe o menu completo */
        height: 100%;
    }

    .menu-btn {
        display: none; /* Esconde o menu hambúrguer */
    }

    #logo {
        margin-right: 150px;
        padding-right: 50px;
    }

    header {
        grid-template-columns: repeat(2, 1fr);
        gap: 100px;
    }
}

@media screen and (max-width: 768px) {
    .navbar-menu-full {
        display: none; /* Esconde o menu completo */
    }

    .menu-btn {
        display: block; /* Mostra o menu hambúrguer */
    }

    #logo {
        margin-right: 0;
        padding-right: 0;
    }

    header {
        gap: 100px;
        grid-template-columns: 1fr;
    }
}

/* Modal Editar Perfil */
.modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--pretoTransparente);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--fundo-branco-cinzaDark60);
  border-radius: 12px;
  width: 420px;
  max-width: 90%;
  box-shadow: 1px 1px 4px var(--pretoTransparente-cinzaDark10);
  text-align: center;
  border: 3px solid var(--fundo-roxoDomus-cinzaDark);
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
  max-width: 100%;
}

#cabecalho {
  background-color: var(--fundo-roxoDomus-cinzaDark);
  border: 1px solid var(--fundo-roxoDomus-cinzaDark);
  color: var(--branco);
  font-family: verdana;
  font-size: 23px;
}

#formEditarPerfil {
  margin: 20px;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--fundo-branco-cinzaDark);
  box-shadow: 1px 1px 4px var(--preto);
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--texto-preto-branco);
}

.form-group input {
  padding: 10px 0;
  background-color: var(--fundo-branco-cinzaDark);
  color: var(--texto-preto-branco);
  font-size: 15px;
  border: none;
  width: 100%;
  border-bottom: 2px solid var(--texto-preto-branco);
}

.form-actions {
  margin-top: 20px;
  text-align: center;
}

.form-actions button {
  background-color: var(--fundo-roxoDomus-cinzaDark60);
  color: var(--branco);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: ease-in-out 0.3s;
}

.form-actions button:hover {
  background-color: var(--hover-roxoDomusClaro-cinzaDark70);
}

