
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: linear-gradient(135deg, #1a237e 0%, #283593 100%); min-height: 100vh; padding: 15px; }
.container { max-width: 1000px; margin: 5px auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }

.header { background: linear-gradient(135deg, #1a237e, #283593); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.header h2 { font-size: 18px; }
.btn-back { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 7px 13px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; }

.content { padding: 15px 20px; }

/* Barra de busca */
.search-box { display: flex; gap: 10px; margin-bottom: 15px; }
.search-input { flex: 1; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 15px; font-family: inherit; outline: none; transition: border 0.2s; }
.search-input:focus { border-color: #1a237e; }
.btn-search { background: #1a237e; color: white; border: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn-search:hover { background: #283593; }
.btn-limpar { background: #f5f5f5; color: #666; border: 2px solid #ddd; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }

/* Filtros de módulo */
.filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.filtro-btn { padding: 5px 12px; border-radius: 20px; border: 2px solid #ddd; background: white; font-size: 12px; font-weight: 600; cursor: pointer; color: #555; transition: all 0.2s; }
.filtro-btn.ativo { background: #1a237e; color: white; border-color: #1a237e; }

/* Estado inicial / loading */
.estado { text-align: center; padding: 40px 20px; color: #999; }
.estado .icone { font-size: 48px; margin-bottom: 10px; }
.estado p { font-size: 14px; }
#loading { display: none; text-align: center; padding: 20px; color: #666; font-size: 14px; }

/* Resumo dos resultados */
.resumo { background: #f5f5f5; border-radius: 8px; padding: 10px 14px; margin-bottom: 15px; font-size: 13px; color: #555; display: none; }
.resumo strong { color: #1a237e; }

/* Grupos de resultado */
.grupo { margin-bottom: 20px; }
.grupo-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; margin-bottom: 8px; color: white; font-size: 13px; font-weight: 700; }
.grupo-count { background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 12px; font-size: 11px; }

/* Card de resultado */
.resultado-item { border: 2px solid #e0e0e0; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: all 0.2s; cursor: pointer; }
.resultado-item:hover { border-color: #1a237e; box-shadow: 0 3px 12px rgba(26,35,126,0.15); transform: translateY(-1px); }
.resultado-info { flex: 1; min-width: 0; }
.resultado-titulo { font-size: 14px; font-weight: 700; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resultado-sub { font-size: 12px; color: #777; margin-top: 3px; }
.resultado-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; }
.resultado-seta { color: #bbb; font-size: 18px; flex-shrink: 0; }

/* Highlight do termo buscado */
mark { background: #fff176; color: #333; border-radius: 2px; padding: 0 2px; }

/* Sem resultados */
.sem-resultado { text-align: center; padding: 30px; color: #999; }
.sem-resultado .icone { font-size: 36px; margin-bottom: 8px; }

@media (max-width: 600px) {
    .header { flex-direction: column; text-align: center; }
    .search-box { flex-wrap: wrap; }
    .btn-limpar { width: 100%; }
    .btn-search { flex: 1; }
    .filtros { justify-content: center; }
}

