:root{
    --dark-color: #222222;
    --icon-color: #fff;
    --font-size-p: 14px;
    --color-descrp: #555;
    --color-titre-h3: #3a3a3a;
    --body-color: #f5f6f9;
    --text-color: #666666;
    --border-color: #6666662a;
    --font-siz-p-mobil: 12px;
    --font-size-h1: 16px;
}
*{
    /* margin: 0;padding: 0; */
    box-sizing: border-box;
    outline: none;border: none;
    text-decoration: none;
    font-family: 'poppins', sans-serif;
}

ul,li,a{
    text-decoration: none;
  }
  #userModal{
    color : var(--color-titre-h3);
  }

.btn,
.delete-btn{
    width: 100%;
    border-radius: 5px;
    padding: 10px 30px;
    color: var(--white);
    display: block;
    text-align: center;
    cursor: pointer;
    font-size: 20px;
    margin-top: 10px;
}
.btn{ 
    background: var(--dark-color);
}
.btn:hover{ 
    background: var(--color-titre-h3);
}
.delete-btn{
    background: var(--dark-color);
}
.delete-btn:hover{
    background: var(--dark-red);
}
.form-container{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.form-container form{
    padding: 20px;
    background: var(--white);
    box-shadow: var(--box-shadow);
    text-align: center;
    width: 500px;
    border-radius: 5px;
}
.form-container form h3{
    margin-bottom: 10px;
    font-size: 30px;
    color: var(--color-titre-h3);
    text-transform: uppercase;
}
.alert{
    margin: 10px 0;
    width: 100%;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    background: var(--red);
    font-size: 20px;
    color: var(--white);
}
.form-container form .box{
    width: 100%;
    border-radius: 5px;
    padding: 12px 14px;
    color: var(--dark-color);
    font-size: 18px;
    margin: 10px 0;
    background: var(--light-bg);
}

.form-container form p{
    margin-top: 15px;
    font-size: 20px;
    color: var(--primary-color);
}
.form-container form p a{
    color: var(--color-titre-h3);
}
.form-container p a:hover{
    text-decoration: underline;
}
.container-chat{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.container-chat .users{
    padding: 20px;
    background: var(--white);
    box-shadow: var(--box-shadow);
    width: 400px;
    border-radius: 5px;
}
.container .users .profile{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
}

.content-chat img{
    height: 50px;
    width: 50px;
    border-radius: 50px;
    object-fit: cover;
    background-position: center;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}
header .content-chat{
    display: flex;
    align-items: center;
}
 .content-chat .details{
    margin-top: 10px;
    color: var(--color-titre-h3);
    margin-left: 10px;
}
.content-chat span{
   font-size: 14px;
   font-weight: 500;
}
.content-chat p{
    font-size: 14px;
}
header .logout{
    display: block;
     background: var(--color-descrp);
    color: var(--icon-color);
    padding: 7px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 17px;
    cursor: pointer;
}

.all_users .content-chat{
    display: flex;
    align-items: center;
}
.all_users .details{
    margin-left: 10px;
    color:var(--color-titre-h3);
}
.all_users a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 15px;
    padding-right: 15px;
}
.all_users a:last-child{
    margin-bottom: 0;
}
.all_users a .status-dot{
    background:rgb(2, 143, 2);;
    padding-left: 10px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
}
.all_users a .status-dot.offline{
    background: #ccc;
}



/* update profile */
.update-profile{
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.update-profile form{
    padding: 15px;
    background: var(--white);
    box-shadow: var(--box-shadow);
    text-align: center;
    width: 600px;
    border-radius: 5px;
}
.update-profile form img{
    height: 200px;
    width: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}
.update-profile form .flex{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}
.update-profile form .flex .inputBox{
    width: 49%;
}
.update-profile form .flex .inputBox span{
    text-align: left;
    display: block;
    margin-top: 12px;
    font-size: 17px;
    color: var(--primary-color);
}
.update-profile form .flex .inputBox .box{
    width: 100%;
    border-radius: 5px;
    padding: 12px 14px;
    color: var(--dark-color);
    font-size: 18px;
    margin: 10px 0;
    background: var(--border-color);
}

.modal-body{
    display: flex;
    flex-direction: column;
}

/* chat area */
.chat-area{
    border-radius: 16px;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
                0 32px 64px -48px rgba(0,0,0,0.5);
                
}
.chat-area header{
    display: flex;
    align-items: center;
    /* padding: 18px 30px; */
}
.chat-area header .back-icon img{
    height: 20px;
    width: 25px;
}
.chat-area header img{
    height: 45px;
    width: 45px;
    margin: 0px 5px;
    border-radius: 50px;
}
.chat-box{
    position: relative;
    height: 100%;
    /* min-height: 680px; */
    max-height: 90vh;
    overflow-y: auto;
    padding: 10px 30px 20px 30px;
    background: #f7f7f7;
    box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
                inset 0 -32px 32px -32px rgb(0 0 0 / 5%); 
 scrollbar-width: none;
}
.chat-box::-webkit-scrollbar{
    width: 0;
}
.chat-box .text{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    position: absolute;
    gap: 10px;
    top: 30%;
    left: 50%;
    width: calc(100% - 50px);
    text-align: center;
    transform: translate(-50%, -50%)
}
.chat-box .text img{
    height: 150px;
    width: 150px;
    border-radius: 50%;
}
.chat-box .chat{
    margin: 15px 0;

}
.chat-box .chat:focus img{
    background: none !important;
    box-shadow:none !important; 
}
.chat-box .chat p{
    word-wrap: break-word;
    padding: 8px 16px;
    box-shadow:  0 0 32px rgb(0 0 0 / 8%),
                 0rem 16px 16px -16px rgb(0 0 0 / 10%);
}
.chat-box .outgoing{
    display: flex;
}
.chat-box .outgoing .details{
    margin-left: auto;
    max-width: calc(100% - 130px);
}
.outgoing .details p{
    background: var(--border-color);
    color: var(--color-titre-h3);
    border-radius: 18px 18px 0 18px;
}

.outgoing .details  .imagechat{
    padding: 10px;
    box-shadow:  0 0 32px rgb(0 0 0 / 8%),
    0rem 16px 16px -16px rgb(0 0 0 / 10%);
   

}
.outgoing .details img{
   width: 120px;
   height:100px;
   object-fit: cover;
}
.incoming{
    display: flex;
    align-items: flex-end;
}
.incoming img{
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
}
.incoming .details{
    margin-right: auto;
    margin-left: 10px;
    max-width: calc(100% - 130px);
}
.incoming .details p{
    background: var(--border-color);
    color: var(--color-titre-h3);
    border-radius: 18px 18px 18px 0;
}
.incoming .details img{
    height: 90px;
    width: 90px;
    object-fit: cover;
    border-radius: 0;
}
.typing-area{
    width: 100%;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
  
}
.typing-area input{
    width: 100%;
    font-size: 16px;
    padding: 8px 13px;
    border:2px solid #ddd;
    border-radius: 5px 0 0 5px;
    overflow-y: scroll;

}

.typing-area .image{
    width:40px;
    background: transparent;
    cursor: pointer;
    background: var(--border-color) !important;
    border: none !important;
    color: var(--icon-color);
}
.typing-area .image i{
   font-size: 20px; 
   color: var(--icon-color);
}
.typing-area .send_btn{
    width: 40px;
    background:var(--border-color) !important;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    pointer-events: none;
    justify-content: center;
    align-items: center;
    display: flex;
    border: none !important;
}
.typing-area .send_btn.active{
    opacity: 1;
    pointer-events: auto;
}
.typing-area .send_btn i{
    font-size: 20px;
    color: var(--icon-color);
}

.modal-content h2{
        font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}
@media (max-width:991px){
   .modal-dialog .modal-lg {
        max-width: 100% !important;
        margin: 0 !important;
    }
    .modal-content{
        margin-top: -20px;
    }
    .modal-content {
        width: 100% !important;
        height: 102vh !important; 
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .typing-area {
        width: 100%;
        padding: 0 5px;
       
    }
    .chat-box{
        width: 100%;
    }
    
   
/* 
    .container-chat{
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;left: 0;right: 0;
        padding: 0;display: block;
        overflow-y: hidden;
    } */
    .container-chat .users{
        position: absolute;
        height: 100%;
        width: 100%;
    }

    
        .update-profile{
        min-height: 50vh;
        padding: 0;
        height: 100%;
    }
    .update-profile form .flex{
        flex-wrap: wrap;
        gap: 0;
    }
    .update-profile form .flex .inputBox{
        width: 100%;
    }
    .form-container form{
        box-shadow: none;
        border: none;
    }
    .chat-box{
    flex: 1;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    max-height: 70vh;
    background:#fff; 

    }
    .image i{
        font-size:16px;
        
    }
}


@media (max-width:768px) {
    .modal-content {
        height: 100vh !important; 
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        position: fixed !important;
        margin-top: 0 !important;
    }

    
    .typing-area {
        position: relative;
        top: -50px;
    }

    
}