body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Chat container */
#messages-show-div {
    width: 100%;
    max-width: 600px;
    height: 70vh;
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow-y: auto;
    padding: 15px;
}

/* Message list */
#message-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual message */
.message {
    background: #e9f0ff;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

/* Username highlight */
.message strong {
    color: #2b6fff;
}

/* Input area */
form {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#send-message-div {
    width: 100%;
    display: flex;
    gap: 8px;
}

/* Inputs */
input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
}

input:focus {
    border-color: #2b6fff;
}

/* Button */
button {
    padding: 10px 16px;
    border: none;
    background: #2b6fff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #1f55d6;
}

/* Scrollbar (optional nice touch) */
#messages-show-div::-webkit-scrollbar {
    width: 6px;
}

#messages-show-div::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
