<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mindful Garden</title>
    <meta name="description" content="A relaxing productivity app to grow a virtual garden by completing tasks.">

    <!-- Google Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap" rel="stylesheet">

    <!-- Custom CSS -->
    <link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">

    
</head>
<body data-theme="minimal">

    <div class="app-container">
        <!-- Task Manager Panel -->
        <div class="panel task-panel">
            <header>
                <h1>Mindful Garden</h1>
                <h2>Tasks</h2>
            </header>
            <form id="task-form">
                <input type="text" id="task-input" placeholder="Add a new task..." required>
                <button type="submit">Add Task</button>
            </form>
            <ul id="task-list"></ul>
        </div>

        <!-- Garden Panel -->
        <div class="panel garden-panel">
            <header class="d-flex justify-content-between align-items-center">
                <div class="d-flex align-items-center">
                    <h2 class="mb-0">Your Garden</h2>
                    <div id="sound-toggle" class="ms-3" style="cursor: pointer;">
                        <svg id="sound-on-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-volume-2"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>
                        <svg id="sound-off-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-volume-x" style="display: none;"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line></svg>
                    </div>
                </div>
                <div class="theme-switcher">
                    <button class="theme-btn" data-theme="zen">Japanese Zen</button>
                    <button class="theme-btn" data-theme="fantasy">Fantasy Forest</button>
                    <button class="theme-btn active" data-theme="minimal">Modern Minimal</button>
                </div>
            </header>
            <div id="garden">
                <div class="sky">
                    <div class="cloud cloud-1"></div>
                    <div class="cloud cloud-2"></div>
                </div>
                <div class="hills">
                    <div class="hill hill-1"></div>
                    <div class="hill hill-2"></div>
                </div>
                <div class="ground"></div>

                <!-- FANTASY SCENE -->
                <div class="fantasy-scene">
                    <div class="fantasy-moon"></div>
                    <div class="stars-container">
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                        <div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div><div class="star"></div>
                    </div>
                    <div class="fantasy-trees">
                        <div class="tree tree-1"></div>
                        <div class="tree tree-2"></div>
                        <div class="tree tree-3"></div>
                        <div class="tree tree-4"></div>
                        <div class="tree tree-5"></div>
                        <div class="tree tree-6"></div>
                    </div>
                    
                </div>

                <!-- ZEN SCENE -->
                <div class="zen-scene">
                    <div class="zen-sun"></div>
                    <div class="cloud cloud-1"></div>
                    <div class="cloud cloud-2"></div>
                    <div class="torii-gate">
                        <div class="torii-pillar left"></div>
                        <div class="torii-pillar right"></div>
                        <div class="torii-beam top"></div>
                        <div class="torii-beam middle"></div>
                    </div>
                    <div class="zen-ground"></div>
                </div>

                <!-- Garden elements will be loaded here -->
            </div>
            <div class="garden-controls">
                <audio id="ambient-sound" loop src="https://www.soundjay.com/nature/rain-01.mp3"></audio>
            </div>
        </div>
    </div>

    <!-- Custom JS -->
    <script src="assets/js/main.js?v=<?php echo time(); ?>"></script>

    <script>
        document.addEventListener('DOMContentLoaded', () => {
            const themeButtons = document.querySelectorAll('.theme-btn');
            const body = document.body;

            themeButtons.forEach(button => {
                button.addEventListener('click', () => {
                    const theme = button.getAttribute('data-theme');
                    
                    // Set theme on body
                    body.setAttribute('data-theme', theme);

                    // Update active button
                    themeButtons.forEach(btn => btn.classList.remove('active'));
                    button.classList.add('active');
                });
            });
        });
    </script>
</body>
</html>