/* Table styles */
.table-container {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 1.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table thead {
  background: var(--neutral-light);
}

.table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: var(--neutral-lighter);
  transition: background-color 0.2s ease;
}

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

.actions-column {
  width: 200px;
  text-align: right;
  white-space: nowrap;
}

/* Drag and drop styles */
.draggable-row {
  cursor: move;
  transition: background-color 0.2s ease;
}

.draggable-row:hover {
  background: #f8fafc;
}

.draggable-row.drag-over {
  background: #dbeafe;
  border-top: 2px solid var(--primary-blue);
}

.drag-handle {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--text-secondary);
  cursor: grab;
  font-size: 1rem;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

/* Table badges and status indicators */
.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-user {
  background: var(--primary-blue);
  color: var(--white);
}

.status-champion {
  background: var(--warning);
  color: var(--white);
}

.status-admin {
  background: var(--success);
  color: var(--white);
}

.status-active {
  background: var(--success);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-inactive {
  background: var(--neutral-medium);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Idea status badges */
.status-draft {
  background: var(--warning);
  color: var(--white);
}

.status-submitted {
  background: var(--primary-blue);
  color: var(--white);
}

.status-hold {
  background: var(--neutral-medium);
  color: var(--white);
}

.status-approved {
  background: var(--success);
  color: var(--white);
}

.status-rejected {
  background: var(--error);
  color: var(--white);
}

/* Status controls and actions */
.status-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-actions label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.status-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.status-btn-hold {
  background-color: var(--neutral-light);
  color: var(--neutral-dark);
  border: 1px solid var(--neutral-medium);
}

.status-btn-hold:hover {
  background-color: var(--neutral-medium);
  color: var(--white);
}

.status-btn-approved {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.status-btn-approved:hover {
  background-color: var(--success);
  color: var(--white);
}

.status-btn-rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
}

.status-btn-rejected:hover {
  background-color: var(--error);
  color: var(--white);
}

.idea-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.idea-link:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

.table .actions-column .btn {
  margin-left: 0.5rem;
}

.table .actions-column .btn:first-child {
  margin-left: 0;
}

/* Creator scores in tables */
.creator-score {
  font-weight: 600;
}

.creator-score.score-na {
  color: var(--neutral-medium);
  font-style: italic;
}

/* Responsive table */
@media (max-width: 768px) {
  .table-container {
    margin: 1rem -1rem 0;
    border-radius: 0;
  }

  .table th,
  .table td {
    padding: 0.75rem 1rem;
  }

  .table .actions-column {
    width: 80px;
  }

  .table .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}