/** theme white **/
:root {
    --base-theme: #02afc1;
    --base-orange: #faa51a;
}
body.white {
    background-color: #fff;
    color: #121212;
}
body.white a {
    color: #333 !important;
}
body.white a:hover {
    color: #000 !important;
}

body.white .chat-box {
    background: #fff !important;
}
body.white .chat-box strong {
    color: #050505;
}
body.white .profile-section {
    background: #f4f4f6;
}
body.white .profile-img img {
    border: 2px solid var(--base-theme);
}
body.white .bg-secondary {
    background-color: #bbb !important;
}
body.white .profile--user {
    border: 1px solid #02afc1 !important;
}
body.white textarea {
    background-color: #f3f3f4 !important;
    color: #050505 !important;
}
body.white .form-control:focus{
    border-color: var(--base-theme) !important;
}
body.white .messages {
    background: #f2f2f3;
}
body.white .chat--own {
    background: var(--base-theme);
    color: #fff;
}
body.white .chat--client {
    background: #fff !important;
    border-radius: 25px !important;
    width: fit-content !important;
}



body {
    background-color: #121212;
    color: white;
}

a, a:hover {
    color: orange;
}
textarea{
    min-height: 60px;
    height: 60px;
    border-radius: 30px !important;
    padding: 15px 20px 15px 20px !important;
}
textarea:focus {
    box-shadow: none !important;
}
::placeholder {
color: #b0b1b5 !important;
opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Edge 12 -18 */
color: #b0b1b5 !important;
}


.menu-mobile {
    display: none;
}
.chat-container {
    display: flex;
    height: 100vh;
}
.chat-box {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: #1e1e1e;
}

.messages {
    height: 100%;
    overflow-y: auto;
    background: #222;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.chat-input {
    margin-top: 10px;
    position: relative;
}

.profile-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #2b2b2b;
}
.profile-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}
.btn-send, .btn-load {
    background-color: orange;
    color: black;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: absolute;
    top:1px;
    right:10px;
    font-size: 1.3rem;
}
.btn-send:hover, .btn-load:hover {
    background-color: #ffc252;
    color: #000;
}
.btn-load {
    display: none;
}
.profile--user {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    place-items: center;
    overflow-y: scroll;  
    position: relative;  
    z-index: 1;        
}
.profile--user img, .profile--user .online {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.profile--user img {
    object-fit: cover;
    object-position: center;
    position: relative;
    text-align: center;
    border: 1px solid #fff;
}
.profile--user .online:after{
    content: "";
    position: absolute;
    top: 2px; 
    right: 2px;
    width: 15px; 
    height: 15px;
    background-color: green;
    border-radius: 50%;
    border: 2px solid white;
}
.tag--user {
    margin-right: auto;
    margin-bottom: -12px;
    margin-left: 15px;
    background-color: #fff;
    padding: 0px 10px;
    font-size: .75rem;
    color: #000;
    z-index: 2;
}
.grid--social {
    display: grid;
    grid-template-columns: repeat(3,56px);
    gap: 5px;
    place-items: center;
    justify-content: center;
}
.faq-top li:hover {
    background-color: transparent;
    cursor: pointer;
}

.chat--own {
    padding: 8px 20px;
    border-radius: 25px;
    max-width: 75%;
    display: block;
    font-size: 1rem;
    background-color: #6c757d;
    word-wrap: break-word;
    white-space: pre-line;
    margin-left: auto;
}
.chat--client {
    padding: 8px 20px;
    display: block;
    font-size: 1rem;
    white-space: pre-wrap;
    
}
.vh100 {
    height: 100vh;
}
.profile {
    position: absolute;
    top: 20px;
    right: 5px;
}
.profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.display--name {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 0.6rem;
    max-width: 60px;
    width: 60px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile--user::-webkit-scrollbar {width: 8px;height: 8px;}
.profile--user::-webkit-scrollbar-track {-webkit-box-shadow: inset 0 0 10px rgb(250, 250, 250);cursor: pointer;}
.profile--user::-webkit-scrollbar-thumb {background: rgba(0,0,0,.2);outline: 0;border-radius: 26px;}

#chatBox::-webkit-scrollbar {width: 8px;height: 8px;}
#chatBox::-webkit-scrollbar-track {-webkit-box-shadow: inset 0 0 10px rgb(250, 250, 250);cursor: pointer;}
#chatBox::-webkit-scrollbar-thumb {background: rgba(0,0,0,.2);outline: 0;border-radius: 26px;}


/** loading typing **/

.typing {
    background: #6c757d;
    height: 40px;
    width: 100px;
    border-radius: 25px;
    justify-content: center;
    align-items: center;
}
.typing-indicator {
display: flex;
align-items: center;
gap: 4px;
}

.typing-indicator span {
width: 8px;
height: 8px;
background-color: #bbb;
border-radius: 50%;
animation: typing 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}
.profile-sidebar {
    overflow-y: scroll;
}

@keyframes typing {
0% { opacity: 0.3; transform: translateY(0); }
50% { opacity: 1; transform: translateY(-3px); }
100% { opacity: 0.3; transform: translateY(0); }
}



@media screen and (max-width: 992px){
    .menu-mobile {
        display: block;
        z-index: 9999;
        position: relative;
        font-size: 1.5rem;
        padding: 10px 0 0 25px;
    }
}