/* ==============================================
   tables.css - Table Styles + Dark Theme
   ============================================== */

/* Table Styles */
.table {
  color: var(--text);
  border-color: var(--stroke);
}

.table thead {
  background: rgba(79, 70, 229, 0.05);
  border-color: var(--stroke);
}

.table thead th {
  color: var(--text);
  border-color: var(--stroke);
}

.table tbody tr {
  border-color: var(--stroke);
}

.table tbody td {
  color: var(--text);
  border-color: var(--stroke);
}

.table-hover tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.05);
}

/* Dark Theme Table Overrides */
:root[data-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(124, 58, 237, 0.08);
  --bs-table-border-color: var(--stroke);
}

:root[data-theme="dark"] .table thead {
  background: rgba(124, 58, 237, 0.08);
}

:root[data-theme="dark"] .table-hover tbody tr:hover {
  background-color: rgba(124, 58, 237, 0.08);
}

/* Inactive/Disabled Items */
.table-row-inactive {
  opacity: 0.6;
  position: relative;
}

.table-row-inactive td {
  color: var(--muted) !important;
}

.table-row-inactive .badge {
  opacity: 0.7;
}

.table-row-inactive code {
  opacity: 0.7;
  color: var(--muted) !important;
}

.table-row-inactive strong {
  font-weight: 500;
  color: var(--muted) !important;
}

/* Inactive icon overlay */
.inactive-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.inactive-indicator::after {
  content: "•";
  color: var(--muted);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* Log Viewer */
.log-viewer {
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 1rem;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.log-viewer pre {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.log-viewer code {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
}
