    /* 1. Nền tổng thể kiểu Telegram Dark Mode */
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        background-color: #0e1621;
        color: #f5f5f5;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        display: flex;
        justify-content: center;
        height: 100vh;
    }

    /* 2. Khung ứng dụng chính */
    .app-container {
        width: 100%;
        max-width: 480px;
        background-color: #17212b;
        display: flex;
        flex-direction: column;
        height: 100vh;
        border-left: 1px solid #101721;
        border-right: 1px solid #101721;
    }

    /* 3. Thanh Header phía trên */
    .header {
        padding: 14px 16px;
        background-color: #17212b;
        border-bottom: 1px solid #0e1621;
        display: flex;
        align-items: center;
        width: 100%;
        /* Đảm bảo header chiếm hết chiều ngang */
        gap: 12px;
    }

    .avatar {
        width: 40px;
        height: 40px;
        background-color: #2aabee;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 18px;
    }

    .bot-info h2 {
        font-size: 16px;
        color: #ffffff;
    }

    .bot-info p {
        font-size: 12px;
        color: #7f91a4;
    }

    .menu-container {
        display: flex;
        margin-left: auto;
        align-self: flex-end;
        gap: 6px;
        /* Khoảng cách nhỏ nhắn xinh xắn giữa nút thùng rác và dấu 3 chấm */
        position: relative;
        /* Rất quan trọng! dropdown-menu */
    }

    #menu-btn,
    #clear-btn {
        background: transparent;
        color: #708196;
        border: 2px solid transparent;
        font-size: 20px;
        cursor: pointer;
        padding: 2px 2px;
        display: inline-flex;
        /* Đảm bảo icon bên trong nút không bị lệch hàng */
        line-height: 1;
        /* Xóa khoảng trống thừa trên/dưới font */
    }

    #menu-btn:hover,
    #clear-btn:hover {
        background-color: #2b3e50;
        border-radius: 10px;
        border: 2px solid #2aabee;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        /* Đặt ngay bên dưới nút 3 chấm */
        right: 0;
        /* Căn lề phải bằng với góc phải của nút */
        margin-top: 8px;
        /* Khoảng hở nhỏ giữa nút và menu */
        background-color: #1e2c3a;
        /* Màu nền tối match với giao diện */
        min-width: 160px;
        /*         border-radius: 8px; */
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
        /* Tạo hiệu ứng nổi */
        padding: 6px 0;
        z-index: 100;
        /* Đảm bảo menu đè lên các phần tử bên dưới */
    }

    /* Style cho từng mục bên trong Menu */
    .dropdown-content button {
        background: transparent;
        color: #e1e9f0;
        padding: 3px 3px;
        width: 100%;
        text-decoration: none;
        font-size: 14px;
        text-align: left;
        cursor: pointer;
        border: 2px solid transparent;
        transition: background 0.2s ease;
    }

    /* Hiệu ứng khi di chuột qua mục trong menu */
    .dropdown-content button:hover {
        background-color: #2b3e50;
        border-radius: 10px;
        border: 2px solid #2aabee;
    }

    /* Class 'show' dùng để bật hiển thị menu qua JS */
    .dropdown-content.show {
        display: block;
    }

    /* 4. Khu vực chứa các tin nhắn */
    .chat-area {
        flex: 1;
        padding: 16px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: #0e1621;
    }

    /* Bong bóng tin nhắn chung */
    .msg {
        max-width: 75%;
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 14.5px;
        line-height: 1.4;
        word-wrap: break-word;
    }

    /* Tin nhắn của Bot (Trái) */
    .msg.bot {
        background-color: #182533;
        color: #f5f5f5;
        align-self: flex-start;
        border-bottom-left-radius: 4px;
    }

    /* Tin nhắn của Người dùng (Phải) */
    .msg.user {
        background-color: #2b5278;
        /* Xanh Telegram */
        color: #ffffff;
        align-self: flex-end;
        border-bottom-right-radius: 4px;
    }

    /* 5. Thanh nhập tin nhắn ở dưới cùng */
    .input-area {
        padding: 12px 16px;
        background-color: #17212b;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .input-area input {
        flex: 1;
        background-color: #242f3d;
        border: none;
        outline: none;
        padding: 12px 16px;
        border-radius: 22px;
        color: #ffffff;
        font-size: 15px;
    }

    .input-area input::placeholder {
        color: #7f91a4;
    }

    .input-area button {
        background-color: #2aabee;
        /* Xanh tươi nút Telegram */
        border: none;
        color: white;
        padding: 10px 18px;
        border-radius: 20px;
        font-weight: bold;
        cursor: pointer;
    }