body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.chat-wrapper {
    width: 400px;
    margin: 30px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.chat-header {
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.back-icon {
    margin-right: 10px;
}

.profile {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.profile-info {
    margin-left: 10px;
}

.profile-info .name {
    font-weight: bold;
}

.header-icons .icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

.chat-body {
    padding: 10px;
    height: 400px;
    overflow-y: auto;
    background-color: #f3f3f3;
}

.message {
    background: white;
    padding: 8px 12px;
    margin: 10px 0;
    border-radius: 10px;
    max-width: 70%;
    position: relative;
}

.my-message {
    margin-left: auto;
    background-color: #d4e6ff;
    border-radius: 15px;
    max-width: 30%; 
    word-break: break-word;
    text-align: right;
}

.other-message {
    margin-right: auto;
    background-color: #ffffff;
    border: 3px solid #d4e6ff; 
    padding: 8px 12px;
    margin: 10px 0;
    border-radius: 15px;
    max-width: 35%; 
    word-break: break-word;
}

.time {
    font-size: 10px;
    color: #999;
    margin-top: 5px;
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.chat-input input {
    flex-grow: 1;
    margin: 0 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.input-icons .icon {
    width: 24px;
    margin-right: 5px;
}

.send-button {
    background-color: #d4e6ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}
