body {
    font-family: system-ui, sans-serif;
    background: #f9f9f9;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

#chatbox {
    width: 100%;
    max-width: 90%;
    height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.4;
}

#inputBar {
    display: flex;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

#chatboxFooter {
    padding: 1rem;
    font-size: 13px;
}

#chatInput {
    flex: 1;
    padding: 0.8rem;
    border: none;
    outline: none;
    font-size: 15px;
}

#sendBtn {
    background: #1e90ff;
    color: white;
    border: none;
    padding: 0 1.2rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

#sendBtn:hover {
    background: #0073e6;
}

.user,
.bot {
    margin: 0.5rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    max-width: 100%;
    word-break: break-word;
}

.user {
    background: #e6f2ff;
    align-self: flex-end;
}

.bot {
    background: #f0f0f0;
    align-self: flex-start;
}