/* Estilos Gerais */
body {
  margin: 0 0 20px 0;
  font-family: sans-serif;
  font-size: 1.05em;
  background-color: #f1f1f1;
}

/* Header */
header {
  background-color: white;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.header-container {
  max-width: 800px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.logo {
  text-align: center;
  flex: 1;
}

.logo img {
  height: 40px;
}

.menu-btn, .login-btn {
  font-size: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
}

.login-btn {
  background-color: #007bff;
  color: white;
  padding: 8px 15px;
  font-size: 1em;
  border-radius: 5px;
}

/* Container Principal */
.container {
  max-width: 800px;
  margin: 30px auto;
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Elementos de Texto */
.linha {
  margin: 10px 0;
  padding: 5px;
  border-left: 3px solid #ccc;
}

.info {
  font-size: 0.85em;
  color: gray;
  margin-left: 2em;
}

/* Botões */
button {
  font-size: 0.8em;
  cursor: pointer;
  padding: 2px 6px;
  margin-right: 5px;
}

button:hover {
  background-color: #eee;
}

.titulo-legislacao {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.controls {
  margin-bottom: 15px;
}

.botao {
  font-size: 1em;
  cursor: pointer;
  padding: 10px;
  margin-right: 5px;
  background-color: #eee;
  border-radius: 5px;
}

.botao:hover {
  background-color: #d3d3d3;
}

/* Layout dos Trechos */
.linha-contexto { 
  margin-top: 10px; 
  padding: 5px;
}

.tipo-1 { font-weight: bold; margin-left: 10px; }
.tipo-2 { margin-left: 20px; }
.tipo-3 { margin-left: 30px; }
.tipo-4 { margin-left: 40px; }
.tipo-5 { margin-left: 50px; }
.tipo-6 { margin-left: 60px; }
.tipo-7 { margin-left: 70px; }
.tipo-8 { margin-left: 70px; }
.tipo-9 { margin-left: 70px; }
.tipo-10 { margin-left: 70px; }
.tipo-12 { margin-left: 70px; }
.tipo-13 { margin-left: 20px; }

.trecho_atual { 
  border: 1px solid gray; 
  background-color: #fffec2; 
  border-radius: 3px; 
}

/* Loading */
#loading {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Botões de Navegação */
.botoes { 
  margin-top: 20px; 
  display: flex; 
  gap: 20px; 
  justify-content: center; 
}

.botoes button {
  font-size: 1em;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
}

/* Botão Entenda - precisa vir depois para ter maior especificidade */
.btn-entenda {
  background-color: #4CAF50 !important;
  color: white !important;
  border: none !important;
}

.btn-entenda:hover {
  background-color: #45a049 !important;
}

/* Media Queries para Mobile */
@media (max-width: 768px) {
  body {
    font-size: 1.1em;
  }

  header {
    padding: 15px 0;
  }

  .menu-btn {
    font-size: 1.8em;
    padding: 10px;
  }

  .login-btn {
    font-size: 1.2em;
    padding: 8px 20px;
  }

  .logo img {
    height: 35px;
  }

  .botoes {
    flex-direction: row;
    justify-content: space-between; 
    gap: 15px;
    padding: 0 15px;
    margin-top: 25px;
  }

  .botoes button {
    font-size: 1.2em;
    padding: 15px;
    border-radius: 6px;
  }

  /* Ajuste para textos em geral */
  .linha-contexto {
    font-size: 1.1em;
    line-height: 1.4;
    padding: 8px;
  }
} 