body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}
.chat-container {
    max-width: 800px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 70vh;
}
.chat-header {
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}
.chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}
.message {
    margin-bottom: 15px;
    clear: both;
}
.message .sender {
    font-weight: bold;
    margin-bottom: 5px;
}
.message .content {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
}
.message.user .content {
    background-color: #d1e7dd;
    float: right;
    border-bottom-right-radius: 2px;
}
.message.ai .content {
    background-color: #fff;
    float: left;
    border: 1px solid #ced4da;
    border-bottom-left-radius: 2px;
}
.chat-input {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
}
.chat-input input[type="text"] {
    flex-grow: 1;
    border-radius: 20px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    outline: none;
    margin-right: 10px;
}
.chat-input button {
    border-radius: 20px;
    padding: 10px 20px;
    white-space: nowrap;
}
.loading-dots {
    display: none;
    float: left;
    margin-top: 10px;
    margin-left: 5px;
}
.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #007bff;
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 0.6s infinite alternate;
}
.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-5px);
    }
}
.summary-section, .qr-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.summary-box {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    min-height: 80px;
    margin-top: 10px;
    white-space: pre-wrap; /* Giữ định dạng xuống dòng */
    word-wrap: break-word;
}
.qr-code-display {
    margin-top: 15px;
    text-align: center;
}
.qr-code-display img {
    max-width: 200px;
    height: auto;
    border: 1px solid #eee;
    padding: 5px;
    background-color: white;
}