import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import App from './App.vue';
import SuperAdminDashboard from './pages/SuperAdminDashboard.vue';
import ClientDashboard from './pages/ClientDashboard.vue';
import EmployeesPage from './pages/EmployeesPage.vue';
import PayrollPage from './pages/PayrollPage.vue';
import AttendancePage from './pages/AttendancePage.vue';
import DevicesPage from './pages/DevicesPage.vue';
import RulesPage from './pages/RulesPage.vue';
import ReportsPage from './pages/ReportsPage.vue';
import LeavePage from './pages/LeavePage.vue';
import HolidaysPage from './pages/HolidaysPage.vue';
import FinancePage from './pages/FinancePage.vue';
import TasksPage from './pages/TasksPage.vue';
import ContractsPage from './pages/ContractsPage.vue';
import DisciplinaryPage from './pages/DisciplinaryPage.vue';
import SecurityPage from './pages/SecurityPage.vue';
import SettingsPage from './pages/SettingsPage.vue';
import ClientsPage from './pages/ClientsPage.vue';
import PackagesPage from './pages/PackagesPage.vue';
import OrganizationPage from './pages/OrganizationPage.vue';
import SchedulesPage from './pages/SchedulesPage.vue';
import BillingPage from './pages/BillingPage.vue';
import MonitoringPage from './pages/MonitoringPage.vue';
import RegistrationControlPage from './pages/RegistrationControlPage.vue';
import TransfersPage from './pages/TransfersPage.vue';
import './styles.css';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: '/', redirect: '/super-admin' },
    { path: '/super-admin', component: SuperAdminDashboard },
    { path: '/clients', component: ClientsPage },
    { path: '/packages', component: PackagesPage },
    { path: '/billing', component: BillingPage },
    { path: '/monitoring', component: MonitoringPage },
    { path: '/registration-control', component: RegistrationControlPage },
    { path: '/client', component: ClientDashboard },
    { path: '/organization', component: OrganizationPage },
    { path: '/schedules', component: SchedulesPage },
    { path: '/employees', component: EmployeesPage },
    { path: '/transfers', component: TransfersPage },
    { path: '/attendance', component: AttendancePage },
    { path: '/devices', component: DevicesPage },
    { path: '/rules', component: RulesPage },
    { path: '/leave', component: LeavePage },
    { path: '/holidays', component: HolidaysPage },
    { path: '/payroll', component: PayrollPage },
    { path: '/finance', component: FinancePage },
    { path: '/tasks', component: TasksPage },
    { path: '/contracts', component: ContractsPage },
    { path: '/disciplinary', component: DisciplinaryPage },
    { path: '/reports', component: ReportsPage },
    { path: '/security', component: SecurityPage },
    { path: '/settings', component: SettingsPage },
  ],
});

createApp(App).use(router).mount('#app');
