export interface EmailAccount {
  id: string
  email: string
  displayName: string
  imapHost: string
  imapPort: number
  smtpHost: string
  smtpPort: number
  status: 'active' | 'inactive' | 'error' | 'syncing'
  lastSync: string | null
  emailCount: number
  unreadCount: number
  createdAt: string
}

export interface MailStats {
  totalAccounts: number
  activeAccounts: number
  totalEmails: number
  unreadEmails: number
  totalTasks: number
  pendingTasks: number
  overdueTasks: number
  aiAnalyzedCount: number
  lastSyncTime: string | null
}

export interface SyncStatus {
  running: boolean
  accountsInProgress: string[]
  lastCompleted: string | null
  errors: string[]
}

export type TabId = 'overview' | 'accounts' | 'ai-settings' | 'templates' | 'logs'
