:root {
  /* Esquema de cores */
  --primary-color: #006400;       /* Verde escuro */
  --secondary-color: #D4A017;     /* Dourado */
  --accent-color: #34848c;        /* Azul esverdeado */
  --highlight-color: #C08081;     /* Rosa claro */
  --background-color: #243f35;    /* Verde escuro */
  --card-bg: #004F6E;             /* Azul esverdeado escuro */
  --text-dark: #000000;
  --text-light: #fff7f7;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* Layout */
  --header-height: 60px;
  --container-max: 1200px;
  --transition-speed: 0.3s;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* Tipografia */
h1, h2, h3 {
  line-height: 1.2;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Componente Navbar - Versão Corrigida */
.navbar {
  background: linear-gradient(90deg, 
              rgba(5, 55, 70, 0.95) 0%, 
              rgba(36, 63, 53, 0.95) 50%, 
              rgba(5, 55, 70, 0.95) 100%) !important;
  z-index: 1000; /* Garante que a navbar fique acima de outros elementos */
  position: relative;
}

/* Efeito de fundo cósmico - ajustado para não interferir no dropdown */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height); /* Limitando à altura da navbar */
  background: 
    radial-gradient(circle at 20% 50%, 
      rgba(212, 160, 23, 0.15) 0%, 
      transparent 20%),
    radial-gradient(circle at 80% 50%, 
      rgba(192, 128, 129, 0.15) 0%, 
      transparent 20%);
  animation: cosmicGlow 15s infinite alternate;
  z-index: -1; /* Fica atrás do conteúdo */
} 

/* Container da navbar - garantindo que fique acima dos efeitos */
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2; /* Acima dos efeitos de fundo */
}

.navbar-effects-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  overflow: hidden; /* Aplicamos overflow: hidden apenas aqui */
  z-index: -1;
}

/* Movemos os efeitos para dentro do novo container */
.navbar-effects-container::before,
.navbar-effects-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Efeito cósmico */
.navbar-effects-container::before {
  background: 
    radial-gradient(circle at 20% 50%, 
      rgba(212, 160, 23, 0.15) 0%, 
      transparent 20%),
    radial-gradient(circle at 80% 50%, 
      rgba(192, 128, 129, 0.15) 0%, 
      transparent 20%);
  animation: cosmicGlow 15s infinite alternate;
}

/* Efeito de estrelas */
.navbar-effects-container::after {
  background-image: 
    radial-gradient(1px 1px at 10% 20%, white 1px, transparent 2px),
    radial-gradient(1px 1px at 90% 30%, white 1px, transparent 2px),
    radial-gradient(1px 1px at 30% 70%, white 1px, transparent 2px),
    radial-gradient(1px 1px at 70% 80%, white 1px, transparent 2px);
  background-size: 100px 100px;
  animation: starsMove 50s linear infinite;
}

/* Logo - ajustes de z-index */
.logo {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: rgb(113, 180, 113);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  z-index: 3; /* Acima de outros elementos */
  text-shadow: 0 0 10px rgba(113, 180, 113, 0.7);
  animation: logoGlow 4s infinite alternate;
}

/* Navegação principal */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  position: relative;
  z-index: 3; /* Garante que fique acima dos efeitos */
}

.nav-item {
  transition: all 0.3s ease;
  position: relative;
  z-index: 4; /* Item de menu acima de tudo */
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
}

