/* Rest of the CSS code remains the same */

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar {
    width: 300px;
    background-color: #f0f0f0;
    padding: 10px;
}

.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ccc;
}

.sidebar-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: 20px;
}

.messages {
    flex-grow: 1;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    overflow-y: scroll;
    margin-bottom: 10px;
    /* Add margin at the bottom to separate from the input form */
}

input[type="text"],
button {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 5px 0;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:focus {
    outline: none;
}

/* New CSS for person name and online status */
.person-name {
    display: flex;
    align-items: center;
}

.online-status-container {
    display: inline-flex;
    align-items: center;
}
.online-status {
    margin-left: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: green;
    margin-right: 5px;
}

.online {
    background-color: green;
}

.offline {
    background-color: grey;
}
.online-text {
    font-size: 12px;
    color: green;
}

.offline-icon {
    font-size: 12px;
    color: grey;
    margin-left: 5px;
}

.text-right {
    text-align: right;
    padding: 5px;
}

.bold {
    font-weight: bold;
}

.display_none {
    display: none !important;
  }