/* Mobile-responsive table styles for admin pages */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.users-table table,
.activity-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px; /* Ensures tables don't compress too much */
}

.users-table th,
.users-table td,
.activity-table th,
.activity-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.users-table th,
.activity-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
}

.users-table tr:hover,
.activity-table tr:hover {
  background: #f8f9fa;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .admin-header {
    margin-bottom: 1rem;
  }

  .admin-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  .users-table th,
  .users-table td,
  .activity-table th,
  .activity-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .admin-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .users-table th,
  .users-table td,
  .activity-table th,
  .activity-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }

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