/* ============================================
   quangit.online — Users Module Styles
   ============================================ */

.users-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.users-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.users-table tr:hover td {
  background: var(--bg-hover);
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-info__name {
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.user-info__email {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.role-badge {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.role-badge--admin { background: rgba(108,99,255,0.2); color: var(--primary-400); }
.role-badge--editor { background: rgba(0,217,255,0.15); color: var(--secondary-400); }
.role-badge--viewer { background: rgba(148,163,184,0.15); color: var(--text-tertiary); }
.role-badge--user { background: rgba(34,197,94,0.15); color: var(--success-400); }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
}

.status-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
}

.status-dot--active::before { background: var(--success-500); }
.status-dot--inactive::before { background: var(--danger-500); }

@media (max-width: 768px) {
  .users-table th:nth-child(n+4),
  .users-table td:nth-child(n+4) { display: none; }
}
