/* ============================================
   USERS CSS
   ============================================ */

.users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.users-table th, .users-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.users-table th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.users-table tbody tr {
  transition: all var(--t-fast);
}

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

/* Modal styles are shared but we make sure they show properly */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay .modal {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  width: 95%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

/* Password Toggle Styles */
.pwd-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.pwd-input-wrapper input {
  width: 100%;
  padding-right: 40px; /* Space for the icon */
  box-sizing: border-box;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
  font-size: 20px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}

.pwd-toggle:hover {
  color: var(--text-primary);
}
