.forecast-tab {
  display: inline-block;
  margin: 0 5px 10px 0;
  padding: 5px 10px;
  background-color: #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.forecast-tab.active {
  background-color: #007bff;
  color: white;
}
/* Spinner styling */
.spinner {
  width: 24px;
  height: 24px;
  border: 4px solid #ccc;
  border-top-color: #007bff; /* color for the spinning part */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Center the spinner + text */
.loading-spinner {
  text-align: center;
  padding: 10px 0;
}

/* News tables inside #news-content */
#news-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-family: "Raleway", sans-serif;
}

#news-content th, 
#news-content td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: left;
}

/* Column widths */
#news-content th:nth-child(1),
#news-content td:nth-child(1) { width: 65%; } /* Article */
#news-content th:nth-child(2),
#news-content td:nth-child(2) { width: 25%; } /* Source */
#news-content th:nth-child(3),
#news-content td:nth-child(3) { width: 10%; } /* Published */

/* Alternate row color */
.news-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.news-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9; /* optional, to ensure contrast */
}