body {
  color: #666666;
  font-size: 15px;
  font-family: "Catamaran", sans-serif;
  line-height: 1.80857;
}

.container-fluid a {
  color: black; /* default link color */
  text-decoration: none; /* optional, removes underline */
  transition: color 0.3s ease; 
}

a:hover {
  color: #6a4f00; /* color when hovered */
}



.jornal-header {
  background: linear-gradient(135deg, #b58700 0%, #fabc05 100%);
  color: white;
  padding-top: 35px;
  padding: 60px 0 40px;
  margin-bottom: 40px;
}

.jornal-header h1 {
  font-family: "Merriweather", serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.jornal-header p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.btn-voltar {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  font-weight: 600;
  margin-bottom: 20px;
}

.btn-voltar:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
  transform: translateX(-5px);
}

/* Pesquisa */
.search-jornal-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  color: #6a4f00;
  margin-right: 10px;
}

.search-jornal-container h2 {
  margin-bottom: 20px;
  color: #6a4f00;
}

.search-form-jornal {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-group-jornal {
  flex: 1;
  min-width: 200px;
}

.form-group-jornal label {
  display: block;
  font-weight: 600;
  color: #6a4f00;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group-jornal input,
.form-group-jornal select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
}

.form-group-jornal input:focus,
.form-group-jornal select:focus {
  outline: none;
  border-color: #6a4f00;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-search-jornal {
  width: 100%;
  background: linear-gradient(45deg, #fabc05, #b58700);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  text-shadow: 0px 3px 3px rgba(104, 104, 104, 0.5);
}

.btn-search-jornal:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(104, 104, 104, 0.9);
  filter: brightness(1.1);
}

.resultados-pesquisa-jornal {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid #e9ecef;
}

.resultado-item-jornal {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.3s;
  cursor: pointer;
}

.resultado-item-jornal:hover {
  background: antiquewhite;
  transform: translateX(5px);
}

/* Tabela Anos x Meses */
.edicoes-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 40px;
  overflow-x: auto;
}

.edicoes-container h3 {
  color: #6a4f00;
  margin-bottom: 25px;
}

.tabela-edicoes {
  width: 100%;
  border-spacing: 0;
  margin-top: 20px;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  overflow: hidden;
}

.tabela-edicoes thead {
  background: linear-gradient(135deg, #fabc05 0%, #b58700 100%);
  border-radius: 8px;
}
.tabela-edicoes thead th {
  text-shadow: 0px 3px 3px rgba(104, 104, 104, 0.5);
  color: white;
  padding: 15px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tabela-edicoes thead th:first-child {
  border-top-left-radius: 10px;
  text-align: left;
  padding-left: 20px;
}

.tabela-edicoes thead th:last-child {
  border-top-right-radius: 10px;
}

.tabela-edicoes tbody tr {
  transition: all 0.3s;
}

.tabela-edicoes tbody tr:hover {
  background: #f8f9fa;
}

.tabela-edicoes tbody td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.tabela-edicoes tbody td:first-child {
  font-weight: 700;
  font-size: 18px;
  color: #6a4f00;
  text-align: left;
  padding-left: 20px;
  background: #f8f9fa;
}

.celula-mes {
  min-width: 70px;
}

.celula-mes a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: white;
  color: #6a4f00;
  border: 2px solid #6a4f00;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.celula-mes a:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.celula-mes.vazio {
  background: #f8f9fa;
}

/* Popup de edições */
.popup-edicoes {
  position: fixed;
  z-index: 1000;
  transform: translate(-50%, -100%);
  pointer-events: none;
  animation: fadeInPopup 0.2s ease;
}

.popup-content {
  background: linear-gradient(45deg, #fabc05, #b58700);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-content::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0a3a54;
}

@keyframes fadeInPopup {
  from {
    opacity: 0;
    transform: translate(-50%, -110%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
}

/* Controle de ordenação minimalista */
.controle-ordenacao {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seta-ordenacao {
  background: #e9ecef;
  color: #6c757d;
  border: 2px solid transparent;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
}

.seta-ordenacao:hover {
  background: #dee2e6;
  color: #495057;
  transform: scale(1.05);
}

.seta-ordenacao.active {
  background: #12557f;
  color: white;
  border-color: #0f4563;
  box-shadow: 0 2px 8px rgba(18, 85, 127, 0.3);
}

.seta-ordenacao.active:hover {
  background: #0f4563;
}

.loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  border-top-color: #6a4f00;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.nenhuma-edicao {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.nenhuma-edicao i {
  font-size: 64px;
  color: #dee2e6;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .jornal-header h1 {
    font-size: 1.8rem;
  }

  .search-form-jornal {
    flex-direction: column;
  }

  .form-group-jornal {
    width: 100%;
  }

  .btn-search-jornal {
    width: 100%;
    justify-content: center;
  }

  .tabela-edicoes {
    font-size: 12px;
  }

  .tabela-edicoes thead th,
  .tabela-edicoes tbody td {
    padding: 8px 5px;
  }

  .celula-mes a {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
}

/* ===== BOTÕES DE VISUALIZAÇÃO ===== */
.view-toggle {
  display: flex;
  gap: 5px;
}

.btn-view {
  background: white;
  border: 2px solid #dee2e6;
  color: #6c757d;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn-view:hover {
  border-color: #6a4f00;
  color: #6a4f00;
  background: #f8f9fa;
}

.btn-view.active {
  background: #6a4f00;
  color: white;
  border-color: #6a4f00;
}

/* ===== VISUALIZAÇÃO EM TABELA ===== */
.resultados-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.resultados-table thead {
  background: linear-gradient(135deg, #6a4f00 0%, #8b6f00 100%);
  color: white;
}

.resultados-table thead th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.resultados-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
}

.resultados-table tbody tr:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.resultados-table tbody td {
  padding: 15px;
  font-size: 14px;
}

.resultados-table .badge-tipo {
  display: inline-block;
  padding: 4px 12px;
  background: #6a4f00;
  color: white;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.resultados-table .data-cell {
  color: #6c757d;
  font-size: 13px;
  white-space: nowrap;
}

.resultados-table .manchete-cell {
  color: #495057;
  line-height: 1.5;
  max-width: 600px;
}

/* ===== VISUALIZAÇÃO EM CARDS ===== */
.resultados-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.resultado-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid #6a4f00;
}

.resultado-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(106, 79, 0, 0.15);
}

.resultado-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f8f9fa;
}

.resultado-card .badge-tipo {
  display: inline-block;
  padding: 5px 12px;
  background: #6a4f00;
  color: white;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.resultado-card .data-badge {
  color: #6c757d;
  font-size: 13px;
  font-weight: 500;
}

.resultado-card-body {
  color: #495057;
  line-height: 1.6;
  font-size: 14px;
}

.resultado-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f8f9fa;
  color: #6c757d;
  font-size: 12px;
}

@media (max-width: 768px) {
  .resultados-cards {
    grid-template-columns: 1fr;
  }
  
  .resultados-table {
    font-size: 12px;
  }
  
  .resultados-table thead th,
  .resultados-table tbody td {
    padding: 10px 8px;
  }
}
