.add-user-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #18181b;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  text-decoration: none;
}

.back-button:hover {
  background: #f4f4f5;
  border: 1px solid #d1d5db;
}

.back-arrow {
  font-size: 18px;
  font-weight: 600;
}

.add-user-content {
  max-width: 800px;
}

.add-user-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(16,30,54,0.04);
  padding: 32px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #18181b;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #18181b;
  background: #fff;
  transition: border 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border: 1.5px solid #18181b;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-select {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #18181b;
  background: #fff;
  transition: border 0.2s;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border: 1.5px solid #18181b;
}

.password-weak {
  border-color: #ef4444;
}

.password-strong {
  border-color: #10b981;
}

.password-strength {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.password-strength.weak {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.password-strength.strong {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.groups-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.groups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-tag {
  background: #f4f4f5;
  color: #18181b;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.remove-group-btn {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.remove-group-btn:hover {
  background: #fee2e2;
}

.add-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.add-group .form-input {
  flex: 1;
}

.add-button {
  padding: 8px 16px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  white-space: nowrap;
}

.add-button:hover {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.custom-attributes-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-attribute-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.custom-attribute-key {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  min-width: 80px;
}

.custom-attribute-value {
  font-size: 14px;
  font-weight: 500;
  color: #18181b;
  flex: 1;
}

.add-custom-attribute {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
}

.add-custom-attribute .form-input {
  flex: 1;
}

.remove-button {
  padding: 4px 8px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-button:hover {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.cancel-button {
  padding: 10px 20px;
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.cancel-button:hover {
  background: #f4f4f5;
  border: 1px solid #d1d5db;
  color: #18181b;
}

.save-button {
  padding: 10px 20px;
  background: #166534;
  color: #fff;
  border: 1px solid #166534;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.save-button:hover:not(:disabled) {
  background: #15803d;
  border: 1px solid #15803d;
}

.save-button:disabled {
  background: #9ca3af;
  border: 1px solid #9ca3af;
  cursor: not-allowed;
} 