import {
  ArrowLeftRightIcon,
  BanknoteIcon,
  Building2Icon,
  CalendarClockIcon,
  ChartColumnIcon,
  ClipboardListIcon,
  ClipboardPlusIcon,
  HandCoinsIcon,
  HistoryIcon,
  LandmarkIcon,
  LayoutDashboardIcon,
  type LucideIcon,
  PackagePlusIcon,
  PillIcon,
  RotateCcwIcon,
  ScaleIcon,
  SettingsIcon,
  ShieldAlertIcon,
  ShoppingCartIcon,
  TrendingUpIcon,
  TruckIcon,
  UserCogIcon,
  UsersIcon,
  WalletIcon,
  WarehouseIcon,
} from "lucide-react";

export type NavItem = { title: string; icon: LucideIcon };
export type NavGroup = { label: string; items: NavItem[] };

/** Pharmacy app navigation: 9 groups, 24 destinations. Group labels render UPPERCASE via SidebarGroupLabel. */
export const PHARMACY_NAV: NavGroup[] = [
  { label: "Overview", items: [{ title: "Dashboard", icon: LayoutDashboardIcon }] },
  {
    label: "Operations",
    items: [
      { title: "Sales & POS", icon: ShoppingCartIcon },
      { title: "Returns & Refunds", icon: RotateCcwIcon },
      { title: "Prescriptions", icon: ClipboardPlusIcon },
    ],
  },
  {
    label: "Inventory",
    items: [
      { title: "Medicines", icon: PillIcon },
      { title: "Stock Management", icon: WarehouseIcon },
      { title: "Batch & Expiry", icon: CalendarClockIcon },
      { title: "Purchases", icon: PackagePlusIcon },
      { title: "Suppliers", icon: TruckIcon },
    ],
  },
  {
    label: "Customers",
    items: [
      { title: "Customers", icon: UsersIcon },
      { title: "Loyalty & Credits", icon: HandCoinsIcon },
    ],
  },
  {
    label: "Finance",
    items: [
      { title: "Accounting", icon: LandmarkIcon },
      { title: "Expenses", icon: WalletIcon },
      { title: "Receivables & Payables", icon: ArrowLeftRightIcon },
    ],
  },
  {
    label: "Management",
    items: [
      { title: "Branches", icon: Building2Icon },
      { title: "Staff & Roles", icon: UserCogIcon },
    ],
  },
  {
    label: "Reports",
    items: [
      { title: "Business Analytics", icon: ChartColumnIcon },
      { title: "Sales Reports", icon: TrendingUpIcon },
      { title: "Inventory Reports", icon: ClipboardListIcon },
      { title: "Financial Reports", icon: BanknoteIcon },
    ],
  },
  {
    label: "Compliance",
    items: [
      { title: "Regulatory", icon: ScaleIcon },
      { title: "Controlled Substances", icon: ShieldAlertIcon },
    ],
  },
  {
    label: "System",
    items: [
      { title: "Settings", icon: SettingsIcon },
      { title: "Audit Logs", icon: HistoryIcon },
    ],
  },
];
