* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter Tight', sans-serif;
  background-color: #f0f2f5;
}

.search-container {
  padding: 20px;
  text-align: center;
  background-color: #4a69bd00;
}

#searchInput {
  width: 400px;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  outline: none;
  transition: box-shadow 0.3s ease;
}

#searchInput:focus {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Wrapper for responsiveness */
.table-responsive {
  width: 100%;
  overflow-x: auto; /* Enables horizontal scrolling on small screens */
  margin: 20px 0;
}

/* Adjust table width */
table {
  width: 85%;
  margin: 30px auto;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  background-color: #fff;
  white-space: nowrap; /* Prevent text from wrapping */
}

/* Table headers */
thead {
  background-color: #234847;
  color: #fff;
}

thead th {
  padding: 15px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

thead th::after {
  content: '';
  position: absolute;
  right: 20px;
  border: 6px solid transparent;
  border-top-color: #fff;
  transform: translateY(-50%);
  top: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

thead th:hover::after {
  opacity: 1;
}

/* Table body rows */
tbody tr {
  transition: background-color 0.3s ease;
}

/* Zebra striping for better readability */
tbody tr:nth-child(even) {
  background-color: #f6f5f5;
}

tbody tr:hover {
  background-color: #dcdde1;
}

td {
  padding: 15px;
  text-align: center;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

tbody tr {
  animation: fadeIn 0.5s ease-in;
}

/* Mobile Styles */
@media (max-width: 768px) {
  #searchInput {
      width: 90%; /* Full width on mobile */
      font-size: 14px;
  }

  table {
      width: 100%; /* Full width */
      font-size: 14px;
  }

  th, td {
      padding: 10px;
      font-size: 12px; /* Smaller font for better readability */
  }
}
