/* =========================
   TABLE STYLES (DARK THEME MATCH)
   ========================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Header */
thead {
  background: linear-gradient(
    135deg,
    var(--header-start),
    var(--header-end)
  );
  color: var(--ivory);
}

th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-right: 1px solid rgba(245, 241, 234, 0.08);
  font-weight: 600;
}

th:last-child {
  border-right: none;
}

/* Cells */
td {
  padding: 1rem 1.25rem;
  vertical-align: top;
  border-top: 1px solid var(--border);
  border-right: 1px solid rgba(176, 176, 176, 0.08);
  line-height: 1.6;
  color: var(--text);
}

td:last-child {
  border-right: none;
}

/* Row striping using theme surfaces */
tbody tr:nth-child(odd) {
  background: var(--surface);
}

tbody tr:nth-child(even) {
  background: #14151a; /* slightly deeper than surface for contrast */
}

/* Hover effect aligned with your card hover */
tbody tr:hover {
  background: var(--surface-hover);
  transition: background-color 0.15s ease-in-out;
}

/* Responsive wrapper */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 1rem;
}

/* Mobile tweaks */
@media (max-width: 900px) {
  th,
  td {
    padding: 0.85rem;
    font-size: 0.9rem;
  }
}