/* Table Components - Design Guidelines Compliant */

.waitlist-table,
.users-table,
.admin-table {
  background: var(--dark-card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px var(--dark-shadow);
  border: 1.35px solid;
  border-image-source: linear-gradient(155deg, #FFFFFF 2%, rgba(255, 255, 255, 0.0001) 40%, rgba(255, 255, 255, 0.0001) 55%, rgba(255, 255, 255, 0.4) 95%);
}

.users-table {
  overflow-x: auto;
}

.waitlist-table table,
.users-table table,
.admin-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Lato', sans-serif;
}

.users-table table {
  min-width: 800px;
}

.waitlist-table th,
.waitlist-table td,
.users-table th,
.users-table td,
.admin-table th,
.admin-table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--dark-border);
  color: var(--dark-text-primary);
}

.waitlist-table th,
.users-table th,
.admin-table th {
  background: var(--dark-hover);
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw + 0.5rem, 1rem);
  color: var(--dark-text-primary);
}

.waitlist-table td,
.users-table td,
.admin-table td {
  font-size: clamp(0.875rem, 1.5vw + 0.5rem, 0.9rem);
  color: var(--dark-text-primary);
}

/* User table specific styles */
.current-user {
  background: rgba(154, 215, 243, 0.1);
}

.current-user-badge {
  background: var(--brand-2);
  color: #2D3748;
  padding: 4px var(--spacing-xs);
  border-radius: var(--border-radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.7rem, 1.5vw + 0.3rem, 0.75rem);
  font-weight: 500;
  margin-left: var(--spacing-xs);
}

.role-badge {
  padding: 4px var(--spacing-sm);
  border-radius: var(--border-radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.8rem, 1.5vw + 0.3rem, 0.875rem);
  font-weight: 600;
}

.role-badge.admin {
  background: var(--brand-1);
  color: #2D3748;
}

.role-badge.user {
  background: var(--dark-hover);
  color: var(--dark-text-secondary);
}

.actions {
  white-space: nowrap;
  min-width: 200px;
}

.actions form {
  display: inline-block;
  margin-right: var(--spacing-xs);
}

.no-actions {
  color: var(--dark-text-secondary);
  font-style: italic;
  font-family: 'Lato', sans-serif;
}

/* Mobile table responsiveness */
@media (max-width: 768px) {
  .waitlist-table,
  .users-table,
  .admin-table {
    margin: 0 calc(-1 * var(--spacing-sm));
    border-radius: 0;
  }
  
  .waitlist-table th,
  .waitlist-table td,
  .users-table th,
  .users-table td,
  .admin-table th,
  .admin-table td {
    padding: var(--spacing-sm);
  }
  
  .users-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .actions {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .waitlist-table th,
  .waitlist-table td,
  .users-table th,
  .users-table td,
  .admin-table th,
  .admin-table td {
    padding: var(--spacing-xs);
  }
  
  .actions {
    min-width: 140px;
  }
  
  .actions form {
    margin-right: 4px;
  }
}