// This file centralizes the definition of all available tools, organized by category.
export const categories = [
  {
    name: 'Popular Tools',
    tools: [
      {
        href: '/src/pages/pdf-multi-tool.html',
        name: 'PDF Multi Tool',
        icon: 'pencil-ruler',
        subtitle: 'Merge, Split, Organize, Delete, Rotate, Add Blank Pages, Extract and Duplicate in an unified interface.',
      },
      {
        id: 'merge',
        name: 'Merge PDF',
        icon: 'combine',
        subtitle: 'Combine multiple PDFs into one file.',
      },
      {
        id: 'split',
        name: 'Split PDF',
        icon: 'scissors',
        subtitle: 'Extract a range of pages into a new PDF.',
      },
      {
        id: 'compress',
        name: 'Compress PDF',
        icon: 'zap',
        subtitle: 'Reduce the file size of your PDF.',
      },
      {
        id: 'edit',
        name: 'PDF Editor',
        icon: 'pocket-knife',
        subtitle:
          'Annotate, highlight, redact, comment, add shapes/images, search, and view PDFs',
      },
      {
        id: 'jpg-to-pdf',
        name: 'JPG to PDF',
        icon: 'image-up',
        subtitle: 'Create a PDF from one or more JPG images.',
      },
      {
        id: 'sign-pdf',
        name: 'Sign PDF',
        icon: 'pen-tool',
        subtitle: 'Draw, type, or upload your signature.',
      },
      {
        id: 'cropper',
        name: 'Crop PDF',
        icon: 'crop',
        subtitle: 'Trim the margins of every page in your PDF.',
      },
      {
        id: 'extract-pages',
        name: 'Extract Pages',
        icon: 'ungroup',
        subtitle: 'Save a selection of pages as new files.',
      },
      {
        id: 'duplicate-organize',
        name: 'Duplicate & Organize',
        icon: 'files',
        subtitle: 'Duplicate, reorder, and delete pages.',
      },
      {
        id: 'delete-pages',
        name: 'Delete Pages',
        icon: 'trash-2',
        subtitle: 'Remove specific pages from your document.',
      },
    ],
  },
  {
    name: 'Edit & Annotate',
    tools: [
      {
        id: 'edit',
        name: 'PDF Editor',
        icon: 'pocket-knife',
        subtitle:
          'Annotate, highlight, redact, comment, add shapes/images, search, and view PDFs.',
      },
      {
        // id: 'bookmark-pdf',
        href: '/src/pages/bookmark.html',
        name: 'Edit Bookmarks',
        icon: 'bookmark',
        subtitle: 'Add, edit, import, delete and extract PDF bookmarks.',
      },
      {
        href: '/src/pages/table-of-contents.html',
        name: 'Table of Contents',
        icon: 'list',
        subtitle: 'Generate a table of contents page from PDF bookmarks.',
      },
      {
        id: 'add-page-numbers',
        name: 'Page Numbers',
        icon: 'list-ordered',
        subtitle: 'Insert page numbers into your document.',
      },
      {
        id: 'add-watermark',
        name: 'Add Watermark',
        icon: 'droplets',
        subtitle: 'Stamp text or an image over your PDF pages.',
      },
      {
        id: 'add-header-footer',
        name: 'Header & Footer',
        icon: 'pilcrow',
        subtitle: 'Add text to the top and bottom of pages.',
      },
      {
        id: 'invert-colors',
        name: 'Invert Colors',
        icon: 'contrast',
        subtitle: 'Create a "dark mode" version of your PDF.',
      },
      {
        id: 'change-background-color',
        name: 'Background Color',
        icon: 'palette',
        subtitle: 'Change the background color of your PDF.',
      },
      {
        id: 'change-text-color',
        name: 'Change Text Color',
        icon: 'type',
        subtitle: 'Change the color of text in your PDF.',
      },
      {
        id: 'sign-pdf',
        name: 'Sign PDF',
        icon: 'pen-tool',
        subtitle: 'Draw, type, or upload your signature.',
      },
      {
        href: '/src/pages/add-stamps.html',
        name: 'Add Stamps',
        icon: 'stamp',
        subtitle: 'Add image stamps to your PDF using the annotation toolbar.',
      },
      {
        id: 'remove-annotations',
        name: 'Remove Annotations',
        icon: 'eraser',
        subtitle: 'Strip comments, highlights, and links.',
      },
      {
        id: 'cropper',
        name: 'Crop PDF',
        icon: 'crop',
        subtitle: 'Trim the margins of every page in your PDF.',
      },
      {
        id: 'form-filler',
        name: 'PDF Form Filler',
        icon: 'square-pen',
        subtitle: 'Fill in forms directly in the browser. Also supports XFA forms.',
      },
      {
        id: 'remove-blank-pages',
        name: 'Remove Blank Pages',
        icon: 'file-minus-2',
        subtitle: 'Automatically detect and delete blank pages.',
      },
    ],
  },
  {
    name: 'Convert to PDF',
    tools: [
      {
        id: 'image-to-pdf',
        name: 'Image to PDF',
        icon: 'images',
        subtitle: 'Combine various images into one PDF.',
      },
      {
        id: 'jpg-to-pdf',
        name: 'JPG to PDF',
        icon: 'image-up',
        subtitle: 'Create a PDF from one or more JPG images.',
      },
      {
        id: 'png-to-pdf',
        name: 'PNG to PDF',
        icon: 'image-up',
        subtitle: 'Create a PDF from one or more PNG images.',
      },
      {
        id: 'webp-to-pdf',
        name: 'WebP to PDF',
        icon: 'image-up',
        subtitle: 'Create a PDF from one or more WebP images.',
      },
      {
        id: 'svg-to-pdf',
        name: 'SVG to PDF',
        icon: 'pen-tool',
        subtitle: 'Create a PDF from one or more SVG images.',
      },
      {
        id: 'bmp-to-pdf',
        name: 'BMP to PDF',
        icon: 'image',
        subtitle: 'Create a PDF from one or more BMP images.',
      },
      {
        id: 'heic-to-pdf',
        name: 'HEIC to PDF',
        icon: 'smartphone',
        subtitle: 'Create a PDF from one or more HEIC images.',
      },
      {
        id: 'tiff-to-pdf',
        name: 'TIFF to PDF',
        icon: 'layers',
        subtitle: 'Create a PDF from one or more TIFF images.',
      },
      {
        id: 'txt-to-pdf',
        name: 'Text to PDF',
        icon: 'file-pen',
        subtitle: 'Convert a plain text file into a PDF.',
      },
      {
        href: '/src/pages/json-to-pdf.html',
        name: 'JSON to PDF',
        icon: 'file-code',
        subtitle: 'Convert JSON files to PDF format.',
      },
      // { id: 'md-to-pdf', name: 'Markdown to PDF', icon: 'file-text', subtitle: 'Convert a Markdown file into a PDF.' },
      // { id: 'scan-to-pdf', name: 'Scan to PDF', icon: 'camera', subtitle: 'Use your camera to create a scanned PDF.' },
      // { id: 'word-to-pdf', name: 'Word to PDF', icon: 'file-text', subtitle: 'Convert .docx documents to PDF.' },
    ],
  },
  {
    name: 'Convert from PDF',
    tools: [
      {
        id: 'pdf-to-jpg',
        name: 'PDF to JPG',
        icon: 'file-image',
        subtitle: 'Convert each PDF page into a JPG image.',
      },
      {
        id: 'pdf-to-png',
        name: 'PDF to PNG',
        icon: 'file-image',
        subtitle: 'Convert each PDF page into a PNG image.',
      },
      {
        id: 'pdf-to-webp',
        name: 'PDF to WebP',
        icon: 'file-image',
        subtitle: 'Convert each PDF page into a WebP image.',
      },
      {
        id: 'pdf-to-bmp',
        name: 'PDF to BMP',
        icon: 'file-image',
        subtitle: 'Convert each PDF page into a BMP image.',
      },
      {
        id: 'pdf-to-tiff',
        name: 'PDF to TIFF',
        icon: 'file-image',
        subtitle: 'Convert each PDF page into a TIFF image.',
      },
      {
        id: 'pdf-to-greyscale',
        name: 'PDF to Greyscale',
        icon: 'palette',
        subtitle: 'Convert all colors to black and white.',
      },
      {
        href: '/src/pages/pdf-to-json.html',
        name: 'PDF to JSON',
        icon: 'file-code',
        subtitle: 'Convert PDF files to JSON format.',
      },
      // { id: 'pdf-to-markdown', name: 'PDF to Markdown', icon: 'file-pen', subtitle: 'Extract text into a Markdown file.' },
    ],
  },
  {
    name: 'Organize & Manage',
    tools: [
      {
        id: 'ocr-pdf',
        name: 'OCR PDF',
        icon: 'scan-text',
        subtitle: 'Make a PDF searchable and copyable.',
      },
      {
        id: 'merge',
        name: 'Merge PDF',
        icon: 'combine',
        subtitle: 'Combine multiple PDFs into one file.',
      },
      {
        id: 'alternate-merge',
        name: 'Alternate & Mix Pages',
        icon: 'shuffle',
        subtitle: 'Combine PDFs by alternating pages from each.',
      },
      {
        id: 'organize',
        name: 'Organize PDF',
        icon: 'grip',
        subtitle: 'Reorder pages by dragging and dropping.',
      },
      {
        id: 'duplicate-organize',
        name: 'Duplicate & Organize',
        icon: 'files',
        subtitle: 'Duplicate, reorder, and delete pages.',
      },
      {
        id: 'add-attachments',
        name: 'Add Attachments',
        icon: 'paperclip',
        subtitle: 'Embed one or more files into your PDF.',
      },
      {
        id: 'extract-attachments',
        name: 'Extract Attachments',
        icon: 'download',
        subtitle: 'Extract all embedded files from PDF(s) as a ZIP.',
      },
      {
        id: 'edit-attachments',
        name: 'Edit Attachments',
        icon: 'file-edit',
        subtitle: 'View or remove attachments in your PDF.',
      },
      {
        href: '/src/pages/pdf-multi-tool.html',
        name: 'PDF Multi Tool',
        icon: 'pencil-ruler',
        subtitle: 'Full-featured PDF editor with page management.',
      },
      {
        id: 'split',
        name: 'Split PDF',
        icon: 'scissors',
        subtitle: 'Extract a range of pages into a new PDF.',
      },
      {
        id: 'split-in-half',
        name: 'Divide Pages',
        icon: 'table-columns-split',
        subtitle: 'Divide pages horizontally or vertically.',
      },
      {
        id: 'extract-pages',
        name: 'Extract Pages',
        icon: 'ungroup',
        subtitle: 'Save a selection of pages as new files.',
      },
      {
        id: 'delete-pages',
        name: 'Delete Pages',
        icon: 'trash-2',
        subtitle: 'Remove specific pages from your document.',
      },
      {
        id: 'add-blank-page',
        name: 'Add Blank Page',
        icon: 'file-plus-2',
        subtitle: 'Insert an empty page anywhere in your PDF.',
      },
      {
        id: 'reverse-pages',
        name: 'Reverse Pages',
        icon: 'arrow-down-z-a',
        subtitle: 'Flip the order of all pages in your document.',
      },
      {
        id: 'rotate',
        name: 'Rotate PDF',
        icon: 'rotate-cw',
        subtitle: 'Turn pages in 90-degree increments.',
      },
      {
        id: 'n-up',
        name: 'N-Up PDF',
        icon: 'layout-grid',
        subtitle: 'Arrange multiple pages onto a single sheet.',
      },
      {
        id: 'combine-single-page',
        name: 'Combine to Single Page',
        icon: 'unfold-vertical',
        subtitle: 'Stitch all pages into one continuous scroll.',
      },
      {
        id: 'view-metadata',
        name: 'View Metadata',
        icon: 'info',
        subtitle: 'Inspect the hidden properties of your PDF.',
      },
      {
        id: 'edit-metadata',
        name: 'Edit Metadata',
        icon: 'file-cog',
        subtitle: 'Change the author, title, and other properties.',
      },
      {
        id: 'pdf-to-zip',
        name: 'PDFs to ZIP',
        icon: 'stretch-horizontal',
        subtitle: 'Package multiple PDF files into a ZIP archive.',
      },
      {
        id: 'compare-pdfs',
        name: 'Compare PDFs',
        icon: 'git-compare',
        subtitle: 'Compare two PDFs side by side.',
      },
      {
        id: 'posterize',
        name: 'Posterize PDF',
        icon: 'notepad-text-dashed',
        subtitle: 'Split a large page into multiple smaller pages.',
      },
    ],
  },
  {
    name: 'Optimize & Repair',
    tools: [
      {
        id: 'compress',
        name: 'Compress PDF',
        icon: 'zap',
        subtitle: 'Reduce the file size of your PDF.',
      },
      {
        id: 'fix-dimensions',
        name: 'Fix Page Size',
        icon: 'ruler-dimension-line',
        subtitle: 'Standardize all pages to a uniform size.',
      },
      {
        id: 'linearize',
        name: 'Linearize PDF',
        icon: 'gauge',
        subtitle: 'Optimize PDF for fast web viewing.',
      },
      {
        id: 'page-dimensions',
        name: 'Page Dimensions',
        icon: 'ruler',
        subtitle: 'Analyze page size, orientation, and units.',
      },
      {
        id: 'remove-restrictions',
        name: 'Remove Restrictions',
        icon: 'unlink',
        subtitle:
          'Remove password protection and security restrictions associated with digitally signed PDF files.',
      },
    ],
  },
  {
    name: 'Secure PDF',
    tools: [
      {
        id: 'encrypt',
        name: 'Encrypt PDF',
        icon: 'lock',
        subtitle: 'Lock your PDF by adding a password.',
      },
      {
        id: 'sanitize-pdf',
        name: 'Sanitize PDF',
        icon: 'brush-cleaning',
        subtitle: 'Remove metadata, annotations, scripts, and more.',
      },
      {
        id: 'decrypt',
        name: 'Decrypt PDF',
        icon: 'unlock',
        subtitle: 'Unlock PDF by removing password protection.',
      },
      {
        id: 'flatten',
        name: 'Flatten PDF',
        icon: 'layers',
        subtitle: 'Make form fields and annotations non-editable.',
      },
      {
        id: 'remove-metadata',
        name: 'Remove Metadata',
        icon: 'file-x',
        subtitle: 'Strip hidden data from your PDF.',
      },
      {
        id: 'change-permissions',
        name: 'Change Permissions',
        icon: 'shield-check',
        subtitle: 'Set or change user permissions on a PDF.',
      },
    ],
  },
];
