import type { Metadata, Viewport } from 'next';
import './globals.css';

export const metadata: Metadata = {
  title: { default: 'Justice Choice Admin | Lawyer Rankings & SEO Management', template: '%s — Justice Choice Admin' },
  description: 'Manage lawyer rankings, verified profiles, reviews and SEO with Justice Choice Admin. Access your staff console and professional dashboard in one hub.',
  applicationName: 'Justice Choice Admin',
  robots: { index: false, follow: false },
};

export const viewport: Viewport = {
  themeColor: [
    { media: '(prefers-color-scheme: light)', color: '#f5f7f4' },
    { media: '(prefers-color-scheme: dark)', color: '#12181b' },
  ],
};

export default function Root({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body className="min-h-screen">{children}</body>
    </html>
  );
}
