/* ===== Page background ===== */
body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* ===== Chat container ===== */
.chat-container {
    width: 400px;
    background: #1e293b;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* ===== Header ===== */
.chat-header {
    background: #2563eb;
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
}

/* ===== Chat area ===== */
.chat-box {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

/* ===== Message bubbles ===== */
.message {
    padding: 10px 14px;
    max-width: 80%;
    border-radius: 12px;
    line-height: 1.4;
    font-size: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* User bubble */
.message.user {
    background: #2563eb;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Bot bubble */
.message.bot {
    background: #334155;
    color: #a5f3fc;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* ===== Input area ===== */
.chat-input {
    display: flex;
    border-top: 1px solid #334155;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    background: #0f172a;
    color: white;
    font-size: 14px;
}

.chat-input button {
    background: #2563eb;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.chat-input button:hover {
    background: #1d4ed8;
}

/* ===== Read more button ===== */
.read-more-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.read-more-btn:hover {
    background: #1d4ed8;
}