/* Efeito de estrelas - ajustado para não vazar */
.navbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height); /* Garante que não ultrapasse a altura da navbar */
  background-image: 
    radial-gradient(1px 1px at 10% 20%, white 1px, transparent 2px),
    radial-gradient(1px 1px at 90% 30%, white 1px, transparent 2px),
    radial-gradient(1px 1px at 30% 70%, white 1px, transparent 2px),
    radial-gradient(1px 1px at 70% 80%, white 1px, transparent 2px);
  background-size: 100px 100px;
  animation: starsMove 50s linear infinite;
  z-index: -1;
  overflow: hidden; /* Adicionado para conter as estrelas */
  pointer-events: none; /* Evita interferência com cliques */
}
/* Dropdown - garantindo que fique acima de tudo */
.dropdown {
  position: relative;
  z-index: 1001; /* Acima da navbar */
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  z-index: 1002; /* Acima do dropdown */
  list-style: none;
  padding: 8px 0;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Animações (mantidas as mesmas) */
@keyframes cosmicGlow {
  0% { opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

@keyframes logoGlow {
  from { text-shadow: 0 0 5px rgba(113, 180, 113, 0.7); }
  to { text-shadow: 0 0 15px rgba(113, 180, 113, 1); }
}

@keyframes starsMove {
  from { background-position: 0 0; }
  to { background-position: 100px 100px; }
}

/* Efeito hover nos itens */
.nav-item:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--highlight-color);
  transition: width var(--transition-speed);
}

.nav-item:hover::after {
  width: 100%;
}

/* Botões */



.btn-primary:hover {
  background: var(--secondary-color);
}

.btn-card {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 8px;
}

.btn-card:hover {
  background: var(--accent-color);
}

.btn-sair {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
}

.btn-sair:hover {
  background: var(--highlight-color);
  color: var(--text-light);
}

/* Seção Hero */
.apresentacao {
  margin-top: var(--header-height);
  background: linear-gradient(rgba(12,66,34,0.6), rgba(12,66,34,0.6)),
              url('/Imagens/WhatsApp\ Image\ 2025-07-14\ at\ 22.10.38.jpeg') center/cover no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 100px 20px;
}

.apresentacao h1 {
  font-size: 3rem;
  text-shadow: 0 2px 6px var(--shadow-color);
  margin-bottom: 16px;
}

.apresentacao p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 24px;
  text-shadow: 0 1px 3px var(--shadow-color);
}

/* Cards */
.destaque {
  padding: 80px 20px;
}

.destaque h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 40px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 16px var(--shadow-color);
  transition: transform var(--transition-speed);
}

.card:hover {
  transform: translateY(-8px);
}

.card h3 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.card p {
  font-weight: bold;
  text-align: justify;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* Formulário de Feedback */
.feedback {
  padding: 80px 20px;
  background: linear-gradient(rgba(12,66,34,0.6), rgba(14, 66, 109, 1)),
              url('/Imagens/WhatsApp\ Image\ 2025-07-14\ at\ 22.10.37.jpeg') center/cover no-repeat;
  text-align: center;
}

.feedback h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.feedback p {
  color: var(--text-light);
  margin-bottom: 25px;
}

.feedback-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-form input,
.feedback-form textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

.btn-submit {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.btn-submit:hover {
  background: var(--accent-color);
}
/* Estilos para a imagem do perfil */
.profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--highlight-color);
  vertical-align: middle;
  margin-right: 8px;
}

/* Seta do dropdown */
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  list-style: none;
  padding: 8px 0;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a, 
.dropdown-menu button {
  display: block;
  padding: 10px 20px;
  color: var(--text-light);
  text-decoration: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--primary-color);
}

.profile-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}


.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  list-style: none;
  padding: 8px 0;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a, 
.dropdown-menu button {
  display: block;
  padding: 10px 20px;
  color: var(--text-light);
  text-decoration: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--primary-color);
}



/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--card-bg);
  margin-top: auto;
  box-shadow: 0 -2px 4px var(--shadow-color);
}

/* Componentes de Personagem */
.character-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 3px solid var(--highlight-color);
}

.character-detail .character-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--highlight-color);
}

/* Responsividade */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 10px;
  }

  .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    position: relative;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--text-light);
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    bottom: -8px;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background: rgba(5, 55, 70, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    transition: right 0.3s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .apresentacao {
    padding: 60px 15px;
  }
  
  .apresentacao h1 {
    font-size: 2rem;
  }
  
  .apresentacao p {
    font-size: 1rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .character-detail .character-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .character-detail .character-image {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
  }

}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .feedback-form {
    padding: 0 15px;
  }
}


.mobile-menu-toggle {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* CONTROLES DE VISIBILIDADE */
.visibility-section {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid var(--accent-color);
}

.visibility-section h5 {
  color: var(--highlight-color);
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--secondary-color);
}

.vis-field {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  margin-bottom: 5px;
}

.vis-field:hover {
  background: rgba(255, 255, 255, 0.05);
}

.vis-field label {
  margin-left: 10px;
  cursor: pointer;
  flex-grow: 1;
}

.vis-toggle {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

#btn-salvar-visibilidade {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  margin: 25px auto 10px;
}

#btn-salvar-visibilidade:hover {
  background: var(--highlight-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.locked-field {
  color: #ff6b6b;
  font-style: italic;
}

.visibility-section {
  background: rgba(0,0,0,0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.visibility-field {
  display: flex;
  align-items: center;
  padding: 8px;
  gap: 10px;
}

.lock-icon {
  margin-left: 5px;
  color: var(--highlight-color);
}