    /* Chat Layout */
    .h-100 {
        height: 100vh !important;
    }

    .chat-container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .chat-container .row {
        -webkit-box-flex: 1;
            -ms-flex: 1;
                flex: 1;
        min-height: 0;
    }

    .message-bubble {
        -webkit-animation: fadeIn 0.3s ease-in;
                animation: fadeIn 0.3s ease-in;
    }

    @-webkit-keyframes fadeIn {
        from {
            opacity: 0;
            -webkit-transform: translateY(10px);
                    transform: translateY(10px);
        }

        to {
            opacity: 1;
            -webkit-transform: translateY(0);
                    transform: translateY(0);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            -webkit-transform: translateY(10px);
                    transform: translateY(10px);
        }

        to {
            opacity: 1;
            -webkit-transform: translateY(0);
                    transform: translateY(0);
        }
    }

    .message-content {
        word-wrap: break-word;
        line-height: 1.6;
    }

    /* Chat Sessions List */
    #chatSessionsList .list-group-item {
        cursor: pointer;
        -webkit-transition: background-color 0.2s;
        transition: background-color 0.2s;
    }

    #chatSessionsList .list-group-item:hover {
        background-color: #f8f9fa;
    }

    #chatSessionsList .list-group-item.active {
        background-color: #e7f1ff;
        border-left: 3px solid #0d6efd;
    }

    /* Input Area */
    #messageInput:focus {
        border-color: #0d6efd;
        -webkit-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
                box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    /* Scrollbar Styling */
    #messagesArea::-webkit-scrollbar,
    #chatSessionsList::-webkit-scrollbar {
        width: 8px;
    }

    #messagesArea::-webkit-scrollbar-track,
    #chatSessionsList::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #messagesArea::-webkit-scrollbar-thumb,
    #chatSessionsList::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    #messagesArea::-webkit-scrollbar-thumb:hover,
    #chatSessionsList::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .col-md-3 {
            display: none;
        }
    }

#messagesArea {
    scroll-behavior: smooth;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    overflow-y: auto;
}

#messagesContainer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    min-height: -webkit-min-content;
    min-height: -moz-min-content;
    min-height: min-content;
    padding-bottom: 20px;
}

/* Active chat highlight */
#chatSessionsList .list-group-item.active-chat {
    background-color: #e7f1ff;
    border-left: 3px solid #0d6efd;
}

#messageInput {
    min-height: 48px;
    -webkit-transition: height 0.2s;
    transition: height 0.2s;
}

.message-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

