<!DOCTYPE html>
<html dir="rtl" lang="ar" class="h-full">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>{{ $title ?? 'معالج الإعداد' }} - الكابتن</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    @vite(['resources/css/app.css', 'resources/js/app.js'])
    @livewireStyles
    <style>
        body { font-family: 'Cairo', sans-serif; }
    </style>
</head>
<body class="h-full bg-gradient-to-bl from-slate-50 via-blue-50 to-indigo-100">
    <div class="min-h-full flex flex-col">
        <!-- Header -->
        <header class="bg-white/80 backdrop-blur-sm border-b border-gray-200 py-4 px-6">
            <div class="max-w-4xl mx-auto flex items-center justify-between">
                <div class="flex items-center gap-3">
                    <div class="w-10 h-10 bg-gradient-to-br from-blue-600 to-indigo-700 rounded-xl flex items-center justify-center shadow-md">
                        <svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
                        </svg>
                    </div>
                    <h1 class="text-lg font-bold text-gray-800">{{ __('الكابتن') }}</h1>
                </div>
                <span class="text-sm text-gray-500">{{ __('معالج الإعداد الأولي') }}</span>
            </div>
        </header>

        <!-- Main content -->
        <main class="flex-1 py-8 px-4 sm:px-6">
            <div class="max-w-4xl mx-auto">
                {{ $slot }}
            </div>
        </main>
    </div>
    @livewireScripts
</body>
</html>
