// Expanded Project Types
export const PROJECT_TYPES = {
  // Business & Enterprise
  HEALTHCARE: 'healthcare',
  ECOMMERCE: 'ecommerce',
  BUSINESS_CRM: 'business_crm',
  PROJECT_MANAGEMENT: 'project_management',
  INVENTORY_MANAGEMENT: 'inventory_management',
  HR_MANAGEMENT: 'hr_management',
  ACCOUNTING_FINANCE: 'accounting_finance',
  
  // Technology & Analytics
  ANALYTICS_DASHBOARD: 'analytics_dashboard',
  DATA_VISUALIZATION: 'data_visualization',
  API_MANAGEMENT: 'api_management',
  MONITORING_TOOLS: 'monitoring_tools',
  CYBERSECURITY: 'cybersecurity',
  IOT_PLATFORM: 'iot_platform',
  
  // Social & Communication
  SOCIAL_PLATFORM: 'social_platform',
  MESSAGING_CHAT: 'messaging_chat',
  VIDEO_CONFERENCING: 'video_conferencing',
  COMMUNITY_FORUM: 'community_forum',
  COLLABORATION_TOOLS: 'collaboration_tools',
  
  // Education & Learning
  EDUCATION_LMS: 'education_lms',
  ONLINE_COURSES: 'online_courses',
  TRAINING_PLATFORM: 'training_platform',
  CERTIFICATION_SYSTEM: 'certification_system',
  
  // Media & Content
  CONTENT_MANAGEMENT: 'content_management',
  BLOG_PLATFORM: 'blog_platform',
  NEWS_PORTAL: 'news_portal',
  VIDEO_STREAMING: 'video_streaming',
  PODCAST_PLATFORM: 'podcast_platform',
  PHOTO_GALLERY: 'photo_gallery',
  
  // Entertainment & Gaming
  GAMING_PLATFORM: 'gaming_platform',
  SPORTS_MANAGEMENT: 'sports_management',
  EVENT_MANAGEMENT: 'event_management',
  BOOKING_RESERVATION: 'booking_reservation',
  
  // Real Estate & Property
  REAL_ESTATE: 'real_estate',
  PROPERTY_MANAGEMENT: 'property_management',
  RENTAL_PLATFORM: 'rental_platform',
  
  // Transportation & Logistics
  LOGISTICS_TRACKING: 'logistics_tracking',
  DELIVERY_MANAGEMENT: 'delivery_management',
  FLEET_MANAGEMENT: 'fleet_management',
  RIDE_SHARING: 'ride_sharing',
  
  // Food & Restaurant
  RESTAURANT_POS: 'restaurant_pos',
  FOOD_DELIVERY: 'food_delivery',
  RECIPE_MANAGEMENT: 'recipe_management',
  
  // Fitness & Wellness
  FITNESS_TRACKING: 'fitness_tracking',
  WELLNESS_PLATFORM: 'wellness_platform',
  NUTRITION_TRACKER: 'nutrition_tracker',
  
  // Financial Services
  FINTECH_PLATFORM: 'fintech_platform',
  CRYPTO_EXCHANGE: 'crypto_exchange',
  INVESTMENT_TRACKER: 'investment_tracker',
  EXPENSE_TRACKER: 'expense_tracker',
  
  // Manufacturing & Industrial
  MANUFACTURING_ERP: 'manufacturing_erp',
  QUALITY_CONTROL: 'quality_control',
  SUPPLY_CHAIN: 'supply_chain',
  
  // Agriculture & Environment
  AGRICULTURE_MANAGEMENT: 'agriculture_management',
  ENVIRONMENTAL_MONITORING: 'environmental_monitoring',
  
  // Custom Category
  CUSTOM_PROJECT: 'custom_project'
};

export const FEATURE_TYPES = {
  ESSENTIAL: 'essential',
  SUGGESTED: 'suggested', 
  CUSTOM: 'custom'
};

export const COMPLEXITY_LEVELS = {
  LOW: 'low',
  MEDIUM: 'medium',
  HIGH: 'high'
};

