import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";

import { LocaleProvider } from "@/lib/i18n/LocaleContext";
import { UserProvider } from "@/lib/auth/UserContext";

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Remuneración Estelar - Hoteles Estelar",
  description: "Sistema de Remuneración Variable, Compensaciones y Comisiones de Hoteles Estelar",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" className={`${geistSans.variable} ${geistMono.variable}`}>
      <body>
        <LocaleProvider>
          <UserProvider>{children}</UserProvider>
        </LocaleProvider>
      </body>
    </html>
  );
}
