<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="AI Chat Application powered by AWS Bedrock">
    <meta name="theme-color" content="#007bff">
    <title>AI Chat</title>

    <!-- Design System Styles -->
    <link rel="stylesheet" href="/styles/design-tokens.css">
    <link rel="stylesheet" href="/styles/animations.css">
    <link rel="stylesheet" href="/styles/chat.css">

    <style>
        /* Critical CSS for initial load */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html,
        body,
        #root-internal {
            height: 100%;
            width: 100%;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f5f5f5;
        }

        @media (prefers-color-scheme: dark) {
            body {
                background-color: #1a1a1a;
            }
        }

        /* Loading state */
        .loading-placeholder {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            color: #666;
        }
    </style>
</head>

<body>
    <!-- Content is injected here by Runtime Web -->
    <div id="root-runtime"></div>

    <!-- Fallback for client-side only rendering -->
    <div id="root-internal">
        <div class="loading-placeholder">Loading...</div>
    </div>
</body>

</html>
