    body {
        height: 90vh;
        margin: 0;
    }

    .chat-container {
        overflow: hidden;
        background-color: #f8f9fa;
        /* Light background */
        color: #495057;
        /* Darker text */
        font-family: Arial, sans-serif;
    }

    .sidebar {
        background-color: #ffffff;
        /* White background */
        border-right: 1px solid #dee2e6;
        /* Light border */
        overflow-y: auto;
    }

    .sidebar-header {

        padding: 15px;
        background-color: #e9ecef;
        /* Light gray */
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #dee2e6;
        /* Light border */
    }

    .sidebar-header img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .list-group-item img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .list-group-item {
        background-color: transparent;
        color: #495057;
        /* Darker text */
        border: none;
        padding: 15px;
        transition: background-color 0.3s;
    }

    .list-group-item:hover {
        background-color: #e9ecef;
        /* Light hover effect */
        cursor: pointer;
    }

    .chat-area {
        background-color: #ffffff;
        /* White background */
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .chat-header {
        padding: 15px;
        background-color: #e9ecef;
        /* Light gray */
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #dee2e6;
        /* Light border */
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .chat-header img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .chat-messages {
        flex-grow: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        scroll-behavior: smooth;
    }

    .message {
        margin-bottom: 15px;
        max-width: 70%;
        padding: 10px 15px;
        border-radius: 10px;
        word-wrap: break-word;
    }

    .sent {
        background-color: #0d6efd;
        /* Bootstrap Primary Blue */
        color: #ffffff;
        /* White text */
        align-self: flex-end;
    }

    .received {
        background-color: #e9ecef;
        /* Light gray */
        color: #495057;
        /* Darker text */
        align-self: flex-start;
    }

    .chat-footer {
        padding: 10px;
        background-color: #e9ecef;
        /* Light gray */
        display: flex;
        align-items: center;
        border-top: 1px solid #dee2e6;
        /* Light border */
    }

    .chat-footer input {
        background-color: #ffffff;
        /* White background */
        border: 1px solid #ced4da;
        /* Light border */
        color: #495057;
        /* Darker text */
        border-radius: 20px;
        padding: 10px 15px;
        flex-grow: 1;
        outline: none;
    }

    .chat-footer input::placeholder {
        color: #adb5bd;
        /* Placeholder text */
    }

    .chat-footer button {
        background-color: #0d6efd;
        /* Bootstrap Primary Blue */
        border: none;
        color: #ffffff;
        /* White text */
        border-radius: 50%;
        width: 40px;
        height: 40px;
        margin-left: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chat-footer button:hover {
        background-color: #0b5ed7;
        /* Slightly darker blue */
    }

    .scrollbar-hidden {
        scrollbar-width: none;
        /* For Firefox */
        -ms-overflow-style: none;
        /* For Internet Explorer and Edge */
    }

    .scrollbar-hidden::-webkit-scrollbar {
        display: none;
        /* For Chrome, Safari, and Opera */
    }

    .chat-footer.keyboard-active {
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 10;
    }

    @media (max-width: 768px) {
        body {
            height: 85vh;
        }

        .sidebar {
            display: none;
        }

        .chat-area {
            flex: 1;
        }

        .chat-header .back-button {
            display: inline-block;
            margin-right: 10px;
        }

        .chat-header img {
            margin-left: 0;
        }
    }

    @media (min-width: 769px) {
        .back-button {
            display: none;
        }
    }

