<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="{{ url_for('static', filename='css/main.css') }}" type="text/css" rel="stylesheet">
    <title>Zpenr messenger</title>
</head>
<body>
    <div class="app-container">
        <!-- Левая панель с чатами -->
        <div class="sidebar">
            <div class="settings-header">
                <button class="menu">
                    <img src="{{ url_for('static', filename='images/635357373755808964.png') }}" class="settings-icon" alt="Меню">
                </button>
            </div>
            
            <div class="chats-list">
                <a href="{{ url_for('me_liza.chat_me_liza') }}" class="chat-elem">
                    <img src="{{ url_for('static', filename='images/avatars/Liza-avatar.jpg') }}" class="avatar-image" alt="Лиза">
                    <div class="chat-info">
                        <div class="chat-name">
                            <p class="name-of-chat">{% block nameofchat %}{% endblock %}</p>
                        </div>
                        <div class="last-massege">{% block lastmassege %}{% endblock %}</div>
                    </div>
                </a>
                
                <a href="{{ url_for('me_makar.chat_me_makar') }}" class="chat-elem">
                    <img src="{{ url_for('static', filename='images/avatars/мем макар.jpg') }}" class="avatar-image" alt="BardMakar">
                    <div class="chat-info">
                        <div class="chat-name">
                            <p class="name-of-chat">BardMakar</p>
                        </div>
                        <div class="last-massege">Hello, maaaan!!!</div>
                    </div>
                </a>
            </div>
        </div>

        <!-- Область чата -->
        <div class="chat-area">
            <div class="chat-header">
                <h1 class="chat-title"></h1>
            </div>
            
            <div class="massages" id="messagesContainer">
                {% block messages %}
                <!-- Сообщения будут здесь -->
                {% endblock %}
            </div>

            {% block form %}
            <!-- Форма ввода будет здесь -->
            {% endblock %}
        </div>
    </div>

    <script src="{{ url_for('static', filename='scripts/main.js') }}"></script>
</body>
</html>