.user-mgmt-container {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card-premium {
  background: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-premium:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.stat-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 70%);
  pointer-events: none;
}

.user-identity-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.identity-table-premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.identity-table-premium th {
  padding: 16px;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 800;
}

.identity-row {
  background: rgba(0, 0, 0, 0.01);
  transition: all 0.2s;
}

.identity-row:hover {
  background: rgba(0, 0, 0, 0.03);
  transform: scale(1.002);
}

.identity-row td {
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.identity-row td:first-child {
  border-left: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 12px 0 0 12px;
}

.identity-row td:last-child {
  border-right: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 0 12px 12px 0;
}

/* Custom Scrollbar for the table container */
.table-scroll-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.3);
}

.pulse-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  position: relative;
}

.pulse-active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.role-badge {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.role-admin {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-super {
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.role-cce {
  background: rgba(168, 85, 247, 0.1);
  color: #A855F7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
