/* 

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   
}
.container-chatbox-color {
    position: fixed; 
    bottom: 20px;   
    right: 20px;      
    z-index: 1000;    
    animation: riseUp 0.8s ease-out forwards; 
}
.chat{
    margin-top: auto;
    margin-bottom: auto;
}
.card{
    height: 500px;
    border-radius: 15px !important;
    background-color: rgba(0,0,0,0.4) !important;
 
    
}
.contacts_body{
    padding:  0.75rem 0 !important;
    overflow-y: auto;
    white-space: nowrap;
}
.msg_card_body{
    overflow-y: auto;
}
.card-header{
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 0 !important;
}
.card-footer{
    border-radius: 0 0 15px 15px !important;
    border-top: 0 !important;
}
.container{
    align-content: center;

}
.search{
    border-radius: 15px 0 0 15px !important;
    background-color: rgba(0,0,0,0.3) !important;
    border:0 !important;
    color:white !important;
}
.search:focus{
    box-shadow:none !important;
    outline:0px !important;
}
.type_msg{
    background-color: rgba(0,0,0,0.3) !important;
    border:0 !important;
    color:white !important;
    height: 60px !important;
    overflow-y: auto;
}
.type_msg:focus{
    box-shadow:none !important;
    outline:0px !important;
}
.attach_btn{
    border-radius: 15px 0 0 15px !important;
    background-color: rgba(0,0,0,0.3) !important;
    border:0 !important;
    color: white !important;
    cursor: pointer;
}
.send_btn{
    border-radius: 0 15px 15px 0 !important;
    background-color: rgba(0,0,0,0.3) !important;
    border:0 !important;
    color: white !important;
    cursor: pointer;
}
.search_btn{
    border-radius: 0 15px 15px 0 !important;
    background-color: rgba(0,0,0,0.3) !important;
    border:0 !important;
    color: white !important;
    cursor: pointer;
}
.contacts{
    list-style: none;
    padding: 0;
}
.contacts li{
    width: 100% !important;
    padding: 5px 10px;
    margin-bottom: 15px !important;
}
.active{
    background-color: rgba(0,0,0,0.3);
}
.user_img{
    height: 70px;
    width: 70px;
    border:1.5px solid #f5f6fa;

}
.user_img_msg{
    height: 40px;
    width: 40px;
    border:1.5px solid #f5f6fa;

}
.img_cont{
    position: relative;
    height: 70px;
    width: 70px;
}
.img_cont_msg{
    height: 40px;
    width: 40px;
}
.online_icon{
    position: absolute;
    height: 15px;
    width:15px;
    background-color: #4cd137;
    border-radius: 50%;
    bottom: 0.2em;
    right: 0.4em;
    border:1.5px solid white;
}
.offline{
    background-color: #c23616 !important;
}
.user_info{
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 15px;
}
.user_info span{
    font-size: 20px;
    color: white;
}
.user_info p{
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}
.video_cam{
    margin-left: 50px;
    margin-top: 5px;
}
.video_cam span{
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
}
.msg_cotainer{
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
    border-radius: 25px;
    background-color: #82ccdd;
    padding: 10px;
    position: relative;
}
.msg_cotainer_send{
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 10px;
    border-radius: 25px;
    background-color: #78e08f;
    padding: 10px;
    position: relative;
}
.msg_time{
    position: absolute;
    left: 0;
    bottom: -15px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
}
.msg_time_send{
    position: absolute;
    right:0;
    bottom: -15px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
}
.msg_head{
    position: relative;
}
#action_menu_btn{
    position: absolute;
    right: 10px;
    top: 10px;
    color: white;
    cursor: pointer;
    font-size: 20px;
}
.action_menu{
    z-index: 1;
    position: absolute;
    padding: 15px 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border-radius: 15px;
    top: 30px;
    right: 15px;
    display: none;
}
.action_menu ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
.action_menu ul li{
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 5px;
}
.action_menu ul li i{
    padding-right: 10px;

}
.action_menu ul li:hover{
    cursor: pointer;
    background-color: rgba(0,0,0,0.2);
}
@media(max-width: 576px){
    .contacts_card{
        margin-bottom: 15px !important;
    }
}




@keyframes riseUp {
    0% {
        transform: translateY(100px);
        opacity: 0; 
    }
    100% {
        transform: translateY(0); 
        opacity: 1; 
    }
} */
/* General body styling to avoid any body overflow */
/* General body styling to avoid any body overflow */


/* General body styling to avoid any body overflow */


/* General body styling to avoid any body overflow */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
}

/* Container that holds the chatbox */
.container-chatbox-color {
    position: fixed;  /* Fixes the chatbox to the bottom-right */
    bottom: 70px;     /* 20px from the bottom of the screen */
    right: 20px;      /* 20px from the right of the screen */
    width: 350px;     /* Width of the chatbox */
    height: 450px;    /* Height of the chatbox */
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: riseUp 0.8s ease-out forwards;  /* Optional rise-up animation */
}

/* Optional animation to bring the chatbox in */
@keyframes riseUp { 
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header section of the chatbox */
.card-header {
    background-color: #007bff;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 10px;
}

/* Card body, where messages appear */
.card-body {
    overflow-y: auto;
    height: 300px; /* Adjust height to ensure scrolling when there are too many messages */
    padding: 10px;
    background-color: #f9f9f9;
}

/* Individual message container */
.d-flex {
    margin-bottom: 10px;
}

.img_cont_msg {
    margin-right: 10px;
}

/* Message bubbles for both the user and the bot */
.msg_cotainer {
    max-width: 75%;
    background-color: #e1e1e1;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    word-wrap: break-word;
}

.msg_cotainer_send {
    background-color: #007bff;
    color: white;
    text-align: right;
}

/* Bot avatar styling */
.user_img_msg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Card footer - where users input messages */
.card-footer {
    background-color: #f1f1f1;
    padding: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Textarea for typing messages */
.type_msg {
    width: calc(100% - 60px); /* To make space for the send button */
    height: 40px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    resize: none;
    font-size: 14px;
    margin-right: 10px;  /* Added margin to create space for the send button */
}
#text{
    font-weight: bold;
}
.avataricon{
    margin-bottom: 20px;
    /* border: 2px solid red; */

}

.msg_cotainer{
    margin-top: 10px;
}
/* Send button */
.send_btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

/* Send button hover effect */
.send_btn:hover {
    background-color: #0056b3;
}

/* Input group styling for the footer */
.input-group {
    display: flex;
    align-items: center;
}

/* Icon for attach button (not currently in use but can be customized later) */
.attach_btn {
    color: #007bff;
    font-size: 18px;
}

/* Styling for the user info text */
.user_info span {
    font-size: 16px;
    color: white;
    
}
.user_info {
    margin-top: 20px;
}

/* Avatar styling */
.img_cont {
    position: relative;
}

.online_icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    border: 2px solid white;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .container-chatbox-color {
        bottom: 50px;
        width: 280px; /* Adjust width for smaller screens */
        /* height: 50px; Adjust height for smaller screens */
    }

    .card-footer {
        padding: 5px;  /* Reduce padding for smaller screens */
    }

    .type_msg {
        width: calc(100% - 50px); /* Adjust text area width */
    }

    .send_btn {
        padding: 8px; /* Reduce padding for the send button */
        font-size: 18px; /* Adjust button font size */
    }
}
