.message-text {
    line-height: 1.6;
    font-size: 15px;
    white-space: normal;
}

.bot-message b {
    display: block;
    margin-top: 8px;
    color: #000;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, sans-serif;
}

body{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    background:white;
}

.chat-container{
    width: 650px;              /* increased width */
    max-width: 95vw;
    height: 85vh;              /* fixed viewport height */
    background:#ffc942;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.chat-header{
    padding:20px;
    background:black;
    color:#fccb37;
    border-radius:15px 15px 0 0;
}

.chat-header h1{
    font-size:1.5rem;
    text-align:center;
}

.chat-messages{
    flex:1;                    /* takes all free space */
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:12px;
    overflow-y:auto;           /* scroll only messages */
}

.message{
    max-width:80%;
    padding:12px 16px;
    border-radius:18px;
    word-wrap:break-word;
}

.bot-message{
    background:white;
    color:#222;
    align-self:flex-start;
    border-radius:18px 18px 18px 5px;
}

.user-message{
    background:black;
    color:white;
    align-self:flex-end;
    border-radius:18px 18px 5px 18px;
}

.chat-input{
    padding:15px;
    display:flex;
    gap:10px;
    background:#ffc942;
    border-top:1px solid rgba(255,255,255,0.6);
}

#user-input{
    flex:1;
    padding:12px;
    border:1px solid white;
    border-radius:8px;
    outline:none;
    font-size:14px;
}

#send-button{
    padding:12px 22px;
    background:black;
    color:#fccb37;
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition:0.25s;
}

#send-button:hover{
    background:#128c7e;
}