/* 
 * CSS adicional para tipos específicos de conteúdo jurídico
 * Arquivo: /css/legal-content.css
 */

/* ===== ESTILOS PARA ARTIGOS E INCISOS ===== */
.artigo,
.inciso,
.paragrafo {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid #e0e6ed;
  transition: border-color 0.2s ease;
}

.artigo:hover,
.inciso:hover,
.paragrafo:hover {
  border-left-color: #3498db;
}

.artigo-numero,
.inciso-numero,
.paragrafo-numero {
  font-weight: 600;
  color: #2c3e50;
  margin-right: 0.5rem;
}

/* ===== DESTAQUE PARA TERMOS IMPORTANTES ===== */
.termo-tecnico {
  background: linear-gradient(120deg, #a8e6cf 0%, #dcedc8 100%);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 500;
}

.penalidade {
  background: linear-gradient(120deg, #ffcdd2 0%, #f8bbd9 100%);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 500;
}

.prazo {
  background: linear-gradient(120deg, #fff3e0 0%, #ffe0b2 100%);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 500;
}

/* ===== SEÇÕES ESPECIAIS ===== */
.lei-titulo {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.lei-ementa {
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #6c757d;
}

.capitulo {
  margin: 2rem 0 1rem 0;
  padding: 1rem;
  background: linear-gradient(to right, #f8f9fa, transparent);
  border-left: 5px solid #007bff;
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.secao {
  margin: 1.5rem 0 1rem 0;
  padding: 0.75rem;
  background: rgba(0, 123, 255, 0.05);
  border-left: 3px solid #007bff;
  font-weight: 500;
  font-size: 1.1rem;
}

/* ===== NOTAS E OBSERVAÇÕES ===== */
.nota-explicativa {
  margin: 1rem 0;
  padding: 1rem;
  background: #e8f4f8;
  border: 1px solid #bee5eb;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #0c5460;
}

.nota-explicativa::before {
  content: "💡 ";
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.jurisprudencia {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f3e5f5;
  border: 1px solid #ce93d8;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #4a148c;
}

.jurisprudencia::before {
  content: "⚖️ ";
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

/* ===== TABELAS E DADOS ===== */
.tabela-legal {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.tabela-legal th {
  background: #495057;
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.tabela-legal td {
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

.tabela-legal tr:hover {
  background: #f8f9fa;
}

/* ===== FORMULÁRIOS E MODELOS ===== */
.modelo-documento {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fefefe;
  border: 2px dashed #6c757d;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.campo-preenchimento {
  display: inline-block;
  min-width: 100px;
  border-bottom: 1px solid #007bff;
  margin: 0 0.25rem;
  color: #007bff;
  font-weight: 500;
}

/* ===== CRONOLOGIA E HISTÓRICO ===== */
.linha-tempo {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
}

.linha-tempo::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #007bff;
}

.evento-historico {
  position: relative;
  margin: 1rem 0;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.evento-historico::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  background: #007bff;
  border-radius: 50%;
  border: 2px solid white;
}

.data-evento {
  font-weight: 600;
  color: #007bff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ===== RESPONSIVIDADE PARA CONTEÚDO LEGAL ===== */
@media (max-width: 768px) {
  .artigo,
  .inciso,
  .paragrafo {
    padding-left: 0.5rem;
    border-left-width: 2px;
  }
  
  .lei-titulo,
  .modelo-documento {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .tabela-legal {
    font-size: 0.85rem;
  }
  
  .linha-tempo {
    padding-left: 1.5rem;
  }
  
  .evento-historico::before {
    left: -1.25rem;
  }
}

/* ===== IMPRESSÃO PARA CONTEÚDO LEGAL ===== */
@media print {
  .lei-titulo {
    background: none !important;
    color: black !important;
    border: 2px solid black;
  }
  
  .nota-explicativa,
  .jurisprudencia {
    border: 1px solid #333 !important;
    background: none !important;
    color: black !important;
  }
  
  .tabela-legal th {
    background: #f0f0f0 !important;
    color: black !important;
  }
  
  .linha-tempo::before {
    background: black !important;
  }
  
  .evento-historico::before {
    background: black !important;
  }
}
