.error {
  border: 2px solid red;
}

.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 1000;
}

.error-message {
  color: red;
  font-size: 12px;
}

.dataTable {
  width: auto;
  max-width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
}

.dataTable thead {
  background-color: #007bff;
  color: white;
}

.dataTable thead th {
  padding: 10px;
  text-align: left;
}

.dataTable tbody tr {
  transition: background-color 0.3s;
}

.dataTable tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.dataTable tbody tr:hover {
  background-color: #e2e6ea;
}

.dataTable tbody td {
  padding: 10px;
  border: 1px solid #dee2e6;
}

.dataTables_wrapper {
  max-width: 80%;
  margin: 0 auto;
}

.dataTables_wrapper .dataTables_filter {
  display: inline-block;
  float: right;
}

.dataTables_wrapper .dataTables_paginate {
  display: inline-block;
  float: right;
}

.dataTables_wrapper .dataTables_filter input {
  width: auto;
  max-width: 200px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  margin: 0 2px;
  padding: 5px 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #007bff;
  color: white;
}

.dataTables_wrapper {
  margin-bottom: 50px;
}

.dataTables_wrapper {
  margin-bottom: 50px;
}

#history_filter input,
#data_filter input {
  border-bottom: solid 1px #ccc;
}

#history_filter input:focus, 
#data_filter input:focus {
  outline: none;
}

/* Caption styling for DataTables */
.dataTable caption {
  caption-side: top; /* ensures it's above the table */
  text-align: center; /* centers the caption */
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px; /* space between caption and table */
  color: #007bff; /* match your table header color */
}