/**
 * Dashboard Account Management - English Translations
 *
 * Comprehensive translations for user account settings including:
 * - Dropdown menu navigation
 * - Modal tabs and sections
 * - Profile management
 * - Security settings
 * - Billing information
 * - User preferences
 * - Help and support
 * - Data management and account deletion
 */

export const dashboardAccountEn = {
  // Dropdown Menu Items
  dropdown: {
    myAccount: "My Account",
    billing: "Billing",
    help: "Help & Support",
    logout: "Logout",
    viewProfile: "View Profile",
    settings: "Settings",
  },

  // Modal Tabs
  tabs: {
    profile: "Profile",
    security: "Security",
    billing: "Billing",
    preferences: "Preferences",
    help: "Help",
    advanced: "Advanced",
  },

  // Profile Section
  profile: {
    title: "Profile Information",
    subtitle: "Update your personal information and contact details",

    fields: {
      fullName: {
        label: "Full Name",
        placeholder: "Enter your full name",
        description: "Your name as it appears on official documents",
      },
      email: {
        label: "Email Address",
        placeholder: "your.email@example.com",
        description: "Primary email for account notifications",
        verified: "Verified",
        unverified: "Unverified",
        verifyButton: "Verify Email",
      },
      phone: {
        label: "Phone Number",
        placeholder: "+966 XX XXX XXXX",
        description: "Used for important account notifications",
        verified: "Verified",
        unverified: "Unverified",
        verifyButton: "Verify Phone",
      },
      company: {
        label: "Company Name",
        placeholder: "Your company name",
        description: "The name of your business or organization",
      },
      industry: {
        label: "Industry",
        placeholder: "Select your industry",
        description: "Your primary business sector",
        options: {
          healthcare: "Healthcare",
          beautyWellness: "Beauty & Wellness",
          hospitality: "Hotels & Accommodation",
          foodBeverage: "Food & Beverage",
          events: "Events & Venues",
          retail: "Retail",
          education: "Education",
          professional: "Professional Services",
          other: "Other",
        },
      },
      country: {
        label: "Country",
        placeholder: "Select your country",
        description: "Your business location",
      },
      city: {
        label: "City",
        placeholder: "Select your city",
        description: "Primary business location",
      },
      avatar: {
        label: "Profile Picture",
        upload: "Upload Photo",
        change: "Change Photo",
        remove: "Remove Photo",
        description: "Recommended: Square image, at least 400x400px",
        maxSize: "Maximum file size: 5MB",
        formats: "Accepted formats: JPG, PNG, WebP",
      },
    },

    actions: {
      save: "Save Changes",
      cancel: "Cancel",
      saving: "Saving...",
      saved: "Saved",
    },

    messages: {
      success: "Profile updated successfully",
      error: "Failed to update profile. Please try again.",
      emailSent: "Verification email sent. Please check your inbox.",
      smsSent: "Verification code sent to your phone.",
      invalidEmail: "Please enter a valid email address",
      invalidPhone: "Please enter a valid phone number",
      required: "This field is required",
    },
  },

  // Security Section
  security: {
    title: "Security Settings",
    subtitle: "Manage your password, sessions, and security preferences",

    password: {
      title: "Change Password",
      subtitle: "Update your password regularly to keep your account secure",

      fields: {
        current: {
          label: "Current Password",
          placeholder: "Enter current password",
        },
        new: {
          label: "New Password",
          placeholder: "Enter new password",
        },
        confirm: {
          label: "Confirm New Password",
          placeholder: "Re-enter new password",
        },
      },

      requirements: {
        title: "Password Requirements:",
        minLength: "At least 12 characters long",
        uppercase: "Contains uppercase letter (A-Z)",
        lowercase: "Contains lowercase letter (a-z)",
        number: "Contains number (0-9)",
        special: "Contains special character (!@#$%^&*)",
        noCommon: "Not a commonly used password",
        strength: {
          weak: "Weak",
          fair: "Fair",
          good: "Good",
          strong: "Strong",
        },
      },

      actions: {
        change: "Change Password",
        changing: "Changing...",
        forgot: "Forgot Password?",
      },

      messages: {
        success: "Password changed successfully",
        error: "Failed to change password",
        mismatch: "Passwords do not match",
        incorrect: "Current password is incorrect",
        tooWeak: "New password does not meet requirements",
        sameAsOld: "New password must be different from current password",
      },
    },

    sessions: {
      title: "Active Sessions",
      subtitle:
        "Manage devices and locations where you are currently logged in",

      current: "Current Session",
      location: "Location",
      device: "Device",
      browser: "Browser",
      lastActive: "Last Active",
      ipAddress: "IP Address",

      actions: {
        revoke: "Sign Out",
        revokeAll: "Sign Out All Other Sessions",
        revoking: "Signing out...",
      },

      messages: {
        success: "Session terminated successfully",
        allSuccess: "All other sessions signed out",
        error: "Failed to terminate session",
        confirmRevoke: "Are you sure you want to sign out this device?",
        confirmRevokeAll:
          "Are you sure you want to sign out all other devices?",
      },

      empty: "No other active sessions",
    },

    events: {
      title: "Security Events",
      subtitle: "Recent security-related activities on your account",

      types: {
        login: "Login",
        logout: "Logout",
        passwordChange: "Password Changed",
        passwordReset: "Password Reset",
        emailChange: "Email Changed",
        phoneChange: "Phone Changed",
        twoFactorEnabled: "Two-Factor Enabled",
        twoFactorDisabled: "Two-Factor Disabled",
        failedLogin: "Failed Login Attempt",
        sessionRevoked: "Session Terminated",
      },

      timestamp: "Time",
      device: "Device",
      location: "Location",
      ipAddress: "IP Address",
      status: {
        success: "Success",
        failed: "Failed",
        suspicious: "Suspicious",
      },

      viewAll: "View All Events",
      download: "Download Report",
      empty: "No security events recorded",
    },

    twoFactor: {
      title: "Two-Factor Authentication",
      subtitle: "Add an extra layer of security to your account",

      status: {
        enabled: "Enabled",
        disabled: "Disabled",
      },

      description:
        "Two-factor authentication adds an additional layer of security to your account by requiring more than just a password to sign in.",

      actions: {
        enable: "Enable Two-Factor",
        disable: "Disable Two-Factor",
        configure: "Configure",
      },

      methods: {
        app: "Authenticator App",
        sms: "SMS",
        email: "Email",
      },

      messages: {
        enabled: "Two-factor authentication enabled",
        disabled: "Two-factor authentication disabled",
        error: "Failed to update two-factor settings",
      },
    },
  },

  // Billing Section
  billing: {
    title: "Billing & Subscription",
    subtitle: "Manage your subscription, payment methods, and billing history",

    currentPlan: {
      title: "Current Plan",
      free: "Free Plan",
      basic: "Basic Plan",
      premium: "Premium Plan",
      enterprise: "Enterprise Plan",

      status: {
        active: "Active",
        cancelled: "Cancelled",
        expired: "Expired",
        trialing: "Trial",
      },

      details: {
        billingCycle: "Billing Cycle",
        nextBilling: "Next Billing Date",
        amount: "Amount",
        monthly: "Monthly",
        yearly: "Yearly",
      },

      actions: {
        upgrade: "Upgrade Plan",
        downgrade: "Downgrade Plan",
        cancel: "Cancel Subscription",
        reactivate: "Reactivate Subscription",
        changeCycle: "Change Billing Cycle",
      },

      messages: {
        cancelConfirm: "Are you sure you want to cancel your subscription?",
        cancelWarning:
          "You will lose access to premium features at the end of your billing period.",
        upgraded: "Plan upgraded successfully",
        downgraded: "Plan downgraded successfully",
        cancelled: "Subscription cancelled",
        reactivated: "Subscription reactivated",
      },
    },

    paymentMethods: {
      title: "Payment Methods",
      subtitle: "Manage your payment methods",

      defaultBadge: "Default",
      expiresOn: "Expires",
      expired: "Expired",

      cardEnding: "Card ending in",

      actions: {
        add: "Add Payment Method",
        setDefault: "Set as Default",
        remove: "Remove",
        update: "Update",
      },

      messages: {
        added: "Payment method added successfully",
        updated: "Payment method updated",
        removed: "Payment method removed",
        setDefault: "Default payment method updated",
        error: "Failed to update payment method",
        removeConfirm: "Are you sure you want to remove this payment method?",
      },

      empty: "No payment methods added",
    },

    invoices: {
      title: "Billing History",
      subtitle: "View and download past invoices",

      columns: {
        date: "Date",
        description: "Description",
        amount: "Amount",
        status: "Status",
        invoice: "Invoice",
      },

      status: {
        paid: "Paid",
        pending: "Pending",
        failed: "Failed",
        refunded: "Refunded",
      },

      actions: {
        download: "Download",
        view: "View",
        retry: "Retry Payment",
      },

      empty: "No billing history",
      viewAll: "View All Invoices",
    },

    usage: {
      title: "Usage Statistics",
      subtitle: "Current month usage and limits",

      bookings: "Bookings",
      messages: "Messages",
      storage: "Storage",
      users: "Team Members",

      of: "of",
      unlimited: "Unlimited",
      upgradePrompt: "Upgrade to increase limits",
    },
  },

  // Preferences Section
  preferences: {
    title: "Preferences",
    subtitle: "Customize your account settings and notifications",

    language: {
      title: "Language",
      subtitle: "Choose your preferred language",

      options: {
        ar: "العربية (Arabic)",
        en: "English",
      },

      autoDetect: "Auto-detect based on browser",

      messages: {
        success: "Language updated successfully",
        error: "Failed to update language",
      },
    },

    timezone: {
      title: "Timezone",
      subtitle: "Set your local timezone for accurate scheduling",

      autoDetect: "Auto-detect timezone",

      messages: {
        success: "Timezone updated successfully",
        error: "Failed to update timezone",
      },
    },

    notifications: {
      title: "Notifications",
      subtitle: "Manage how you receive notifications",

      channels: {
        email: "Email Notifications",
        sms: "SMS Notifications",
        whatsapp: "WhatsApp Notifications",
        push: "Push Notifications",
      },

      types: {
        bookings: {
          title: "Bookings",
          description: "New bookings and cancellations",
        },
        reminders: {
          title: "Reminders",
          description: "Upcoming appointment reminders",
        },
        marketing: {
          title: "Marketing",
          description: "Product updates and promotional offers",
        },
        security: {
          title: "Security",
          description: "Security alerts and login notifications",
        },
        billing: {
          title: "Billing",
          description: "Invoices and payment confirmations",
        },
        updates: {
          title: "Product Updates",
          description: "New features and improvements",
        },
      },

      messages: {
        success: "Notification preferences updated",
        error: "Failed to update preferences",
      },
    },

    dashboard: {
      title: "Dashboard Settings",
      subtitle: "Customize your dashboard experience",

      options: {
        compactMode: {
          title: "Compact Mode",
          description: "Show more information in less space",
        },
        showStats: {
          title: "Show Statistics",
          description: "Display stats cards on dashboard",
        },
        showCalendar: {
          title: "Show Calendar",
          description: "Display calendar view on dashboard",
        },
        defaultView: {
          title: "Default View",
          description: "Choose your default dashboard view",
          options: {
            overview: "Overview",
            calendar: "Calendar",
            bookings: "Bookings",
            analytics: "Analytics",
          },
        },
      },

      messages: {
        success: "Dashboard settings updated",
        error: "Failed to update settings",
      },
    },
  },

  // Help Section
  help: {
    title: "Help & Support",
    subtitle: "Get help and find answers to common questions",

    faq: {
      title: "Frequently Asked Questions",

      questions: {
        howToBook: {
          q: "How do I book an appointment?",
          a: "You can book appointments through our WhatsApp integration or directly through your booking page. Simply send a message or click the booking link to get started.",
        },
        changePackage: {
          q: "How do I upgrade or downgrade my package?",
          a: 'Go to Billing section and click "Change Plan". Select your desired package and confirm. Changes take effect at the start of your next billing cycle.',
        },
        cancelSubscription: {
          q: "Can I cancel my subscription?",
          a: "Yes, you can cancel anytime from the Billing section. You will retain access until the end of your current billing period.",
        },
        dataExport: {
          q: "How do I export my data?",
          a: 'Navigate to Advanced settings and click "Export Data". You will receive a download link via email within 24 hours.',
        },
        apiAccess: {
          q: "Do you offer API access?",
          a: "API access is available on Premium and Enterprise plans. Contact our support team for API documentation and credentials.",
        },
        whatsappSetup: {
          q: "How do I set up WhatsApp integration?",
          a: "Visit the Integrations section in your dashboard and follow the WhatsApp setup wizard. You will need a WhatsApp Business account.",
        },
        multipleLocations: {
          q: "Can I manage multiple locations?",
          a: "Yes, Premium and Enterprise plans support multiple locations. Each location can have its own booking settings and staff.",
        },
        refundPolicy: {
          q: "What is your refund policy?",
          a: "We offer a 30-day money-back guarantee on all paid plans. Contact support to request a refund within 30 days of purchase.",
        },
      },

      viewAll: "View All FAQs",
      stillNeedHelp: "Still need help?",
    },

    contact: {
      title: "Contact Support",
      subtitle: "Our team is here to help",

      methods: {
        email: {
          title: "Email Support",
          description: "Get help via email",
          action: "Send Email",
          address: "support@mawidi.com",
          responseTime: "Response within 24 hours",
        },
        whatsapp: {
          title: "WhatsApp Support",
          description: "Chat with us on WhatsApp",
          action: "Start Chat",
          responseTime: "Response within 4 hours",
        },
        phone: {
          title: "Phone Support",
          description: "Speak with our team",
          action: "Call Now",
          available: "Available 9 AM - 6 PM GST",
        },
        live: {
          title: "Live Chat",
          description: "Get instant help",
          action: "Start Chat",
          available: "Available during business hours",
          offline: "Currently offline",
        },
      },

      form: {
        subject: {
          label: "Subject",
          placeholder: "How can we help?",
        },
        message: {
          label: "Message",
          placeholder: "Describe your issue or question...",
        },
        priority: {
          label: "Priority",
          low: "Low",
          medium: "Medium",
          high: "High",
          urgent: "Urgent",
        },
        submit: "Send Message",
        submitting: "Sending...",
      },

      messages: {
        success: "Message sent successfully. We will get back to you soon.",
        error: "Failed to send message. Please try again.",
      },
    },

    resources: {
      title: "Resources",

      links: {
        documentation: {
          title: "Documentation",
          description: "Comprehensive guides and tutorials",
        },
        videoTutorials: {
          title: "Video Tutorials",
          description: "Step-by-step video guides",
        },
        blog: {
          title: "Blog",
          description: "Tips, best practices, and updates",
        },
        community: {
          title: "Community Forum",
          description: "Connect with other users",
        },
        apiDocs: {
          title: "API Documentation",
          description: "Technical API reference",
        },
        status: {
          title: "System Status",
          description: "Check service availability",
        },
      },
    },
  },

  // Advanced Section
  advanced: {
    title: "Advanced Settings",
    subtitle: "Data management and account deletion",

    dataExport: {
      title: "Export Your Data",
      subtitle: "Download a copy of all your data",

      description:
        "Request a complete export of all your data including bookings, customers, messages, and settings. The export will be sent to your email as a ZIP file.",

      formats: {
        title: "Export Format",
        json: "JSON",
        csv: "CSV",
        excel: "Excel",
      },

      includes: {
        title: "Data to Include",
        bookings: "Bookings",
        customers: "Customers",
        messages: "Messages",
        settings: "Settings",
        invoices: "Invoices",
        analytics: "Analytics",
        all: "Select All",
      },

      actions: {
        request: "Request Export",
        requesting: "Preparing Export...",
        download: "Download",
      },

      messages: {
        success:
          "Export requested successfully. You will receive an email with download link within 24 hours.",
        error: "Failed to request export. Please try again.",
        ready: "Your data export is ready for download.",
        expired: "This download link has expired. Please request a new export.",
      },

      history: {
        title: "Export History",
        requested: "Requested",
        status: {
          pending: "Pending",
          processing: "Processing",
          ready: "Ready",
          expired: "Expired",
        },
        empty: "No export history",
      },
    },

    apiKeys: {
      title: "API Keys",
      subtitle: "Manage API access credentials",

      description:
        "API keys allow you to integrate Mawidi with your own applications. Keep your keys secure and never share them publicly.",

      available: "Available on Premium and Enterprise plans",
      upgrade: "Upgrade to access API",

      columns: {
        name: "Key Name",
        key: "API Key",
        created: "Created",
        lastUsed: "Last Used",
        status: "Status",
      },

      status: {
        active: "Active",
        inactive: "Inactive",
        revoked: "Revoked",
      },

      actions: {
        create: "Create New Key",
        revoke: "Revoke",
        copy: "Copy",
        view: "View",
        hide: "Hide",
      },

      messages: {
        created:
          "API key created successfully. Make sure to copy it now as you will not be able to see it again.",
        revoked: "API key revoked",
        copied: "API key copied to clipboard",
        error: "Failed to manage API key",
        revokeConfirm:
          "Are you sure you want to revoke this API key? This action cannot be undone.",
      },

      empty: "No API keys created",
    },

    webhooks: {
      title: "Webhooks",
      subtitle: "Receive real-time notifications",

      description:
        "Webhooks allow your application to receive real-time notifications when events occur in your Mawidi account.",

      available: "Available on Enterprise plan",
      upgrade: "Upgrade to access webhooks",

      actions: {
        add: "Add Webhook",
        test: "Test",
        edit: "Edit",
        delete: "Delete",
      },

      events: {
        title: "Events to Subscribe",
        bookingCreated: "Booking Created",
        bookingUpdated: "Booking Updated",
        bookingCancelled: "Booking Cancelled",
        customerCreated: "Customer Created",
        messageReceived: "Message Received",
      },

      messages: {
        added: "Webhook added successfully",
        updated: "Webhook updated",
        deleted: "Webhook deleted",
        testSent: "Test event sent",
        error: "Failed to manage webhook",
      },

      empty: "No webhooks configured",
    },

    dangerZone: {
      title: "Danger Zone",
      subtitle: "Irreversible account actions",

      deleteAccount: {
        title: "Delete Account",
        description:
          "Permanently delete your account and all associated data. This action cannot be undone.",

        button: "Delete Account",

        confirmation: {
          title: "Are you absolutely sure?",
          warning:
            "This will permanently delete your account, all your data, and cancel your subscription.",

          consequences: {
            title: "This action will:",
            deleteAllData: "Delete all your bookings, customers, and messages",
            cancelSubscription: "Cancel your subscription immediately",
            revokeAccess: "Revoke access for all team members",
            deleteIntegrations: "Remove all integrations and API keys",
            noRecovery: "This data cannot be recovered",
          },

          typeToConfirm: "Type DELETE to confirm",
          placeholder: "Type DELETE",

          buttons: {
            cancel: "Cancel",
            confirm: "Delete My Account",
            deleting: "Deleting...",
          },
        },

        messages: {
          success:
            "Your account has been deleted. You will be redirected shortly.",
          error: "Failed to delete account. Please contact support.",
          mismatch: "Please type DELETE to confirm",
        },
      },

      resetData: {
        title: "Reset All Data",
        description:
          "Delete all bookings, customers, and messages while keeping your account.",

        button: "Reset Data",

        messages: {
          confirm:
            "Are you sure you want to delete all your data? This cannot be undone.",
          success: "All data has been reset",
          error: "Failed to reset data",
        },
      },
    },
  },

  // Common Actions
  actions: {
    save: "Save Changes",
    cancel: "Cancel",
    confirm: "Confirm",
    delete: "Delete",
    edit: "Edit",
    close: "Close",
    back: "Back",
    next: "Next",
    submit: "Submit",
    reset: "Reset",
    apply: "Apply",
    discard: "Discard",
    loading: "Loading...",
    saving: "Saving...",
    saved: "Saved",
    processing: "Processing...",
    uploading: "Uploading...",
    downloading: "Downloading...",
  },

  // Common Messages
  messages: {
    unsavedChanges: "You have unsaved changes. Are you sure you want to leave?",
    requiredFields: "Please fill in all required fields",
    invalidData: "Please check your input and try again",
    networkError: "Network error. Please check your connection.",
    serverError: "Server error. Please try again later.",
    sessionExpired: "Your session has expired. Please sign in again.",
    noPermission: "You do not have permission to perform this action.",
    comingSoon: "This feature is coming soon",
    maintenanceMode: "This feature is currently under maintenance",
  },

  // Validation Messages
  validation: {
    required: "This field is required",
    invalidEmail: "Please enter a valid email address",
    invalidPhone: "Please enter a valid phone number",
    invalidUrl: "Please enter a valid URL",
    minLength: "Must be at least {{min}} characters",
    maxLength: "Must be less than {{max}} characters",
    passwordMismatch: "Passwords do not match",
    invalidFormat: "Invalid format",
    fileTooBig: "File size exceeds maximum allowed size",
    invalidFileType: "Invalid file type",
    numberRange: "Must be between {{min}} and {{max}}",
  },
};
