﻿@import 'https://fonts.googleapis.com/css?family=Noto+Sans';

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --numofmessages: "0";
}
/*  

    this is the message about the bosch items like dalt

*/
#message-box {
    display: none;
    background: #f4f4f4;
    position: fixed;
    bottom: 0;
    right: 10px;
    z-index: 999999 !important;
    border: 3px solid rgba(1,41,112,.1);
    border-radius: .3rem;
}

    #message-box .header {
        border-bottom: 2px solid rgba(1,41,112,.3);
        padding: .3rem .7rem;
    }

#dropdown-message {
    overflow-y: auto;
    padding: .3rem;
    background: #fff;
}

    #dropdown-message .friend-drawer:not(:last-child) {
        border-bottom: 2px solid rgba(1,41,112,.1);
    }

#discussion {
    height: 400px;
    overflow-y: auto;
    padding: .5rem;
    background: #fff;
}

    #discussion::-webkit-scrollbar,
    #users::-webkit-scrollbar {
        width: 10px;
    }

    #discussion::-webkit-scrollbar-track,
    #users::-webkit-scrollbar-track {
        /*background: #f1f1f1;*/
        background: #a5a5a5;
    }

    #discussion::-webkit-scrollbar-thumb,
    #users::-webkit-scrollbar-thumb {
        background: #0084ff;
    }


.status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: blue;
}

.profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.image-container {
    position: relative;
}

    .image-container::after {
        content: var(--numofmessages);
        position: absolute;
        right: 5px;
        top: 5px;
        width: 15px;
        height: 15px;
        font-size: 10px;
        color: #fff;
        text-align: center;
        vertical-align: middle;
        border-radius: 50%;
        background: red;
    }

.search-box {
    background: #fafafa;
    padding: 10px 13px;
}

    .search-box .input-wrapper {
        background: #fff;
        border-radius: 40px;
    }

        .search-box .input-wrapper i {
            color: grey;
            margin-left: 7px;
            vertical-align: middle;
        }

input {
    border: none;
    border-radius: 30px;
    width: 80%;
    color: #000;
}

    input::placeholder {
        color: #000;
        font-weight: 300;
        margin-left: 20px;
    }

    input:focus {
        outline: none;
    }

.friend-drawer {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    vertical-align: baseline;
    background: #fff;
    transition: 0.3s ease;
}

.friend-drawer--grey {
    background: #eee;
}

.friend-drawer .text {
    margin-left: 12px;
    width: 70%;
}

    .friend-drawer .text h6 {
        margin-bottom: 0;
    }

    .friend-drawer .text p {
        margin: 0;
        overflow-wrap: anywhere;
        max-height: 100px;
        overflow: hidden;
    }

.friend-drawer .time {
    color: grey;
}

.friend-drawer--onhover:hover {
    background: #74b9ff;
    cursor: pointer;
}

    .friend-drawer--onhover:hover p,
    .friend-drawer--onhover:hover h6,
    .friend-drawer--onhover:hover .time {
        color: #fff !important;
    }

.chat-bubble {
    padding: 10px 14px;
    margin: 10px 30px;
    border-radius: 9px;
    width: fit-content;
    overflow-wrap: anywhere;
    position: relative;
}

    .chat-bubble:last-child {
        animation: fadeIn .3s ease-in;
    }

.chat-bubble--left {
    margin-right: auto;
    border-radius: .5rem .5rem .5rem 0;
    background: #F0F0F0;
    color: #232323;
}

.chat-bubble--right {
    /*background: #34c759;*/
    background: #0084ff;
    margin-left: auto;
    border-radius: .5rem .5rem 0 .5rem;
    color: #fff;
}
/*
.chat-bubble:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-bottom: 0;
    margin-top: -10px;
}*/

/*.chat-bubble--left:after {
    left: 0;
    border-right-color: #0e82fd;
    border-left: 0;
    margin-left: -20px;
}
*/
/*.chat-bubble--right:after {
    right: 0;
    border-left-color: #34c759;
    border-right: 0;
    margin-right: -20px;
}*/

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.offset-md-9 .chat-bubble {
    background: #74b9ff;
    color: #fff;
}

.chat-box-tray {
    background: #eee;
    display: flex;
    align-items: baseline;
    align-items: center;
    margin: .3rem 0;
    bottom: 0;
}

    .chat-box-tray i {
        color: grey;
        vertical-align: middle;
    }

.scale-removed {
    scale: inherit !important;
}


.swal2-container {
    z-index: 99999999999999 !important
}

#message-box.index-removed {
    z-index: 0 !important;
}

#users {
    height: 450px;
    overflow: auto;
}

    #users .friend-drawer {
        padding: 0 .3rem;
    }

#sendmessage {
    border-radius: 50% !important;
    padding: .3rem !important;
}

    #sendmessage i {
        text-align: center;
        font-size: 20px;
        display: block !important;
    }

#message {
    border-radius: 1.5rem !important;
}

#popup {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    scale: 1;
    transition: all .1s linear;
    z-index: 999999999999;
    width: 100px;
    height: max-content;
    padding: .5rem;
    border: 2px solid rgba(1,41,112,.1);
    border-radius: .3rem;
}

@media(max-width:750px) {
    #message-box {
        width: 95%;
        right: 50%;
        transform: translate(50%,0);
    }
}
