* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: #0a0f1a;
  color: #e0e0e0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  padding-top: 40px; /* Compensação da altura do header fixo */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  background-color: #131a2a;
  border-bottom: 1px solid #1c2333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.logo span{
  font-size: 22px;
  font-weight: 700;
  color: #00e0ff;
}

.back-link a {
  color: #e0e0e0;
  background-color: transparent;
  padding: 8px 16px;
  border: 1px solid #00e0ff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.back-link a:hover {
  background-color: #00e0ff;
  color: #000;
}

main {
  display: flex;
  padding: 40px;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  flex: 1;
  width: 100%;
}

nav {
  min-width: 240px;
  background-color: #131a2a;
  padding: 20px;
  border-radius: 12px;
  position: sticky;
  top: 100px; /* espaço seguro abaixo do header fixo */
  height: fit-content;
}


nav h2 {
  font-size: 26px;
  margin-bottom: 16px;
  color: #00e0ff;
}

nav ul {
  list-style: none;
}

nav li {
  margin-bottom: 12px;
}

nav a {
  font-size: 16px;
  position: relative;
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 1px;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: #00e0ff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

nav a:hover {
  color: #00c8e6;
}

nav a.active {
  color: #00e0ff;
  font-weight: 700;
}

nav a.active::after {
  transform: scaleX(1);
  background-color: #00e0ff;
}

.content {
  flex: 1;
  background-color: #131a2a;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.content section {
  margin-bottom: 60px;
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #00e0ff;
}

.content p {
  margin-bottom: 12px;
  font-size: 1rem;
}

footer {
  background-color: #131a2a;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
  padding: 40px;
  border-top: 1px solid #1c2333;
  width: 100%;
  margin-top: auto;
}

@media (max-width: 768px) {
  body {
    padding-top: 80px; /* Mais espaço em telas menores */
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }

  .logo {
    font-size: 20px;
  }

  .back-link a {
    font-size: 0.95rem;
    padding: 8px 12px;
  }

  main {
    flex-direction: column;
    padding: 20px;
    gap: 24px;
  }

  nav {
    width: 100%;
    position: static;
    padding: 16px;
    border-radius: 10px;
  }

  nav h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    font-size: 1rem;
  }

  .content {
    padding: 24px;
    border-radius: 10px;
  }

  .content h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  footer {
    font-size: 0.75rem;
    padding: 20px;
  }
}
