#chat-room-messages-container {
    background-color: rgb(245, 245, 255);
    width: 100%;
    height: 60vh;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
    font-size: smaller;
}

.chat-room-message-in {
    width: fit-content;
    height: fit-content;
    padding: 0.5vw;
    margin-inline: 0.5vw;
    align-self: flex-start;
    display: flex;
    flex-direction: row;
    max-width: 45%;
}

.chat-room-message-out {
    width: fit-content;
    height: fit-content;
    padding: 0.5vw;
    margin: 0.5vw;
    border-radius: 0.5vw;
    border-bottom-right-radius: 0.1vw;
    align-self: flex-end;
    background-color: rgb(158, 187, 246);
    max-width: 45%;
    box-shadow: 0 0.1vw 0.2vh 0.1vh darkgray;
}

.chat-room-message-in-body {
    background-color: rgb(255, 255, 255);
    margin-left: 0.5vw;
    padding: 0.5vw;
    border-radius: 0.5vw;
    border-bottom-left-radius: 0.1vh;
    box-shadow: 0 0.1vh 0.1vh 0.1vh darkgray;
}

#chat-room-input-form {
    background-color: white;
    width: 100%;
    height: 8vh;
    margin-inline: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-bottom-right-radius: 0.6vw;
    border-bottom-left-radius: 0.6vw;
    margin-bottom: 10vh;
    border-top: 1px solid lightgray;
}

#chat-room-message-input {
    max-width: 70%;
    height: 70%;
    padding-inline: 1vw;
    border-radius: 0.6vw;
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    flex-grow: 1;
    border: 1px solid #b2b2b2;
}

    #chat-room-message-input:focus {
        outline: none;
    }

#chat-room-message-send {
    height: min-content;
    width: min-content;
    border: none;
    background-color: transparent;
    font-size: x-large;
    cursor: pointer;
    border-radius: 10vh;
    color: #313131;
}

.chat-partner-profile-image {
    height: 5vh;
    width: 5vh;
    border-radius: 7vh;
    align-self: flex-end;
}

.chat-room-message-date {
    font-size: small;
}

.inbox-message-row {
    cursor: pointer;
}

.chat-room-message-out-seen {
    align-self: flex-end;
    color: grey;
    font-size: small;
}

.inbox-message-image {
    width: 3vw;
    height: 3vw;
    border-radius: 3vw;
    margin-left: 1vw;
}

#chat-partner-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    margin-inline: auto;
    background-color: white;
    border-top-right-radius: 0.6vw;
    border-top-left-radius: 0.6vw;
    padding-block: 0.5vh;
    border-bottom: 1px solid lightgray;
}

#chat-partner-info-image-container {
    overflow: hidden;
    height: 8vh;
    width: 8vh;
    border-radius: 8vh;
    display: inline-block;
    margin-left: 1vh;
}

#chat-partner-info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

#chat-partner-name {
    display: inline-block;
}

#chat-partner-info-flex {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-right: auto;
    margin-left: 2vw;
}

.msg-time {
    font-size: x-small;
    color: #484848;
}

#report-icon {
    height: 1.8vw;
    width: 1.8vw;
    cursor: pointer;
    border-radius: 2vw;
    margin-right: 1vw;
}

#report-icon:hover {
    background-color: rgba(0,0,0,0.1);
}

#last-active {
    font-size: smaller;
}

/*---*/
#chat-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 90vw;
    background-color: transparent;
    border-radius: 0.6vw;
    margin: 7dvh auto 15dvh auto;
}

.chat-window {
    width: 55vw;
    display: block;
}

#chat-container {
    height: fit-content;
    width: 100%;
    border-radius: 0.6vw;
    box-shadow: 0 0 0.1vw grey;
}

.inbox-window {
    width: 40vw;
    display: block;
}

#inbox-table {
    background-color: white;
    width: 80%;
    height: 70vh;
    border-radius: 0.6vw;
    box-shadow: 0 0 0.1vw grey;
}

#inbox-elements-container {
    width: 100%;
    height: 58vh;
    overflow-x: hidden;
    overflow-y: scroll;
    border-bottom: 1px solid #b2b2b2;
    background-color: white;
}

#inbox-table h2 {
    border-bottom: 1px solid #b2b2b2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10vh;
    width: 100%;
    margin-inline: auto;
    margin-top: 1vh;
    color: #ffffff;
    background: linear-gradient(40deg, rgba(255, 16, 216, 0.4), rgba(127, 19, 199, 0.4), rgba(63, 94, 255,0.4));
    border-top-right-radius: 0.6vw;
    border-top-left-radius: 0.6vw;
}

#inbox-table a {
    text-decoration: none;
    color: black;
}

.inbox-element {
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid lightgrey;
    transition: 0.1s;
    height: 8.5vh;
}

    .inbox-element:hover {
        background-color: #e5e5e5;
    }

    .inbox-element:hover .delete-chat-btn {
        color: grey;
    }

    .inbox-element > * {
        font-size: smaller;
    }

.delete-chat {
    width: 12%;
}

#inbox-name {
    font-size: medium;
}

.no-of-new-msgs, .no-of-new-msgs-empty {
    background-color: orangered;
    width: fit-content;
    border-radius: 3vw;
    font-size: small;
    text-align: center;
    padding-block: 0.5vh;
    padding-inline: 1vw;
    color: white;
}

.no-of-new-msgs-empty {
    background-color: transparent;
    width: 1vw;
}

.delete-chat-btn {
    height: 1.5vw;
    width: 1.5vw;
    border: none;
    background-color: transparent;
    border-radius: 3vw;
    margin-inline: 1vw;
    cursor: pointer;
    color: transparent;
}

    .delete-chat button:hover {
        background-color: rgba(0,0,0,0.1);
    }

.name-and-msg-container, .date-and-delete-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-right: auto;
    margin-left: 2vw;
    width: fit-content;
}

.name-and-msg-container {
    margin-right: auto;
    margin-left: 2vw;
}

#chat-close-btn {
    float: right;
    margin-right: 1dvw;
    font-size: medium;
    display: block;
}

.plane-icon {
    width: 2vw;
    margin-right: 1vw;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(74, 232, 74, 0.3);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
}

.user-state-dot {
    display: inline-block;
    width: 0.7dvw;
    height: 0.7dvw;
    border-radius: 1dvw;
}

.active-dot {
    background-color: rgb(74, 232, 74);
    animation: pulse-animation 2s infinite;
    border: 1px solid rgb(74, 232, 74);
}

.inactive-dot {
    background-color: grey;
    border: 1px solid #363636;
}

.chatroom-dot {
    margin-left: 1dvw;
}

.assistant-no-msg {
    max-width: 10rem;
    max-height: 10rem;
}

#no-messages {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#assistant-mobile {
    display: none;
}
