<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}MindRoot Admin{% endblock %}</title>
    
    <!-- Base Styles -->
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    
    {% block head_styles %}{% endblock %}
    {% block head_scripts %}{% endblock %}
    {% block head_extra %}{% endblock %}
</head>
<body class="bg-gray-100">
    <nav class="bg-gray-800 text-white p-4">
        <div class="container mx-auto flex justify-between items-center">
            <div class="text-xl font-bold">MindRoot Admin</div>
            <div class="space-x-4">
                <a href="/admin" class="hover:text-gray-300">Dashboard</a>
                <a href="/admin/usage" class="hover:text-gray-300">Usage</a>
                <a href="/admin/plugins" class="hover:text-gray-300">Plugins</a>
                <a href="/admin/settings" class="hover:text-gray-300">Settings</a>
            </div>
        </div>
    </nav>

    <main class="container mx-auto mt-6">
        {% block content %}{% endblock %}
    </main>

    <footer class="bg-gray-800 text-white p-4 mt-8">
        <div class="container mx-auto text-center">
            <p>&copy; 2025 MindRoot. All rights reserved.</p>
        </div>
    </footer>

    {% block body_scripts %}{% endblock %}
</body>
</html>