// Organized project categories
export const PROJECT_CATEGORIES = {
  'Business & Enterprise': [
    {
      type: PROJECT_TYPES.HEALTHCARE,
      title: 'Healthcare Platform',
      description: 'Patient management, appointments, medical records, telehealth',
      icon: '🏥',
      gradient: 'from-blue-50 to-blue-100',
      border: 'border-blue-200',
      text: 'text-blue-900',
      subtext: 'text-blue-700',
      features: ['Patient Management', 'Appointment Scheduling', 'Medical Records', 'Telehealth Integration']
    },
    {
      type: PROJECT_TYPES.ECOMMERCE,
      title: 'E-commerce Platform',
      description: 'Online store, payments, inventory, customer management',
      icon: '🛒',
      gradient: 'from-green-50 to-green-100',
      border: 'border-green-200',
      text: 'text-green-900',
      subtext: 'text-green-700',
      features: ['Product Catalog', 'Payment Processing', 'Inventory Management', 'Order Tracking']
    },
    {
      type: PROJECT_TYPES.BUSINESS_CRM,
      title: 'CRM System',
      description: 'Customer relationship management, sales pipeline, lead tracking',
      icon: '👥',
      gradient: 'from-purple-50 to-purple-100',
      border: 'border-purple-200',
      text: 'text-purple-900',
      subtext: 'text-purple-700',
      features: ['Lead Management', 'Sales Pipeline', 'Customer Analytics', 'Communication Tools']
    },
    {
      type: PROJECT_TYPES.PROJECT_MANAGEMENT,
      title: 'Project Management',
      description: 'Task tracking, team collaboration, project planning, time management',
      icon: '📋',
      gradient: 'from-indigo-50 to-indigo-100',
      border: 'border-indigo-200',
      text: 'text-indigo-900',
      subtext: 'text-indigo-700',
      features: ['Task Management', 'Team Collaboration', 'Time Tracking', 'Reporting']
    },
    {
      type: PROJECT_TYPES.HR_MANAGEMENT,
      title: 'HR Management System',
      description: 'Employee management, payroll, attendance, performance tracking',
      icon: '👔',
      gradient: 'from-pink-50 to-pink-100',
      border: 'border-pink-200',
      text: 'text-pink-900',
      subtext: 'text-pink-700',
      features: ['Employee Records', 'Payroll Management', 'Attendance Tracking', 'Performance Reviews']
    },
    {
      type: PROJECT_TYPES.INVENTORY_MANAGEMENT,
      title: 'Inventory Management',
      description: 'Stock tracking, warehouse management, supply chain optimization',
      icon: '📦',
      gradient: 'from-yellow-50 to-yellow-100',
      border: 'border-yellow-200',
      text: 'text-yellow-900',
      subtext: 'text-yellow-700',
      features: ['Stock Tracking', 'Warehouse Management', 'Supplier Management', 'Reorder Alerts']
    }
  ],
  
  'Technology & Analytics': [
    {
      type: PROJECT_TYPES.ANALYTICS_DASHBOARD,
      title: 'Analytics Dashboard',
      description: 'Data visualization, business intelligence, custom reports',
      icon: '📊',
      gradient: 'from-blue-50 to-blue-100',
      border: 'border-blue-200',
      text: 'text-blue-900',
      subtext: 'text-blue-700',
      features: ['Data Visualization', 'Custom Reports', 'Real-time Metrics', 'Export Tools']
    },
    {
      type: PROJECT_TYPES.API_MANAGEMENT,
      title: 'API Management Platform',
      description: 'API gateway, documentation, monitoring, rate limiting',
      icon: '🔗',
      gradient: 'from-gray-50 to-gray-100',
      border: 'border-gray-200',
      text: 'text-gray-900',
      subtext: 'text-gray-700',
      features: ['API Gateway', 'Documentation', 'Rate Limiting', 'Analytics']
    },
    {
      type: PROJECT_TYPES.MONITORING_TOOLS,
      title: 'Monitoring & Alerting',
      description: 'System monitoring, alerts, performance tracking, uptime monitoring',
      icon: '📡',
      gradient: 'from-red-50 to-red-100',
      border: 'border-red-200',
      text: 'text-red-900',
      subtext: 'text-red-700',
      features: ['System Monitoring', 'Alert Management', 'Performance Metrics', 'Uptime Tracking']
    },
    {
      type: PROJECT_TYPES.IOT_PLATFORM,
      title: 'IoT Platform',
      description: 'Device management, sensor data, automation, remote monitoring',
      icon: '🌐',
      gradient: 'from-teal-50 to-teal-100',
      border: 'border-teal-200',
      text: 'text-teal-900',
      subtext: 'text-teal-700',
      features: ['Device Management', 'Sensor Data Collection', 'Automation Rules', 'Remote Control']
    }
  ],
  
  'Social & Communication': [
    {
      type: PROJECT_TYPES.SOCIAL_PLATFORM,
      title: 'Social Media Platform',
      description: 'User profiles, feeds, messaging, social interactions',
      icon: '💬',
      gradient: 'from-pink-50 to-pink-100',
      border: 'border-pink-200',
      text: 'text-pink-900',
      subtext: 'text-pink-700',
      features: ['User Profiles', 'Social Feeds', 'Real-time Chat', 'Friend System']
    },
    {
      type: PROJECT_TYPES.VIDEO_CONFERENCING,
      title: 'Video Conferencing',
      description: 'Video calls, screen sharing, meeting management, recording',
      icon: '📹',
      gradient: 'from-blue-50 to-blue-100',
      border: 'border-blue-200',
      text: 'text-blue-900',
      subtext: 'text-blue-700',
      features: ['Video Calls', 'Screen Sharing', 'Meeting Rooms', 'Recording']
    },
    {
      type: PROJECT_TYPES.COMMUNITY_FORUM,
      title: 'Community Forum',
      description: 'Discussion boards, Q&A, user moderation, reputation system',
      icon: '🗣️',
      gradient: 'from-green-50 to-green-100',
      border: 'border-green-200',
      text: 'text-green-900',
      subtext: 'text-green-700',
      features: ['Discussion Boards', 'Q&A System', 'User Moderation', 'Reputation System']
    }
  ],
  
  'Education & Learning': [
    {
      type: PROJECT_TYPES.EDUCATION_LMS,
      title: 'Learning Management System',
      description: 'Course management, student tracking, assignments, grading',
      icon: '🎓',
      gradient: 'from-indigo-50 to-indigo-100',
      border: 'border-indigo-200',
      text: 'text-indigo-900',
      subtext: 'text-indigo-700',
      features: ['Course Management', 'Student Portal', 'Assignment System', 'Grading Tools']
    },
    {
      type: PROJECT_TYPES.ONLINE_COURSES,
      title: 'Online Course Platform',
      description: 'Video lessons, quizzes, certificates, progress tracking',
      icon: '📚',
      gradient: 'from-purple-50 to-purple-100',
      border: 'border-purple-200',
      text: 'text-purple-900',
      subtext: 'text-purple-700',
      features: ['Video Lessons', 'Interactive Quizzes', 'Certificates', 'Progress Tracking']
    }
  ],
  
  'Financial Services': [
    {
      type: PROJECT_TYPES.FINTECH_PLATFORM,
      title: 'Fintech Platform',
      description: 'Digital banking, payments, lending, financial services',
      icon: '💳',
      gradient: 'from-green-50 to-green-100',
      border: 'border-green-200',
      text: 'text-green-900',
      subtext: 'text-green-700',
      features: ['Digital Payments', 'Account Management', 'Transaction History', 'Security Features']
    },
    {
      type: PROJECT_TYPES.INVESTMENT_TRACKER,
      title: 'Investment Tracker',
      description: 'Portfolio management, stock tracking, financial analytics',
      icon: '📈',
      gradient: 'from-blue-50 to-blue-100',
      border: 'border-blue-200',
      text: 'text-blue-900',
      subtext: 'text-blue-700',
      features: ['Portfolio Tracking', 'Stock Analysis', 'Financial Reports', 'Investment Alerts']
    }
  ],
  
  'Food & Restaurant': [
    {
      type: PROJECT_TYPES.RESTAURANT_POS,
      title: 'Restaurant POS System',
      description: 'Point of sale, order management, inventory, staff management',
      icon: '🍽️',
      gradient: 'from-orange-50 to-orange-100',
      border: 'border-orange-200',
      text: 'text-orange-900',
      subtext: 'text-orange-700',
      features: ['Order Management', 'Payment Processing', 'Inventory Tracking', 'Staff Management']
    },
    {
      type: PROJECT_TYPES.FOOD_DELIVERY,
      title: 'Food Delivery Platform',
      description: 'Restaurant listings, order tracking, delivery management',
      icon: '🚚',
      gradient: 'from-red-50 to-red-100',
      border: 'border-red-200',
      text: 'text-red-900',
      subtext: 'text-red-700',
      features: ['Restaurant Directory', 'Order Tracking', 'Delivery Management', 'Payment Integration']
    }
  ],
  
  'Custom & Others': [
    {
      type: PROJECT_TYPES.CUSTOM_PROJECT,
      title: 'Custom Project',
      description: 'Describe your unique project requirements and let AI help design it',
      icon: '🎨',
      gradient: 'from-gray-50 to-gray-100',
      border: 'border-gray-200',
      text: 'text-gray-900',
      subtext: 'text-gray-700',
      features: ['Custom Requirements', 'AI Analysis', 'Tailored Architecture', 'Flexible Design']
    }
  ]
};

