.center {
  text-align: center;
}

body {
  margin: 0;
  background-color: #181b1f;
  color: #ffffff;
  transition: background-color 0.3s, color 0.3s;
}

.lightblue {
  color: lightblue;
}
.yellow {
  color: yellow;
}
.red {
  color: red;
}
.grey {
  color: grey;
}
.lightgreen {
  color: lightgreen;
}

/* collapse filter styling */
.toggle-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #24252b;
  border: none;
  padding: 12px 16px;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
  width: 100%;
  /* max-width: 600px; */
  /* font-size: 16pxs; */
}

.toggle-button span {
  font-weight: bold;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.rotate {
  transform: rotate(180deg);
}

/* icon styling */
.icon {
  font-size: 24px;
  margin-right: 8px;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-top: 1px solid #ccc;
}

th,
td {
  padding: 8px;
  text-align: left;
}

td {
  border-bottom: 1px solid #ccc;
}

.table-center {
  text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  table {
    border: 0;
  }

  table thead {
    display: none;
  }

  table tr {
    display: block;
    margin-bottom: 15px; /* Add spacing between records */
    border: 1px solid #ddd; /* Add a border around each record */
    border-radius: 8px; /* Optional: rounded corners */
    padding: 10px; /* Add padding for a card-like appearance */
  }

  table td {
    display: block;
    text-align: right;
    border: none;
    position: relative;
    padding-left: 50%;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    text-align: left;
    font-weight: bold;
    color: #ffffff;
    padding-right: 50%;
  }

  td:empty {
    display: none; /* Hide completely empty rows */
  }

  .table-center {
    text-align: right;
  }
}

/* pagination styling */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  justify-content: center;
}
.pagination li {
  margin: 0 5px;
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.pagination li.active {
  background-color: #007bff;
  color: white;
}
.pagination li.disabled {
  cursor: not-allowed;
  color: #ccc;
}

/* error styling */

.error-box {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #ffcccc;
  background-color: #ffe6e6;
  color: #cc0000;
  border-radius: 8px;
  text-align: left;
}
.error-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

/* card styling */
.card {
  background-color: #24252b; /* Dark card background */
  color: #ffffff; /* Text color for contrast */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

/* Spinner Styling */
.spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.spinner div {
  width: 16px;
  height: 16px;
  margin: 0 4px;
  background-color: #333;
  border-radius: 50%;
  animation: spinner 1.2s infinite ease-in-out both;
}

.spinner div:nth-child(1) {
  animation-delay: -0.32s;
}
.spinner div:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes spinner {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
