/* ✅ Ensure the table has a bottom scrollbar */
.table-container {
  overflow-x: auto; /* Enables horizontal scrolling */
  overflow-y: auto; /* Enables vertical scrolling */
  max-width: 100%; /* Restricts width to container */
  max-height: 600px; /* Adjust height to your preference */
  border: 1px solid #ddd; /* Adds a subtle border */
  padding-bottom: 10px; /* Space for the scrollbar */
}

/* ✅ Table Styling */
table {
  width: 100%;
  min-width: 1200px; /* Ensures table does not collapse */
  table-layout: auto;
  border-collapse: collapse;
  background-color: #fff;
}

/* ✅ Alternating Row Colors */
tr:nth-child(even) {
  background-color: #eafbea; /* Light green */
}

tr:nth-child(odd) {
  background-color: #ffffff; /* White */
}

/* ✅ Table Headers */
th {
  background-color: #4CAF50; /* Green */
  color: white;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px;
}

/* ✅ Table Data */
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: nowrap; /* Prevents text wrapping */
  font-size: 16px;
  color: #333;
}

/* ✅ Improved Comment Box */
.member-comment {
  width: 200px; /* Increased width */
  height: 60px; /* Increased height */
  border: 1px solid #28a745; /* Green border */
  border-radius: 5px;
  padding: 8px;
  font-size: 14px;
  resize: vertical; /* Allows resizing */
  background-color: #ffffff; /* White background */
}

.member-comment:focus {
  outline: none;
  border: 2px solid #218838;
  box-shadow: 0px 0px 5px rgba(40, 167, 69, 0.5);
}

/* ✅ Improve Filter Buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-button {
  background-color: #4CAF50;
  border: 2px dashed #8DCD60;
  color: white;
  padding: 10px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 25px;
  transition: background 0.4s, border-color 0.4s;
}

.filter-button:hover {
  background-color: #367a36;
  border: 2px dashed #7CB342;
}

/* ✅ Ensure Responsiveness */
@media (max-width: 600px) {
  .filter-button {
    padding: 12px 20px;
    margin: 10px 0;
    font-size: 18px;
    width: 100%;
  }

  .table-container {
    max-height: 400px; /* Smaller height for smaller screens */
  }

  .member-comment {
    width: 100%; /* Full width on mobile */
    height: 50px; /* Slightly smaller on mobile */
  }
}
