* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
}

body {
  background: url('../assets/background1.png') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  filter: brightness(1.1);
}

/* Estilos da página de login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.login-box {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.login-box p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.login-box label {
  display: block;
  margin-bottom: 5px;
  color: #ccc;
  font-size: 0.9rem;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  background: #333;
  border: none;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.captcha-box {
  background: #2c2c2c;
  padding: 8px;
  text-align: center;
  margin-bottom: 15px;
  font-size: 0.85rem;
  border-radius: 4px;
}

button {
  width: 100%;
  padding: 10px;
  background: #4a90e2;
  border: none;
  color: white;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #357abd;
}

.forgot-password {
  text-align: right;
  margin-top: 8px;
}

a {
  color: #4a90e2;
  text-decoration: none;
  font-size: 0.9rem;
}

a:hover {
  color: #357abd;
}

/* Estilos da página de cadastro */
.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.register-box {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.register-box h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.register-box p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.register-box label {
  display: block;
  margin-bottom: 5px;
  color: #ccc;
  font-size: 0.9rem;
}

.register-box input[type="text"],
.register-box input[type="password"],
.register-box input[type="email"],
.register-box select {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  background: #333;
  border: none;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Estilos da página de recuperação de senha */
.forgot-password-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.forgot-password-box {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.forgot-password-box h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.forgot-password-box p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.forgot-password-box label {
  display: block;
  margin-bottom: 5px;
  color: #ccc;
  font-size: 0.9rem;
}

.forgot-password-box input[type="text"],
.forgot-password-box input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  background: #333;
  border: none;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

.forgot-password-box #question-text {
  color: #ccc;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* Estilos da página de AllowList */
.allowlist-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.allowlist-box {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.allowlist-box h1 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.allowlist-box p {
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 0.9rem;
}

.allowlist-box section {
  margin-bottom: 15px;
}

.allowlist-box h2 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.allowlist-box label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 0.9rem;
}

.allowlist-box input[type="radio"] {
  margin-right: 8px;
}

.allowlist-box .navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.allowlist-box .navigation button {
  width: 48%;
  padding: 10px;
  background: #4a90e2;
  border: none;
  color: white;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}

.allowlist-box .navigation button:disabled {
  background: #555;
  cursor: not-allowed;
}

.allowlist-box .navigation button:hover:not(:disabled) {
  background: #357abd;
}

/* Estilos da página de termos de uso e política de privacidade */
.terms-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.terms-box {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.terms-box h1 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.terms-box .last-updated {
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.terms-box section {
  margin-bottom: 15px;
}

.terms-box h2 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.terms-box p {
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 0.9rem;
}

.terms-box a {
  color: #4a90e2;
}

.terms-box a:hover {
  color: #357abd;
}

/* Estilos da página de regras */
.rules-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.rules-box {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.rules-box h1 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.rules-box .last-updated {
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.rule-section {
  margin-bottom: 15px;
}

.rule-section h2 {
  margin-bottom: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.rule-section h2::before {
  content: '▶';
  margin-right: 8px;
  font-size: 0.9rem;
  transition: transform 0.3s;
}

.rule-section h2.active::before {
  transform: rotate(90deg);
}

.section-content {
  display: none;
  background: #2c2c2c;
  padding: 12px;
  border-radius: 5px;
}

.section-content.active {
  display: block;
}

.section-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.section-content ul {
  margin-bottom: 12px;
}

.section-content ul li {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.section-content .text-red-700 {
  color: #ff4444;
}

.search-form {
  margin-bottom: 15px;
}

.search-form label {
  display: block;
  margin-bottom: 5px;
  color: #ccc;
  font-size: 0.9rem;
}

.search-form input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  background: #333;
  border: none;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

.crime-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.crime-table th,
.crime-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #444;
  font-size: 0.9rem;
}

.crime-table th {
  background: #333;
  font-weight: bold;
}

.crime-table tbody tr:hover {
  background: #2c2c2c;
}

/* Estilos da página home (dashboard) */
header {
  background-color: #1e1e1e;
  padding: 0.8rem;
  position: fixed;
  width: 100%;
  top: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.header-container {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-container h1 {
  font-size: 1.5rem;
}

.user-info {
  font-size: 0.85rem;
}

nav {
  background-color: #2c2c2c;
  padding: 0.8rem;
  margin-top: 50px;
}

nav ul {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background 0.3s;
}

/* Estilo padrão para links ativos e hover (outras páginas) */
nav ul li a.active,
nav ul li a:hover {
  background-color: #4a90e2;
}

/* Estilo específico para a dashboard */
body.dashboard nav ul li a.active,
body.dashboard nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

main {
  max-width: 1000px;
  width: 90%;
  margin: 80px auto 2rem;
  padding: 1rem;
  flex: 1;
}

.content-section {
  background-color: #1e1e1e;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: none;
}

.content-section.active {
  display: block;
}

.content-section h2 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.content-section p,
.content-section ul {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.content-section ul li {
  margin-left: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Ajuste do rodapé */
.footer {
  background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.87) 56%, rgba(0, 0, 0, 0.68) 100%);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto;
}

.footer .container {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer p {
  margin: 0.3rem 0;
}

.footer a {
  color: #4a90e2;
}

.footer a:hover {
  color: #357abd;
}

/* Media Queries para responsividade */
@media (max-width: 768px) {
  .header-container h1 {
    font-size: 1.2rem;
  }

  .user-info {
    font-size: 0.75rem;
  }

  nav {
    padding: 0.5rem;
    margin-top: 45px;
  }

  nav ul {
    flex-direction: column;
    gap: 0.3rem;
  }

  nav ul li a {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  main {
    margin: 60px auto 1rem;
    padding: 0.5rem;
  }

  .content-section {
    padding: 1rem;
  }

  .content-section h2 {
    font-size: 1.2rem;
  }

  .content-section p,
  .content-section ul {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .user-info {
    text-align: center;
  }

  nav ul {
    align-items: center;
  }

  .footer .container {
    font-size: 0.75rem;
  }
}