/* --- Estilos para Busca de Títulos --- */

.busca-titulos-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto;
}

.bt-sidebar {
    flex: 0 0 300px; /* Largura fixa para a barra de filtros */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
    height: fit-content;
}

.bt-content {
    flex: 1; /* Ocupa o espaço restante */
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* Estilo base para campo de busca e seletores */#bt-search-input,.filter-select {    width: 100%;    border: 2px solid #e0e0e0;    border-radius: 8px;    font-size: 14px;    transition: all 0.3s ease;    background-color: #fafafa; /* Use background-color para não conflitar com a imagem de fundo */    box-sizing: border-box;}/* Estilo específico para o campo de busca */#bt-search-input {    padding: 12px 16px;}/* Estilo específico e corrigido para os seletores (dropdown) */.filter-select {    padding: 10px 40px 10px 16px; /* Aumenta o padding à direita para dar espaço à seta */        /* Remove a aparência nativa do sistema (essencial para iOS) */    -webkit-appearance: none;    -moz-appearance: none;    appearance: none;    /* Adiciona uma seta customizada como imagem de fundo */    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");    background-repeat: no-repeat;    background-position: right 1rem center; /* Posiciona a seta à direita */    background-size: 12px 12px; /* Tamanho da seta */}/* Regra de foco, agora separada */#bt-search-input:focus,.filter-select:focus {    outline: none;    border-color: #007cba;    background-color: white; /* Alterado para background-color */    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);}

#bt-search-input {
    padding: 12px 16px;
}

#bt-search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #007cba;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-notice {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    display: block;
    font-style: italic;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.checkbox-item:hover {
  background: #f5f5f5;
}

.checkbox-item.child-category {
    padding-left: 25px; 
}

.checkbox-item input[type="checkbox"] {
  margin: 0;
  accent-color: #007cba;
  width: 16px;
  height: 16px;
}

.checkbox-item span {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.bt-article-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.bt-article-list li {
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
}

.bt-article-list li:last-child {
    border-bottom: none;
}

.bt-article-list a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
}

.bt-author {
    color: #555;
    font-style: italic;
    font-size: 0.9em;
}

.bt-load-more-container {
    text-align: center;
    margin-top: 20px;
}

#bt-load-more {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#bt-loading,
.bt-no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1em;
    color: #777;
}

/* Responsividade */
@media (max-width: 768px) {
    .busca-titulos-container {
        flex-direction: column;
    }
}