/* --- Desktop & General Table Styling --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-family: inherit;
  font-size: 0.95em;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

table thead tr {
  background-color: #1b2432; /* Dark Navy (matching your theme) */
  color: #ffffff;
  text-align: left;
  font-weight: bold;
}

table th,
table td {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
}

table tbody tr {
  border-bottom: 1px solid #dddddd;
  background-color: #ffffff;
  transition: background-color 0.2s ease;
}

/* Zebra striping for readability */
table tbody tr:nth-of-type(even) {
  background-color: #f8f9fa;
}

/* Hover effect */
table tbody tr:hover {
  background-color: #f1f5f9;
}

/* Bottom border highlight */
table tbody tr:last-of-type {
  border-bottom: 3px solid #8b5cf6; /* Purple accent */
}

/* --- Mobile Responsive Magic --- */
@media screen and (max-width: 768px) {
  table {
    display: block; /* Forces the table to act like a block container */
    overflow-x: auto; /* Enables horizontal swiping */
    white-space: nowrap; /* Prevents text from breaking layout */
    -webkit-overflow-scrolling: touch; /* Smooth swiping on iPhones */
    border: 1px solid #e0e0e0;
  }
  
  table th, 
  table td {
    white-space: nowrap; /* Keeps data on one line so it scrolls cleanly */
  }
}