<?php session_start(); if (!isset($_SESSION["is_logged_in"]) || !$_SESSION["is_logged_in"]) { header("Location: /login.php"); exit; } ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>WhatsApp 风格聊天</title>
    <link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
    <div class="app-container">
        <!-- Sidebar -->
        <div class="sidebar">
            <div class="sidebar-header">
                会话列表
            </div>
            <div class="sidebar-search">
                <input type="text" placeholder="搜索或开始新聊天">
            </div>
            <div class="conversation-list">
                <div class="conversation-item">
                    <div class="conv-info">
                        <h4>13800138000</h4>
                        <p>你好，请问在吗？</p>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- Chat Panel -->
        <div class="chat-panel">
            <div class="chat-header">
                13800138000
            </div>
            <div class="message-list">
                <div class="message msg-other">你好，请问在吗？</div>
                <div class="message msg-me">您好，请问有什么可以帮您？</div>
            </div>
            <div class="input-area">
                <input type="text" placeholder="输入消息...">
                <button>发送</button>
            </div>
        </div>
    </div>
</body>
</html>