/* Modern Premium Tables */

.modern-table-wrapper {
  margin: 24px 0;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  background: var(--bg-2);
  border-radius: 12px;
  overflow: hidden;
}

.modern-table thead {
  background: linear-gradient(135deg, #1fd1a1 0%, #ff7a45 100%);
  color: white;
}

.modern-table thead tr th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.modern-table thead tr th:first-child {
  border-top-left-radius: 12px;
}

.modern-table thead tr th:last-child {
  border-top-right-radius: 12px;
}

.modern-table tbody tr {
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--line);
}

.modern-table tbody tr:nth-child(even) {
  background: rgba(31, 209, 161, 0.03);
}

.modern-table tbody tr:hover {
  background: rgba(31, 209, 161, 0.08);
}

.modern-table tbody tr:last-child {
  border-bottom: none;
}

.modern-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.modern-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.modern-table tbody td {
  padding: 14px 20px;
  color: var(--ink);
  line-height: 1.5;
}

.modern-table tbody td strong {
  color: var(--ink);
  font-weight: 600;
}

/* Responsive mobile */
@media (max-width: 767px) {
  .modern-table {
    font-size: 0.875rem;
  }
  
  .modern-table thead tr th,
  .modern-table tbody td {
    padding: 12px 14px;
  }
  
  .modern-table thead tr th {
    font-size: 0.8125rem;
  }
}

/* Compact variant for smaller comparison tables */
.modern-table--compact {
  font-size: 0.875rem;
}

.modern-table--compact thead tr th,
.modern-table--compact tbody td {
  padding: 12px 16px;
}

.modern-table--compact thead tr th {
  font-size: 0.8125rem;
}
