export const DEFAULT_ROLE_COLORS: Record<string, string> = {
  ADMIN: 'var(--color-danger)',
  HQ_CLEANUP: '#34d399',
  MANAGER: 'var(--color-warning)',
  USER: 'var(--color-accent)',
  VIEWER: 'var(--fg-disabled)',
};

export const CUSTOM_ROLE_COLORS = [
  '#a78bfa',
  '#34d399',
  '#f472b6',
  '#fbbf24',
  '#60a5fa',
  '#2dd4bf',
];

export function getRoleColor(code: string, index: number): string {
  return DEFAULT_ROLE_COLORS[code] || CUSTOM_ROLE_COLORS[index % CUSTOM_ROLE_COLORS.length];
}

export const statusLabels: Record<string, { label: string; color: string; dot: string }> = {
  PENDING: { label: '승인대기', color: 'text-yellow-400', dot: 'bg-yellow-400' },
  ACTIVE: { label: '활성', color: 'text-green-400', dot: 'bg-green-400' },
  LOCKED: { label: '잠김', color: 'text-red-400', dot: 'bg-red-400' },
  INACTIVE: { label: '비활성', color: 'text-fg-disabled', dot: 'bg-fg-disabled' },
  REJECTED: { label: '거절됨', color: 'text-red-300', dot: 'bg-red-300' },
};

// PERM_RESOURCES 제거됨 — GET /api/roles/perm-tree에서 동적 로드 (PermissionsPanel)