// Default features for each project type - we'll expand this as needed
export const DEFAULT_FEATURES = {
  [PROJECT_TYPES.HEALTHCARE]: [
    {
      id: 'user_auth',
      name: 'User Authentication',
      description: 'Secure login and registration for caregivers and admins',
      type: FEATURE_TYPES.ESSENTIAL,
      complexity: COMPLEXITY_LEVELS.MEDIUM,
      order: 1
    },
    {
      id: 'patient_management',
      name: 'Patient Management',
      description: 'Create, edit, and manage patient profiles with medical history',
      type: FEATURE_TYPES.ESSENTIAL,
      complexity: COMPLEXITY_LEVELS.HIGH,
      order: 2
    },
    {
      id: 'appointment_scheduling',
      name: 'Appointment Scheduling',
      description: 'Schedule and manage patient appointments',
      type: FEATURE_TYPES.ESSENTIAL,
      complexity: COMPLEXITY_LEVELS.MEDIUM,
      order: 3
    },
    {
      id: 'call_scheduling',
      name: 'Automated Call Scheduling',
      description: 'Schedule automated calls to patients via Retell AI',
      type: FEATURE_TYPES.SUGGESTED,
      complexity: COMPLEXITY_LEVELS.HIGH,
      order: 4
    },
    {
      id: 'admin_dashboard',
      name: 'Admin Dashboard',
      description: 'Analytics and usage tracking for administrators',
      type: FEATURE_TYPES.SUGGESTED,
      complexity: COMPLEXITY_LEVELS.MEDIUM,
      order: 5
    }
  ],
  
  [PROJECT_TYPES.ECOMMERCE]: [
    {
      id: 'user_auth',
      name: 'User Authentication',
      description: 'Customer registration and login system',
      type: FEATURE_TYPES.ESSENTIAL,
      complexity: COMPLEXITY_LEVELS.MEDIUM,
      order: 1
    },
    {
      id: 'product_catalog',
      name: 'Product Catalog',
      description: 'Browse and search products with categories',
      type: FEATURE_TYPES.ESSENTIAL,
      complexity: COMPLEXITY_LEVELS.MEDIUM,
      order: 2
    },
    {
      id: 'shopping_cart',
      name: 'Shopping Cart',
      description: 'Add products to cart and manage quantities',
      type: FEATURE_TYPES.ESSENTIAL,
      complexity: COMPLEXITY_LEVELS.MEDIUM,
      order: 3
    },
    {
      id: 'payment_processing',
      name: 'Payment Processing',
      description: 'Secure payment integration with Stripe/PayPal',
      type: FEATURE_TYPES.ESSENTIAL,
      complexity: COMPLEXITY_LEVELS.HIGH,
      order: 4
    },
    {
      id: 'inventory_management',
      name: 'Inventory Management',
      description: 'Track stock levels and manage inventory',
      type: FEATURE_TYPES.SUGGESTED,
      complexity: COMPLEXITY_LEVELS.HIGH,
      order: 5
    }
  ],
  
  // Add more default features for other project types...
  [PROJECT_TYPES.CUSTOM_PROJECT]: []
};
