.app-chat {
    position: relative;
    height: calc(100vh - 7rem);
}

.layout-navbar-hidden .app-chat {
    height: calc(100vh - 7rem)
}

@media(min-width: 1200px) {
    .layout-horizontal .app-chat {
        height: calc(100vh - 11rem - 4.2rem)
    }
}

@media(max-width: 992px) {
    .app-chat .app-sidebar {
        z-index: 4
    }
}

.app-chat .app-sidebar .sidebar-header {
    position: relative
}

.app-chat .app-sidebar .sidebar-header .close-sidebar {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem
}

.app-chat .app-sidebar .sidebar-header .chat-sidebar-avatar {
    width: 84px;
    height: 84px
}

.app-chat .app-sidebar .sidebar-header .chat-sidebar-avatar::after {
    bottom: 6px;
    width: 15px;
    height: 15px
}

.app-chat .app-chat-contacts {
    position: absolute;
    left: calc(-21rem - 1rem);
    /* height: calc(100vh - 11rem); */
    height: calc(102vh - 7rem);
    width: 100%;
    flex-basis: auto;
    transition: all .25s ease;
    max-width: 400px;
}

.layout-navbar-hidden .app-chat .app-chat-contacts {
    height: calc(100vh - 7rem)
}

@media(min-width: 1200px) {
    .layout-horizontal .app-chat .app-chat-contacts {
        height: calc(100vh - 11rem - 4.2rem)
    }
}

@media(min-width: 350px) {
    .app-chat .app-chat-contacts {
        position: static
    }
}

.app-chat .app-chat-contacts.show {
    left: 0rem
}

.app-chat .app-chat-contacts .sidebar-body {
    height: calc(calc(100vh - 11rem) - 4rem)
}

.layout-navbar-hidden .app-chat .app-chat-contacts .sidebar-body {
    height: calc(calc(100vh - 7rem) - 4rem)
}

@media(min-width: 1200px) {
    .layout-horizontal .app-chat .app-chat-contacts .sidebar-body {
        height: calc(calc(100vh - 11rem) - 3.5rem - 4.2rem)
    }
}

.app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.chat-contact-list-item {
    display: flex;
    justify-content: space-between;
    margin: .25rem .75rem;
    padding: .5rem .75rem;
    cursor: pointer;
    border-radius: .375rem
}

.app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.chat-contact-list-item a {
    width: 100%
}

.app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.chat-contact-list-item .chat-contact-info {
    min-width: 0
}

.app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.chat-contact-list-item .chat-contact-info .chat-contact-name {
    line-height: 1.5
}

.app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.chat-contact-list-item small {
    white-space: nowrap
}

.app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.chat-contact-list-item-title {
    padding: .5rem 1rem .25rem
}

.app-chat .app-chat-sidebar-left {
    position: absolute;
    top: 0;
    left: calc(-21rem - 1rem);
    width: 21rem;
    height: calc(100vh - 11rem);
    opacity: 0;
    z-index: 5;
    transition: all .25s ease
}

.layout-navbar-hidden .app-chat .app-chat-sidebar-left {
    height: calc(100vh - 7rem)
}

@media(min-width: 1200px) {
    .layout-horizontal .app-chat .app-chat-sidebar-left {
        height: calc(100vh - 11rem - 4.2rem)
    }
}

.app-chat .app-chat-sidebar-left.show {
    left: 0;
    opacity: 1
}

.app-chat .app-chat-sidebar-left .sidebar-body {
    height: calc(calc(100vh - 11rem) - 12.5rem)
}

.layout-navbar-hidden .app-chat .app-chat-sidebar-left .sidebar-body {
    height: calc(calc(100vh - 7rem) - 12.5rem)
}

@media(min-width: 1200px) {
    .layout-horizontal .app-chat .app-chat-sidebar-left .sidebar-body {
        height: calc(calc(100vh - 11rem) - 11.5rem - 4.2rem)
    }
}

