/* Importar fonte Roboto do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

.ej-edicoes-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
}
.ej-edicao-item {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background: #fafafa;
  width: 220px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ej-edicao-item h3 {
  font-size: 1.1em;
  margin: 10px 0 8px 0;
}
.ej-pdf-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: #0073aa;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.ej-pdf-link:hover {
  background: #005177;
}

/* ===== FILTRO REORGANIZADO E MODERNO ===== */
.ej-filtro-container {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

.ej-filtro-container:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: #d1d5d9;
}

.ej-filtro-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Seção de busca principal */
.ej-busca-secao {
  width: 100%;
}

.ej-busca-principal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ej-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  display: block;
}

.ej-input-busca {
  width: 100%;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #374151;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ej-input-busca:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ej-input-busca::placeholder {
  color: #9ca3af;
  font-weight: 300;
}

/* Seção de filtros por data */
.ej-filtros-data {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ej-filtro-grupo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
  flex: 1;
}

.ej-input-data {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #374151;
  transition: all 0.2s ease;
  min-width: 80px;
}

.ej-input-data:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ej-input-data::placeholder {
  color: #9ca3af;
  font-weight: 300;
}

.ej-select-mes {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #374151;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 120px;
}

.ej-select-mes:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Seção de botões */
.ej-botoes-secao {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ej-btn-buscar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ej-btn-buscar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ej-btn-buscar:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.ej-btn-limpar {
  background: #f9fafb;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ej-btn-limpar:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 768px) {
  .ej-filtro-container {
    padding: 16px;
  }
  
  .ej-filtros-data {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .ej-filtro-grupo {
    min-width: auto;
  }
  
  .ej-botoes-secao {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ej-btn-buscar,
  .ej-btn-limpar {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ej-filtro-container {
    padding: 12px;
  }
  
  .ej-input-busca,
  .ej-input-data,
  .ej-select-mes {
    font-size: 16px; /* Evita zoom no iOS */
  }
  
  .ej-label {
    font-size: 13px;
  }
}

/* Estilos para o painel administrativo */
.ej-admin-form {
  background: #f9f9f9;
  border: 1px solid #e2e2e2;
  padding: 18px 18px 8px 18px;
  border-radius: 8px;
  max-width: 600px;
}
.ej-admin-field {
  margin-bottom: 18px;
}
.ej-admin-desc {
  color: #666;
  font-size: 0.97em;
  display: block;
  margin-bottom: 6px;
}
.ej-admin-help {
  background: #eef6fa;
  border-left: 4px solid #0073aa;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.98em;
}
.ej-admin-checklist {
  background: #f0f8f0;
  border-left: 4px solid #28a745;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.98em;
}
.ej-checklist-item {
  margin: 5px 0;
  padding: 3px 0;
}
.ej-checklist-item.completed {
  color: #28a745;
}
.ej-checklist-item.completed .ej-checkbox {
  color: #28a745;
}
.ej-checkbox {
  font-weight: bold;
  margin-right: 8px;
} 