/* Table Container for Responsiveness */
.table-container {
  background-color: #FFFFFF; /* White background */
  border: 2px solid #FF6B35; /* Orange border */
  border-radius: 8px;
  overflow-x: auto; /* Horizontal scroll on small screens */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Neutral gray shadow */
  margin: 1rem 0;
  max-width: 100%;
}

/* Table Base Styles */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #FFFFFF; /* White table background */
  font-family: Arial, sans-serif;
  font-size: 14px;
  table-layout: fixed; /* Optional: Even column widths for n x n tables */
}

/* Table Headers */
.responsive-table th {
  background-color: #FF6B35; /* Orange header background */
  color: #FFFFFF; /* White text */
  padding: 12px 16px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #FF6B35; /* Orange bottom border (underline) */
  position: sticky; /* Sticky headers for scrolling */
  top: 0;
  z-index: 10;
  width: calc(100% / var(--num-cols, 2)); /* Optional: Dynamic width for n columns (set --num-cols CSS var) */
}

/* Table Rows and Cells */
.responsive-table td {
  padding: 12px 16px;
  color: #000000; /* Black text */
  border-bottom: 1px solid #CCCCCC; /* Light gray border for separation */
  word-wrap: break-word; /* Handle long text in large n */
}

/* Hover Effect on Rows */
.responsive-table tbody tr:hover {
  background-color: rgba(255, 107, 53, 0.1); /* Light orange hover overlay */
  transition: background-color 0.3s ease;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
  .responsive-table {
    font-size: 12px; /* Smaller font on mobile */
  }
  
  .responsive-table th,
  .responsive-table td {
    padding: 8px 12px; /* Reduced padding for smaller screens */
    min-width: 100px; /* Adjusted for larger n; increase if needed */
  }
  
  .table-container {
    margin: 0.5rem; /* Adjust margins on mobile */
    border-radius: 4px; /* Softer corners on small screens */
  }
}

/* Optional: Zebra Striping for Better Readability (Applies to All Rows) */
.responsive-table tbody tr:nth-child(even) {
  background-color: rgba(255, 107, 53, 0.05); /* Very light orange for even rows */
}