body {
    background: #eef2f7;
    font-family: "Segoe UI", sans-serif;
}

/* Header Image */
.header-logo {
    width: auto;
    height: auto;
}

/* Chat Window */
.chat-window {
    height: 520px;
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid #d7dbe0;
}

/* Messages */
/* ---- IMPROVED MESSAGE FORMAT (NO JS NEEDED) ---- */

.message {
    display: flex;
    margin-bottom: 14px;
}

/* User message bubble */
.message-user .bubble {
    background: linear-gradient(135deg, #4f8bfd, #1b6cf0);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    max-width: 78%;
    margin-left: auto;
    line-height: 1.5;
    font-size: 16px;
}

/* Bot message bubble */
.message-bot .bubble {
    background: #ffffff;
    color: #333;
    border: 1px solid #e4e4e4;
    padding: 16px 20px;
    border-radius: 14px;
    max-width: 78%;
    margin-right: auto;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);

    /* Better readable formatting */
    line-height: 1.6;
    font-size: 16px;
    white-space: pre-line;
}

/* Paragraph spacing for bot replies */
.message-bot .bubble p {
    margin-bottom: 10px;
}

/* Lists */
.message-bot .bubble ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.message-bot .bubble li {
    margin-bottom: 5px;
}

/* Code blocks */
.message-bot .bubble pre {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
}

/* Typing bubble */
.typing {
    background: #ffeb99 !important;
    color: #5c4300 !important;
}

/* Fade animation */
.bubble {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}


.chart-img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 8px;
}

