<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Protected Content - FastOpp Base Assets</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        'ai-blue': '#3B82F6',
                        'ai-purple': '#8B5CF6'
                    }
                }
            }
        }
    </script>
</head>
<body class="bg-gray-50 min-h-screen">
    <div class="min-h-screen flex flex-col">
        <!-- Header -->
        <header class="bg-white shadow-sm border-b">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                <div class="flex justify-between items-center py-6">
                    <div class="flex items-center">
                        <h1 class="text-2xl font-bold text-gray-900">FastOpp Base Assets</h1>
                    </div>
                    <nav class="flex space-x-8">
                        <a href="/" class="text-gray-500 hover:text-gray-700 px-3 py-2 rounded-md text-sm font-medium">Home</a>
                        <a href="/admin/" class="text-gray-500 hover:text-gray-700 px-3 py-2 rounded-md text-sm font-medium">Admin</a>
                        <a href="/logout" class="text-red-600 hover:text-red-800 px-3 py-2 rounded-md text-sm font-medium">Logout</a>
                    </nav>
                </div>
            </div>
        </header>

        <!-- Main Content -->
        <main class="flex-grow">
            <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-12">
                    <h1 class="text-4xl font-extrabold text-gray-900 mb-4">
                        🔒 Protected Content
                    </h1>
                    <p class="text-xl text-gray-600">
                        Welcome, {{ user.email }}! You have successfully accessed the protected area.
                    </p>
                </div>

                <div class="bg-white rounded-lg shadow-lg p-8">
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                        <div class="space-y-6">
                            <h2 class="text-2xl font-bold text-gray-900">User Information</h2>
                            <div class="space-y-4">
                                <div class="flex justify-between">
                                    <span class="font-medium text-gray-700">Email:</span>
                                    <span class="text-gray-900">{{ user.email }}</span>
                                </div>
                                <div class="flex justify-between">
                                    <span class="font-medium text-gray-700">Staff Status:</span>
                                    <span class="text-gray-900">{{ "Yes" if user.is_staff else "No" }}</span>
                                </div>
                                <div class="flex justify-between">
                                    <span class="font-medium text-gray-700">Superuser:</span>
                                    <span class="text-gray-900">{{ "Yes" if user.is_superuser else "No" }}</span>
                                </div>
                                <div class="flex justify-between">
                                    <span class="font-medium text-gray-700">Active:</span>
                                    <span class="text-gray-900">{{ "Yes" if user.is_active else "No" }}</span>
                                </div>
                            </div>
                        </div>

                        <div class="space-y-6">
                            <h2 class="text-2xl font-bold text-gray-900">What You Can Do</h2>
                            <ul class="space-y-3 text-gray-700">
                                <li class="flex items-center">
                                    <span class="text-green-500 mr-2">✓</span>
                                    Access protected content
                                </li>
                                <li class="flex items-center">
                                    <span class="text-green-500 mr-2">✓</span>
                                    View your user profile
                                </li>
                                <li class="flex items-center">
                                    <span class="text-green-500 mr-2">✓</span>
                                    Access admin panel
                                </li>
                                <li class="flex items-center">
                                    <span class="text-green-500 mr-2">✓</span>
                                    Manage system resources
                                </li>
                            </ul>
                        </div>
                    </div>

                    <div class="mt-8 pt-8 border-t border-gray-200">
                        <div class="text-center">
                            <p class="text-gray-600 mb-4">
                                This is a demonstration of protected content in the base_assets application.
                            </p>
                            <div class="flex justify-center space-x-4">
                                <a href="/admin/" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-ai-blue hover:bg-blue-700">
                                    Go to Admin Panel
                                </a>
                                <a href="/" class="inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
                                    Back to Home
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</body>
</html>
