/* style2.css */

/* Box-sizing global evita problemas de largura por conta de bordas/padding */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
}

.main-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  width: 100%;
  height: 5px;
  background-color: #0c4d6c;
}

.main-header {
  text-align: center;
  padding: 2rem 1rem;
}

.logo {
  max-width: 320px;
  animation: focusIn 1.5s forwards;
}

@keyframes focusIn {
  0% {
    filter: blur(8px);
  }
  100% {
    filter: blur(0);
  }
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.search-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px; /* Limita a largura máxima do formulário */
}

.search-box {
  width: 100%;
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
  background: #fff
    url('https://atribunarj.com.br/assets/search_icon_bar.svg')
    no-repeat right 10px center;
  background-size: 20px;
}

.search-input:focus {
  border-color: #aaa;
}

/* Intervalo de datas */
.dates-wrap {
  width: 100%;
  margin-bottom: 1.5rem;
}

.dates-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 1rem;
}

/* Garante que os 2 inputs ocupem a mesma largura, sem quebrar a linha */
.date-input {
  flex: 1;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
  background: #fff
    url('https://cdn-icons-png.flaticon.com/512/747/747310.png')
    no-repeat right 10px center;
  background-size: 20px;
  cursor: pointer;
}

.date-input:focus {
  border-color: #aaa;
}

/* Link "Baixar edição específica" */
.extra-links-specific {
  margin-bottom: 1.5rem;
  text-align: center; /* se quiser centralizado como todo resto */
}

/* Bloco para a data única (inicia hidden no HTML) */
.single-date-wrap {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

.single-date-text {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
}

/* Link "Buscar por termos" */
.extra-links-terms {
  text-align: center;
  margin-top: 1rem;
}

.toggle-specific-date,
.toggle-range {
  font-size: 0.9rem;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}

.main-footer {
  background-color: #f9f9f9;
  border-top: 1px solid #ececec;
  padding: 1rem;
}

.main-footer p {
  margin: 0;
  text-align: right;
  font-size: 0.8rem;
  color: #aaa;
}

@media (max-width: 600px) {
  /* Ajustes responsivos pra telas menores */
  .search-form {
    max-width: 90%;
  }
  .dates-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}
