<template>
  <UApp>
    <NuxtRouteAnnouncer />
    <UNotifications />
    <NuxtPage />
  </UApp>
</template>

<script setup lang="ts">
const { isAuthenticated } = useAuthentik()
const { inicializar } = useColorCustomization()

// Inicializar personalización de colores
onMounted(() => {
  inicializar()
})

// Configurar meta tags para PWA
useHead({
  link: [
    { rel: 'manifest', href: '/manifest.webmanifest' },
    { rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' },
    { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }
  ],
  meta: [
    { name: 'theme-color', content: '#00DC82' },
    { name: 'mobile-web-app-capable', content: 'yes' },
    { name: 'apple-mobile-web-app-capable', content: 'yes' },
    { name: 'apple-mobile-web-app-status-bar-style', content: 'default' }
  ]
})
</script>
