﻿.a1-full-height {
    height: 100%;
}

.a1-self-center {
    align-self: center;
}

.a1-self-stretch {
    align-self: stretch;
}

.a1-padding {
    padding: 1rem;
}

.a1-padding-lr {
    padding-left: 1rem;
    padding-right: 1rem;
}

.a1-half-padding-tb {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.a1-padding-tb {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.a1-margin {
    margin: 1rem;
}

.a1-margin-lr {
    margin-left: 1rem;
    margin-right: 1rem;
}

.a1-margin-tb {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Layout
     =============== */
.a1-row,
.a1-column {
    display: flex;
    flex-wrap: nowrap;
    overflow: auto;
}

    .a1-row.a1-end,
    .a1-column.a1-end {
        justify-content: flex-end;
    }

    .a1-row.a1-no-scroll, .a1-row.a1-magic-scroll,
    .a1-column.a1-no-scroll,
    .a1-column.a1-magic-scroll {
        overflow: hidden !important;
    }

        .a1-row.a1-magic-scroll:hover,
        .a1-column.a1-magic-scroll:hover {
            overflow: auto !important;
        }

    .a1-row.a1-overflow-visible,
    .a1-column.a1-overflow-visible {
        overflow: visible !important;
    }

    .a1-row.a1-justify-items,
    .a1-column.a1-justify-items {
        justify-content: space-between;
    }

    .a1-row.a1-same-size > *,
    .a1-column.a1-same-size > * {
        flex: 1 1 0px;
        overflow: auto;
    }

    .a1-row > *,
    .a1-column > * {
        flex: 0 0 auto;
    }

    .a1-row > .a1-long,
    .a1-column > .a1-long {
        flex: 1 0 auto;
    }

    .a1-row > .a1-elastic,
    .a1-column > .a1-elastic {
        flex: 0 1 auto;
        overflow: auto;
    }

        .a1-row > .a1-elastic.a1-long,
        .a1-column > .a1-elastic.a1-long {
            flex: 1 1 auto;
        }

    .a1-row.a1-divided-items > :not(:first-child),
    .a1-column.a1-divided-items > :not(:first-child) {
        overflow: visible;
        position: relative;
    }

        .a1-row.a1-divided-items > :not(:first-child):after {
            content: "";
            position: absolute;
            height: 100%;
            top: 0;
            border-right: 1px solid rgba(0, 0, 0, 0.1);
        }

    .a1-row:not(.a1-reverse) {
        flex-direction: row;
    }

        .a1-row:not(.a1-reverse).a1-spaced-items > :not(:first-child) {
            margin-left: 1rem;
        }

        .a1-row:not(.a1-reverse).a1-half-spaced-items > :not(:first-child) {
            margin-left: 0.5rem;
        }

        .a1-row:not(.a1-reverse).a1-divided-items > :not(:first-child):after {
            left: -0.5rem;
        }

    .a1-row.a1-reverse {
        flex-direction: row-reverse;
    }

        .a1-row.a1-reverse.a1-spaced-items > :not(:first-child) {
            margin-right: 1rem;
        }

        .a1-row.a1-reverse.a1-half-spaced-items > :not(:first-child) {
            margin-right: 0.5rem;
        }

        .a1-row.a1-reverse.a1-divided-items > :not(:first-child):after {
            right: -0.5rem;
        }

    .a1-row.a1-center-items-h {
        justify-content: center;
    }

    .a1-row.a1-center-items-v {
        align-items: center;
        overflow: hidden;
    }

        .a1-row.a1-center-items-v .dropdown {
            position: inherit !important;
        }

            .a1-row.a1-center-items-v .dropdown .dropdown-toggle::after {
                display: none !important;
            }

    .a1-column.a1-divided-items > :not(:first-child):after {
        content: "";
        position: absolute;
        width: 100%;
        left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .a1-column:not(.a1-reverse) {
        flex-direction: column;
    }

        .a1-column:not(.a1-reverse).a1-spaced-items > :not(:first-child) {
            margin-top: 1rem;
        }

        .a1-column:not(.a1-reverse).a1-divided-items > :not(:first-child):after {
            top: -0.5rem;
        }

    .a1-column.a1-reverse {
        flex-direction: column-reverse;
    }

        .a1-column.a1-reverse.a1-spaced-items > :not(:first-child) {
            margin-bottom: 1rem;
        }

        .a1-column.a1-reverse.a1-divided-items > :not(:first-child):after {
            bottom: -0.5rem;
        }

    .a1-column.a1-center-items-h {
        align-items: center;
    }

    .a1-column.a1-center-items-v {
        justify-content: center;
    }

.a1-ltr {
    direction: ltr;
}

.a1-rtl {
    direction: rtl;
}

    .a1-rtl .a1-row:not(.a1-reverse).a1-spaced-items > :not(:first-child), .a1-rtl.a1-row:not(.a1-reverse).a1-spaced-items > :not(:first-child) {
        margin-left: 0;
        margin-right: 1rem;
    }

    .a1-rtl .a1-row:not(.a1-reverse).a1-divided-items > :not(:first-child):after, .a1-rtl.a1-row:not(.a1-reverse).a1-divided-items > :not(:first-child):after {
        left: unset;
        right: -0.5rem;
    }

    .a1-rtl .a1-row.a1-reverse.a1-spaced-items > :not(:first-child), .a1-rtl.a1-row.a1-reverse.a1-spaced-items > :not(:first-child) {
        margin-left: 1rem;
        margin-right: 0;
    }

    .a1-rtl .a1-row.a1-reverse.a1-divided-items > :not(:first-child):after, .a1-rtl.a1-row.a1-reverse.a1-divided-items > :not(:first-child):after {
        left: -0.5rem;
        right: unset;
    }


:root {
    --message-bg-main: #dadbd3;
    --message-dark-green: #009688;
    --message-chat-bg: #e5ddd5;
    --message-scroll-thumb: rgba(0, 0, 0, 0.2);
    --message-scroll-track: rgba(255, 255, 255, 0.08);
    --message-white: #fff;
    --message-black: #000;
    --message-side-panel: var(--message-white);
    --message-text-color: #000;
    --message-secondary-text-color: #00000070;
    --message-secondary-panel: #ededed;
    --message-green: #04d755;
    --message-light-green: #dbf8c6;
    --message-blue: #85cff2;
    --message-icon: #919191;
    --message-grey: #c2c2c2;
    --message-border: #00000014;
    --message-border-lighter: #00000009;
}


::placeholder {
    color: var(--message-grey);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--message-scroll-thumb);
}

::-webkit-scrollbar-track {
    background-color: var(--message-scroll-track);
}

.bg-left-panel-header {
    background-color: var(--message-secondary-panel);
}

.bg-white {
    background-color: var(--message-white);
}

.icon-color {
    color: var(--message-icon);
    cursor: pointer;
}

.secondary-panel {
    color: var(--message-secondary-panel);
}

.grey {
    color: var(--message-grey);
}

.blue {
    color: var(--message-blue);
}


div.container_message {
    position: relative;
    height: 100%;
    top: 0px;
    box-shadow: 0 1px 1px 0 var(--message-border), 0 2px 6px 0 var(--message-border);
}

.aside {
    flex: 30%;
    min-width: 270px;
}

.main {
    flex: 70%;
}

.profile-pic {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

    .profile-pic.side-friend-profile-pic {
        width: 42px;
        height: 42px;
    }

.border-r {
    border-right: 1px solid var(--message-border);
}

.border-b {
    border-bottom: 1px solid var(--message-border);
}

.search, .friends-panel {
    background-color: var(--message-side-panel);
}

.search {
    border-bottom: 1px solid var(--message-border);
}

    .search input[type=text] {
        border: unset;
        background: transparent;
        color: var(--message-text-color);
    }

        .search input[type=text]:focus {
            outline: 0;
        }

.notification,
.pin-wrap {
    align-self: flex-end;
    border-radius: 50%;
}

.pin-wrap {
    background-color: var(--message-grey);
    color: var(--message-white);
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
}

.notification {
    text-align: center;
    background-color: var(--message-green);
    color: var(--message-white);
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
}

.timestamp {
    color: #6c5454;
    margin-right: 10px;
    font-size: 0.8rem;
    overflow: hidden;
}

.message-preview {
    max-width: 90%;
    font-size: 0.9em;
    color: var(--message-secondary-text-color);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.friend i.fa-chevron-down {
    display: none;
}

.friend i.bx-chevron-down {
    display: none !important;
}

.friend:hover {
    cursor: pointer;
    background-color: var(--message-border-lighter);
}

    .friend:hover i.fa-chevron-down {
        display: block;
    }

    .friend:hover i.bx-chevron-down {
        display: flex !important;
    }

.friend.active {
    background-color: var(--message-border);
}

.chat-container {
    /*background-color: var(--message-chat-bg);*/
    background-image: url(/assets/img/robobax_img/banner_white.jpg);
    width: 100%;
    height: 100%;
    position: relative;
    user-select: text !important;
}

.chat-main {
    padding: 1.8em;
}

.text {
    position: relative;
    border-radius: 0.6em;
    max-width: 50%;
    padding: 0.2em 0.6em 0.1em 0.6em;
    color: var(--message-black);
}

    .text.text-recieved {
        align-self: flex-start;
        background-color: var(--message-white);
    }

        .text.text-recieved .bx-x-circle {
            position: relative;
            font-size: 18px;
            float: right;
            margin: -14px;
            color: #eb2c2cad;
            background-color: white;
            border-radius: 50px;
            cursor: pointer;
        }

        .text.text-recieved::after {
            content: "";
            display: block;
            position: absolute;
            width: 0;
            height: 0;
            border: 17px solid transparent;
            border-right-color: var(--message-white);
            border-left: 0;
            border-top: 0;
            top: 0;
            left: -9.5px;
        }

    .text.text-infoRB {
        align-self: flex-start;
        width: 100%;
        max-width: 75%;
        text-align: center;
        background-image: linear-gradient( 135deg, #FDEB71 10%, #F8D800 100%);
        padding: 30px 0;
    }

        .text.text-infoRB img {
            position: relative;
            font-size: 18px;
            margin: -80px;
            color: #eb2c2cad;
            border-radius: 50px;
            float: left;
            z-index: 1;
            margin-top: -65px;
        }

        .text.text-infoRB::after {
            content: "";
            display: block;
            position: absolute;
            width: 0;
            height: 0;
            border: 17px solid transparent;
            border-right-color: #FDEB71;
            border-left: 0;
            border-top: 0;
            top: 0;
            left: -9.5px;
        }

    .text.text-sent {
        align-self: flex-end;
        background-color: var(--message-light-green);
    }

        .text.text-sent .bx-x-circle {
            position: relative;
            font-size: 18px;
            float: left;
            margin: -14px;
            color: #eb2c2cad;
            background-color: white;
            border-radius: 50px;
            cursor: pointer;
        }

        .text.text-sent::after {
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            border: 17px solid transparent;
            border-left-color: var(--message-light-green);
            border-right: 0;
            border-top: 0;
            top: 0;
            right: -9.5px;
        }

.chat-input {
    border: none;
    border-radius: 21px;
    padding-left: 10px;
    padding: 0.8rem 0 0.8rem 12px;
    background-color: var(--message-white);
}

    .chat-input:focus {
        outline: 0;
    }

.fa-1half {
    font-size: 1.5rem;
}

.back-arrow {
    display: none;
}

.a1-row span {
    overflow: hidden !important;
    overflow-wrap: break-word;
}

@media only screen and (max-width: 962px) {
    .main {
        position: fixed;
        right: -100%;
        top: 0;
        bottom: 0;
        width: 100%;
        transition: transform 0.4s;
    }

    .open-message {
        transform: translateX(-100%);
        margin-top: 74px !important;
    }

    .back-arrow {
        display: block;
    }
}

@media only screen and (max-width: 1440px) {
    section.container {
        height: 100%;
        margin: unset;
        top: 0;
    }
}

.spinner_sent {
    display: block;
    margin: auto;
    background-image: conic-gradient(transparent 90deg, black,white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='50' height='50' viewBox='0 0 50 50' xml:space='preserve'%3E%3Ccircle fill='none' stroke='currentColor' stroke-width='4.49213907785336' cx='25' cy='25' r='14'/%3E%3C/svg%3E") 0/100% 100%;
    mask: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='50' height='50' viewBox='0 0 50 50' xml:space='preserve'%3E%3Ccircle fill='none' stroke='currentColor' stroke-width='4.49213907785336' cx='25' cy='25' r='14'/%3E%3C/svg%3E") 0/100% 100%;
    will-change: transform;
    animation: spin_sent 2s linear infinite;
    animation-play-state: running;
    aspect-ratio: 1;
    height: 2rem;
}

@keyframes spin_sent {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



.newMessageButton {
    border: none;
    background-color: #fff;
    color: #2D7FB1;
    height: 40px;
    width: auto;
    position: initial;
    transition: 0.5s;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 3px 2px 6px 0px rgba(143,102,102,0.24);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

    .newMessageButton:hover {
        box-shadow: 2px 1px 8px 0px rgba(143,102,102,0.65) !important;
    }



.img-container {
    max-width: 35%;
    padding: 4px;
}

    .img-container:hover .img-container-drp {
        display: flex;
    }

    .img-container .img-container-drp {
        z-index: 2;
        display: none;
        justify-content: end;
        align-items: baseline;
        height: 11%;
        position: absolute;
        right: 0;
        width: 96%;
        top: 0;
        background: linear-gradient(4deg,rgba(11,20,26,0),rgba(11,20,26,0) 27%,rgba(11,20,26,.17) 94%,rgba(11,20,26,.33));
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
        margin: 5px;
    }


    .img-container .dropdown .bx-chevron-down {
        font-size: 30px;
        color: white;
    }

    .img-container .dropdown .dropdown-menu {
        top: auto;
        margin-top: -10px !important;
        margin-right: -28px !important;
    }

    .img-container .dropdown .dropdown-toggle::after {
        display: none !important;
    }





.file-container {
    width: 100%;
    max-width: 35%;
    padding: 4px;
}

    .file-container:hover .file-container-drp {
        display: flex;
    }

    .file-container .file-container-drp {
        z-index: 2;
        display: none;
        justify-content: end;
        align-items: baseline;
        height: 100%;
        position: absolute;
        right: 0;
        width: 97%;
        top: 0;
        background: linear-gradient(15deg,rgba(11,20,26,0),rgba(11,20,26,0) 75%,rgba(11,20,26,.17) 99%,rgba(11,20,26,.33));
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
        margin: 5px;
    }

    .file-container .dropdown .bx-chevron-down {
        font-size: 30px;
        color: white;
    }

    .file-container .dropdown .dropdown-menu {
        top: auto;
        margin-top: -10px !important;
        margin-right: -28px !important;
    }

    .file-container .dropdown .dropdown-toggle::after {
        display: none !important;
    }

.text-sent.file-container .file--area {
    background-color: #d0eebbad;
    border-radius: 10px;
    z-index: 1;
    position: relative;
}

.text-recieved.file-container .file--area {
    background-color: #f1f1f1ad;
    border-radius: 10px;
    z-index: 1;
    position: relative;
}

.file-container .file--area .file-area-container {
    max-height: 72px;
    display: flex;
}

    .file-container .file--area .file-area-container .file-area-icon {
        width: 64px;
        padding: 5px;
        opacity: .6;
    }

    .file-container .file--area .file-area-container .file-area-detail {
        padding: 5px;
        width: 80%;
    }

        .file-container .file--area .file-area-container .file-area-detail .file-detail-title {
            font-weight: 400;
            font-size: 16px;
            color: black;
            overflow: hidden;
            text-decoration: none;
            max-height: 3rem;
            -webkit-line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            width: 100%;
        }

        .file-container .file--area .file-area-container .file-area-detail .file-detail-info {
            color: gray;
            font-size: 14px;
            overflow: hidden;
            text-decoration: none;
            max-height: 1.5rem;
            -webkit-line-clamp: 1;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            width: 75%;
        }





.message-container {
    padding: 4px;
}

    .message-container:hover .message-container-drp {
        display: flex;
    }

    .message-container .message-container-drp {
        z-index: 2;
        display: none;
        justify-content: end;
        align-items: baseline;
        height: 100%;
        position: absolute;
        right: 0;
        width: 97%;
        top: 0;
        background: linear-gradient(15deg,rgba(11,20,26,0),rgba(11,20,26,0) 75%,rgba(11,20,26,.17) 99%,rgba(11,20,26,.33));
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
        margin: 5px;
    }


    .message-container .dropdown .bx-chevron-down {
        font-size: 30px;
        color: white;
    }

    .message-container .dropdown .dropdown-menu {
        top: auto;
        margin-top: -10px !important;
        margin-right: -28px !important;
    }

    .message-container .dropdown .dropdown-toggle::after {
        display: none !important;
    }



.preview-images {
    padding: 0;
    width: 100%;
    height: 100%;
    background: #d9d9d9;
    display: none;
    overflow: hidden !important;
}

    .preview-images .preview-images-header {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
    }

        .preview-images .preview-images-header .pre-img-header-icon {
            width: 50px;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

            .preview-images .preview-images-header .pre-img-header-icon i {
                background: #c8c7c7;
                border-radius: 50%;
                padding: 5px;
                font-size: 35px;
                color: gray;
                cursor: pointer;
            }

        .preview-images .preview-images-header .pre-images-header-title {
            width: calc(100% - 50px);
            text-align: center;
        }

        .preview-images .preview-images-header .pre-images-header-title span {
            font-size: 18px;
            text-decoration: none;
            max-height: 1.5rem;
            -webkit-line-clamp: 1;
            display: -webkit-box;
            -webkit-box-orient: vertical;
        }

    .preview-images .preview-images-content {
        width: 100%;
        height: calc(100% - 55px);
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: scroll;
    }

        .preview-images .preview-images-content .pre-content-img {
            max-width: 35%;
            max-height: 100%;
        }

            .preview-images .preview-images-content .pre-content-img img {
                border-radius: 5px;
                z-index: 1;
                position: relative;
                width: 100%;
                box-shadow: 0px 0px 13px 0px rgba(0,0,0,0.75);
                max-height: 50% !important;
                height: calc(100% - 100px);
            }




.preview-file {
    padding: 0;
    width: 100%;
    height: 100%;
    background: #d9d9d9;
    display: none;
    overflow: hidden !important;
}

    .preview-file .preview-file-header {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
    }

        .preview-file .preview-file-header .pre-file-header-icon {
            width: 50px;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

            .preview-file .preview-file-header .pre-file-header-icon i {
                background: #c8c7c7;
                border-radius: 50%;
                padding: 5px;
                font-size: 35px;
                color: gray;
                cursor: pointer;
            }

        .preview-file .preview-file-header .pre-file-header-title {
            width: calc(100% - 50px);
            text-align: center;
        }

            .preview-file .preview-file-header .pre-file-header-title span {
                font-size: 18px;
                text-decoration: none;
                max-height: 1.5rem;
                -webkit-line-clamp: 1;
                display: -webkit-box;
                -webkit-box-orient: vertical;
            }

    .preview-file .preview-file-content {
        width: 100%;
        height: calc(100% - 50px);
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

        .preview-file .preview-file-content .pre-content-icon {
            max-width: 35%;
        }

            .preview-file .preview-file-content .pre-content-icon img {
                border-radius: 5px;
                z-index: 1;
                position: relative;
                width: 100%;
                background: transparent;
                opacity: .6;
            }

        .preview-file .preview-file-content .pre-content-title {
            margin-top: 25px;
        }

            .preview-file .preview-file-content .pre-content-title span {
                font-size: 25px;
                color: #9d9d9d;
            }

        .preview-file .preview-file-content .pre-content-info span {
            font-size: 18px;
            color: #9d9d9d;
        }




/*------start css img modal-------*/

a.lightbox img {
    cursor: pointer;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}


.lightbox-target {
    position: fixed;
    top: -100%;
    width: 100%;
    background: rgba(231,245,248,.6);
    width: 100%;
    opacity: 0;
    -webkit-transition: opacity .5s ease-in-out;
    -moz-transition: opacity .5s ease-in-out;
    -o-transition: opacity .5s ease-in-out;
    transition: opacity .5s ease-in-out;
    overflow: hidden;
    z-index: 9;
}


    .lightbox-target img {
        margin: auto;
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 0%;
        max-width: 0%;
        box-shadow: 0px 0px 46px 49px rgba(231,245,248,1);
        box-sizing: border-box;
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        display: none;
    }


a.lightbox-close {
    display: none;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    background: white;
    color: black;
    text-decoration: none;
    position: absolute;
    top: -80px;
    right: 0;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}


    a.lightbox-close:before {
        content: "";
        display: block;
        height: 30px;
        width: 2px;
        background: white;
        position: absolute;
        left: 24px;
        top: 10px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }


    a.lightbox-close:after {
        content: "";
        display: block;
        height: 30px;
        width: 2px;
        background: white;
        position: absolute;
        left: 24px;
        top: 10px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

.lightbox-target p {
    bottom: 0px;
}

.lightbox-target-open {
    display: flex;
    opacity: 1;
    top: 0;
    bottom: 0;
    left: 0;
    max-height: 2000px;
    overflow-y: scroll;
    z-index: 999;
}


    .lightbox-target-open img {
        max-height: 2000px;
        max-width: 50%;
        display: block;
    }

    .lightbox-target-open .lightbox-close {
        display: flex;
        width: 50px;
        height: 50px;
        box-sizing: border-box;
        background: #7f7f7f;
        color: white;
        text-decoration: none;
        position: absolute;
        top: 20px;
        right: 20px;
        transition: .5s ease-in-out;
        cursor: pointer;
        border-radius: 15px;
        position: fixed;
    }
/*------end css img modal-------*/
