/* Sidetalk Base Table - base-table.css */

/* ==============================================
   1. Table Container (14 files)
   ============================================== */
#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap {
}

#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap > table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

/* ==============================================
   2. Table Head
   ============================================== */
#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap table thead {
  background: #f9fafb;
}

#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap table thead th {
  padding: 8px 12px;
  font-weight: 600;
  font-size: var(--st-font-size-sm);
  color: var(--st-text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--st-border);
  white-space: nowrap;
}

/* ==============================================
   3. Table Body
   ============================================== */
#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap table tbody td {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--st-text-primary);
  border-bottom: 1px solid var(--st-border-light);
  vertical-align: middle;
}

#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap table tbody tr:hover {
  background: var(--st-bg-secondary);
  transition: background var(--st-transition-fast);
}

#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap table tbody tr:last-child td {
  border-bottom: none;
}

/* center-aligned cells */
#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap table td[style*="text-align: center"],
#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap table td.st-text-center {
  text-align: center;
}

/* ==============================================
   3b. History Table Override (credit-purchase-history)
   ============================================== */
.history-card {
  border-radius: 0;
}

#sidetalk-dashboard-content .history-table {
  border-collapse: collapse;
  border-spacing: 0;
}

#sidetalk-dashboard-content .history-table td:first-child {
  border-radius: 0;
}

#sidetalk-dashboard-content .history-table td:last-child {
  border-radius: 0;
}

#sidetalk-dashboard-content .history-table tr.item-row {
  box-shadow: none;
}

#sidetalk-dashboard-content .history-table tr.item-row:hover {
  transform: none;
  box-shadow: none;
  background: var(--st-bg-secondary);
}

#sidetalk-dashboard-content .history-table td {
  padding: 8px 12px;
}

#sidetalk-dashboard-content .history-table th {
  padding: 8px 12px;
}

/* ==============================================
   4. Table Empty State
   ============================================== */
#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap table td.empty,
#sidetalk-dashboard-content .sidetalk-dashboard-data-list-wrap table td[colspan] {
  text-align: center;
  padding: 24px 12px;
  color: var(--st-text-muted);
}

#sidetalk-dashboard-content .no-sidetalks {
  padding: 60px var(--st-space-5);
  text-align: center;
}

/* ==============================================
   5. Pagination (13 files)
   ============================================== */
#sidetalk-dashboard-content .sidetalk-dashboard-content-list-nav {
  margin-top: var(--st-space-5);
  padding: var(--st-space-2) 0;
}

#sidetalk-dashboard-content .sidetalk-dashboard-content-list-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-1);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidetalk-dashboard-content .sidetalk-dashboard-content-list-nav ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--st-space-2);
  border-radius: 0;
  border: 1px solid var(--st-border);
  background: white;
  color: var(--st-text-primary);
  font-size: var(--st-font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--st-transition-fast);
}

#sidetalk-dashboard-content .sidetalk-dashboard-content-list-nav ul li a:hover {
  background: var(--st-bg-secondary);
  border-color: var(--st-primary);
  color: var(--st-primary);
}

#sidetalk-dashboard-content .sidetalk-dashboard-content-list-nav ul li a.active {
  background: var(--st-primary);
  border-color: var(--st-primary);
  color: white;
  font-weight: 600;
}

/* ==============================================
   6. Column Alignment Helper
   ============================================== */
.col-checkbox {
  width: 5%;
  min-width: 44px;
  max-width: 44px;
  text-align: center;
  box-sizing: border-box;
}

.col-center {
  text-align: center;
}

/* Column width utilities — percentage */
.col-w-5  { width: 5%; }
.col-w-10 { width: 10%; }
.col-w-15 { width: 15%; }
.col-w-20 { width: 20%; }
.col-w-25 { width: 25%; }
.col-w-30 { width: 30%; }
.col-w-40 { width: 40%; }
.col-w-50 { width: 50%; }
.col-w-60 { width: 60%; }

/* Column width utilities — fixed pixel */
.col-w-150px { width: 150px; }

/* Column min-width utilities */
.col-min-100px { min-width: 100px; }
.col-min-120px { min-width: 120px; }
.col-min-160px { min-width: 160px; }

.empty-row {
  padding: 40px 12px;
  color: var(--st-text-muted);
}

/* Checkbox row (toggle label + checkbox inline) */
.sidetalk-checkbox-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

/* Flex column with gap */
.sidetalk-flex-col-gap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ==============================================
   7. Empty State (home.php CTA)
   ============================================== */
#sidetalk-dashboard-content .sidetalk-empty-state {
  padding: 60px 20px;
  text-align: center;
}

#sidetalk-dashboard-content .sidetalk-empty-state__content {
  margin-bottom: 20px;
}

#sidetalk-dashboard-content .sidetalk-empty-state__icon {
  font-size: 32px;
  margin-bottom: 10px;
}

#sidetalk-dashboard-content .sidetalk-empty-state__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--st-text-primary);
  margin-bottom: 8px;
}

#sidetalk-dashboard-content .sidetalk-empty-state__desc {
  color: var(--st-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

#sidetalk-dashboard-content .sidetalk-empty-state__cta {
  background: #2563EB;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: var(--st-radius-xl);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

#sidetalk-dashboard-content .sidetalk-empty-state__cta:hover {
  background: #1d4ed8;
}

/* ==============================================
   8. Responsive
   ============================================== */
@media (max-width: 768px) {
  .sidetalk-dashboard-data-list-wrap table {
    font-size: 13px;
  }
}