.app-chat .app-chat-history {
    position: relative;
    /* height: calc(100vh - 11rem); */
    height: calc(102vh - 7rem);
    transition: all .25s ease
}

.layout-navbar-hidden .app-chat .app-chat-history {
    height: calc(100vh - 7rem)
}

@media(min-width: 1200px) {
    .layout-horizontal .app-chat .app-chat-history {
        height: calc(100vh - 11rem - 4.2rem)
    }
}

.app-chat .app-chat-history .chat-history-header {
    padding: 1.1rem 1.25rem
}

.app-chat .app-chat-history .chat-history-body {
    height: calc(100vh - 16.35rem);
    padding: 1.25rem 1.25rem;
    overflow: hidden;
    align-content: flex-end;
}

.layout-navbar-hidden .app-chat .app-chat-history .chat-history-body {
    height: calc(100vh - 18.4rem)
}

@media(min-width: 1200px) {
    .layout-horizontal .app-chat .app-chat-history .chat-history-body {
        height: calc(100vh - 22.35rem - 4.2rem)
    }
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message {
    /* display: flex; */
    justify-content: flex-start
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message .chat-message-wrapper i::before {
    font-size: 2rem
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message .chat-message-wrapper .chat-message-text {
    border-radius: .375rem;
    padding: .5rem 1rem
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message:not(.chat-message-right) .chat-message-text {
    border-top-left-radius: 0
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message.chat-message-right {
    justify-content: flex-start
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message.chat-message-right .chat-message-text {
    border-top-right-radius: 0
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message.chat-message-right .user-avatar {
    margin-right: 0rem;
    margin-left: 1rem
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message .thumbnail {
    cursor: zoom-in
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message:not(:last-child) {
    margin-bottom: 2.5rem
}

.app-chat .app-chat-history .chat-history-footer {
    padding: .1875rem .5rem .1875rem 1rem;
    margin: 1.25rem;
    border-radius: .375rem
}

.app-chat .app-chat-history .chat-history-footer .form-control {
    border-color: rgba(0, 0, 0, 0)
}

.app-chat .app-chat-history .chat-history-footer .form-control:hover,
.app-chat .app-chat-history .chat-history-footer .form-control:focus {
    border-color: rgba(0, 0, 0, 0) !important
}

.app-chat .app-chat-sidebar-right {
    position: absolute;
    top: 0;
    right: calc(-21rem - 1rem);
    width: 21rem;
    height: calc(100vh - 11rem);
    opacity: 0;
    z-index: 5;
    transition: all .25s ease
}

.layout-navbar-hidden .app-chat .app-chat-sidebar-right {
    height: calc(100vh - 7rem)
}

@media(min-width: 1200px) {
    .layout-horizontal .app-chat .app-chat-sidebar-right {
        height: calc(100vh - 11rem - 4.2rem)
    }
}

.app-chat .app-chat-sidebar-right.show {
    opacity: 1;
    right: 0
}

.app-chat .app-chat-sidebar-right .sidebar-body {
    height: calc(calc(100vh - 11rem) - 13.6rem)
}

.layout-navbar-hidden .app-chat .app-chat-sidebar-right .sidebar-body {
    height: calc(calc(100vh - 7rem) - 13.6rem)
}

@media(min-width: 1200px) {
    .layout-horizontal .app-chat .app-chat-sidebar-right .sidebar-body {
        height: calc(calc(100vh - 11rem) - 11.1rem - 4.2rem)
    }
}

@media(max-width: 576px) {

    .app-chat .app-chat-sidebar-right.show,
    .app-chat .app-chat-sidebar-left.show,
    .app-chat .app-chat-contacts.show {
        width: 100%
    }
}

.light-style .app-chat .app-sidebar .sidebar-header .chat-sidebar-avatar::after {
    box-shadow: 0 0 0 3px #fff
}

.light-style .app-chat .app-chat-contacts,
.light-style .app-chat .app-chat-sidebar-left {
    background-color: #fff;
    box-shadow: 0 0 0 1px rgba(46, 38, 61, .075)
}

.light-style .app-chat .app-chat-contacts .chat-actions .chat-search-input,
.light-style .app-chat .app-chat-sidebar-left .chat-actions .chat-search-input {
    background-color: #f4f5fa
}

.light-style .app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.active,
.light-style .app-chat .app-chat-sidebar-left .sidebar-body .chat-contact-list li.active {
    color: #fff;
    box-shadow: 0 .125rem .25rem 0 rgba(46, 38, 61, .16)
}

.light-style .app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.active h6,
.light-style .app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.active .text-muted,
.light-style .app-chat .app-chat-sidebar-left .sidebar-body .chat-contact-list li.active h6,
.light-style .app-chat .app-chat-sidebar-left .sidebar-body .chat-contact-list li.active .text-muted {
    color: #fff !important
}

.light-style .app-chat .app-chat-history {
    background-color: #f7f6fa
}

.light-style .app-chat .app-chat-history .chat-history-wrapper {
    background-color: #f7f6fa
}

.light-style .app-chat .app-chat-history .chat-history-footer {
    background-color: #fff;
    box-shadow: 0 .125rem .25rem 0 rgba(46, 38, 61, .16)
}

.light-style .app-chat .app-chat-history .chat-history-body .chat-history .chat-message .chat-message-text {
    background-color: #fff;
    box-shadow: 0 .125rem .25rem 0 rgba(46, 38, 61, .16)
}

.light-style .app-chat .app-chat-history .chat-history-body .chat-history .chat-message.chat-message-right {
    justify-content: flex-end
}

.light-style .app-chat .app-chat-history .chat-history-body .chat-history .chat-message.chat-message-right .chat-message-text {
    color: #fff
}

.light-style .app-chat .app-chat-sidebar-right {
    background-color: #fff;
    box-shadow: 16px 1px 45px 3px rgba(46, 38, 61, .5)
}

@media(max-width: 992px) {
    .light-style .app-chat .app-chat-contacts .chat-actions .chat-search-input {
        background-color: #fff
    }
}

.dark-style .app-chat .app-sidebar .sidebar-header .chat-sidebar-avatar::after {
    box-shadow: 0 0 0 3px #312d4b
}

.dark-style .app-chat .app-chat-contacts,
.dark-style .app-chat .app-chat-sidebar-left {
    background-color: #312d4b
}

.dark-style .app-chat .app-chat-contacts .chat-actions .chat-search-input,
.dark-style .app-chat .app-chat-sidebar-left .chat-actions .chat-search-input {
    background-color: #28243d
}

.dark-style .app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.active,
.dark-style .app-chat .app-chat-sidebar-left .sidebar-body .chat-contact-list li.active {
    color: #fff;
    box-shadow: 0 .125rem .25rem 0 rgba(19, 17, 32, .2)
}

.dark-style .app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.active h6,
.dark-style .app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.active .text-muted,
.dark-style .app-chat .app-chat-sidebar-left .sidebar-body .chat-contact-list li.active h6,
.dark-style .app-chat .app-chat-sidebar-left .sidebar-body .chat-contact-list li.active .text-muted {
    color: #fff !important
}

.dark-style .app-chat .app-chat-history {
    background-color: #373452
}

.dark-style .app-chat .app-chat-history .chat-history-wrapper {
    background-color: #373452
}

.dark-style .app-chat .app-chat-history .chat-history-footer {
    background-color: #312d4b;
    box-shadow: 0 .125rem .25rem 0 rgba(19, 17, 32, .2)
}

.dark-style .app-chat .app-chat-history .chat-history-body .chat-history .chat-message .chat-message-text {
    background-color: #312d4b;
    box-shadow: 0 .125rem .25rem 0 rgba(19, 17, 32, .2)
}

.dark-style .app-chat .app-chat-history .chat-history-body .chat-history .chat-message.chat-message-right {
    justify-content: flex-end
}

.dark-style .app-chat .app-chat-history .chat-history-body .chat-history .chat-message.chat-message-right .chat-message-text {
    color: #fff
}

.dark-style .app-chat .app-chat-sidebar-right {
    background-color: #312d4b
}

[dir=rtl] .app-chat .app-chat-sidebar-left,
[dir=rtl] .app-chat .app-chat-contacts {
    right: calc(-21rem - 1rem);
    left: auto
}

[dir=rtl] .app-chat .app-chat-sidebar-left.show,
[dir=rtl] .app-chat .app-chat-contacts.show {
    left: auto;
    right: 0
}

[dir=rtl] .app-chat .app-chat-sidebar-right {
    left: calc(-21rem - 1rem);
    right: auto
}

[dir=rtl] .app-chat .app-chat-sidebar-right.show {
    left: 0;
    right: auto
}

[dir=rtl] .app-chat .app-chat-history .chat-history-body .chat-history .chat .user-avatar {
    margin-left: 1rem;
    margin-right: 0
}

[dir=rtl] .app-chat .app-chat-history .chat-message:not(.chat-message-right) .chat-message-text {
    border-top-right-radius: 0;
    border-top-left-radius: .375rem !important
}

[dir=rtl] .app-chat .app-chat-history .chat-message.chat-message-right .chat-message-text {
    border-top-left-radius: 0;
    border-top-right-radius: .375rem !important
}




/* custom css  */

#suggestions-container {
    margin-top: 20px;
}

.suggestion-button {
    display: block;
    padding: 10px;
    margin: 5px 0;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.suggestion-button:hover {
    background-color: #0056b3;
}

.rating-great {
    color: #0f0;
    /* green */
    font-size: 1.2em;
}

.rating-good {
    color: #ff0;
    /* yellow */
    font-size: 1.2em;
}

.rating-ok {
    color: #ccc;
    /* gray */
    font-size: 1.2em;
}

.rating-bad {
    color: #f00;
    /* red */
    font-size: 1.2em;

}

.rating-very-bad {
    color: #800;
    /* dark red */
    font-size: 1.2em;
}


#emotion-container {
    margin-top: 20px;
}

.emotion-button {
    display: block;
    padding: 10px;
    margin: 5px 0;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-size: 1em;
    /* Adjust font size */
}

.emotion-button:hover {
    background-color: #0056b3;
}

.emotion {
    font-size: 1.5em;
    /* Adjust icon size */
    margin-right: 8px;
    /* Space between icon and text */
}

.app-chat .app-chat-history .chat-history-body .chat-history .chat-message:not(.chat-message-right) .chat-message-text {
    /* min-width: 800px; */
}

span.response-left {
    min-width: 350px;
}


.rating {
    position: relative;
    /* Required for tooltip positioning */
}

.tooltip {
    visibility: visible;
    width: max-content;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 3px 10px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 99;
    transform: translate(-50%, 0px);
}

.actions-tooltip {
    visibility: visible;
    width: max-content;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 3px 10px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 99;
    transform: translate(-50%, 0px);
}

.rating:hover .tooltip {
    visibility: visible;
    opacity: 1;
    /* Show the tooltip on hover */
}

span.response-right.d-flex.gap-3 {
    align-items: center;
}

.response-more-actions:hover .actions-tooltip {
    visibility: visible;
    opacity: 1;
}

.app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.chat-contact-list-item .chat-contact-info .chat-contact-name {
    line-height: 1.5;
    max-width: 250px;
}

.file-options {
    text-align: right;
    display: flex;
    gap: 2px;
}

.app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.chat-contact-list-item a {
    width: 100%;
    max-width: 250px;
}

.app-chat .app-chat-contacts .sidebar-body .chat-contact-list li.chat-contact-list-item {
    padding-right: 5px;
}

i.ri-edit-box-line {
    color: #433c50;
}

i.ri-delete-bin-5-line {
    color: red;
}
