/* Container */
.table-container {
  margin-top: 24px;
  padding: 20px;
  background: #23272f;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  overflow-x: auto;
}

/* Table */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #23272f;
  color: #e0e6ed;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Table Header */
th {
  background: linear-gradient(90deg, #2c313c 80%, #23272f 100%);
  color: #a9b7c6;
  font-weight: 600;
  padding: 12px 10px;
  border-bottom: 2px solid #3a7afe;
  text-align: left;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Table Body */
td {
  padding: 10px 10px;
  border-bottom: 1px solid #343a40;
  background: #23272f;
  color: #e0e6ed;
  vertical-align: middle;
  transition: background 0.2s;
}

/* Row hover */
tr:hover td {
  background: #2c313c;
}

/* First column highlight */
td:first-child, th:first-child {
  font-weight: 500;
  color: #3a7afe;
}

/* Last row no border */
tr:last-child td {
  border-bottom: none;
}

/* Table column widths */
table th:last-child,
table td:last-child {
  width: 30%;
  min-width: 120px;
  max-width: 400px;
  /* Prevent shrinking below 30% on wide screens */
}

table th:not(:last-child),
table td:not(:last-child) {
  width: calc(70% / (var(--col-count, 1)));
  /* --col-count should be set to (number of columns - 1) in your table element via JS or React */
}

/* Responsive tweaks */
@media (max-width: 700px) {
  .table-container {
    padding: 8px;
    border-radius: 8px;
  }
  table {
    font-size: 0.95rem;
  }
  th, td {
    padding: 8px 4px;
  }
}
