/* Define the animation */
@keyframes slideIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


#chatbot-interface {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding: 0;
    width: 360px;
    height: 570px;
    border-radius: 16px;
     position: fixed;
     bottom: 50px;
     right: 50px;
     z-index: 999;
     display: none;
     background-color: #fff;
     flex-direction: column;
     justify-content: space-between;
     overflow-y: auto;
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 0.3s ease, transform 0.3s ease;
 
 }
 /* Extra small devices (phones, 600px and down) */
 
@media only screen and (max-width: 600px) {
    #chatbot-interface {
        width: 100%;
        height: 100%;
        border-radius: 0;
        bottom: 0;
        right: 0;   
    }
}

 #chatbot-interface.chatbot-interface-active{
     display: flex !important;
     animation: slideIn 0.3s ease forwards;

 }
 #chatbot-messages {
     padding: 20px;
     height: 300px;
     overflow-y: auto;
     flex:1;
    transition: margin-top 0.25s ease; /* Animates sliding up */
    margin-top: 0; /* Initial margin (no sliding effect initially) */
  }
  
  #chatbot-messages.slide-up {
    margin-top: -150px; /* Adjust based on the height you want to slide up */
  }
 .chatbot-message {
     padding: 8px;
     margin-bottom: 16px;
     border-radius: 5px;
 
 }
 .chatbot-messages_textField {
   display: flex;
   align-items: center;
   border-top: 1px solid #EBEBEB;
 }
 .chatbot-messages_textField #chatbot-input{
   border: 0;
   padding:0;
 }
 .chatbot-messages_textField input:focus {
   outline: none;
 }
 #chatbot-submit{
   display: flex;
   align-items: center;
     cursor: pointer ;
 }
 .bot-message {
    background-color: #F2F4F5;
     font-size: 14px;
     padding: 10px;
     text-align: left;
     border-radius: 0 10px 10px 10px;
 }
 .user-message {
     background-color: #4D8CFE;
     color: #fff;
     font-size: 14px;
     padding: 10px;
     text-align: right;
     border-radius: 10px 10px 0 10px;
}
.chatbot-messages_textField {
     display: flex;
     align-items: center;
     justify-content: space-between ;
     width: 100%;
     border-top: 1px solid #EBEBEB;
     padding: 16px;
     gap: 20px;
 }
 
 #chatbot-header {
     background-color: #4D8CFE;
     display: flex;
     align-items: center;
     padding: 16px;
     border-radius: 16px 16px 0 0;
     color: #F8F8F8;
     gap: 16px;
     width: 100%;
 
 }
 .active_dot {
     position: absolute;
     width: 12px;
     height: 12px;
     border: 2px solid #4D8CFE;
     background-color: #95CF48;
     z-index: 999999999;
     border-radius: 20px;
     bottom: 7px;
     right: -2px;
 
 }
 #chatbot-header p {
     margin: 0;
 
 }
 .header-title {
     font-size: 18px;
     font-weight: bold ;
 }
 
 .header-avatar {
     position: relative
  }
 .chatbot-header-right {
     display: flex;
     gap: 20px;
     flex-grow: 1;
 }
 #closeChatbot {
    cursor: pointer ;
 }
 #chatbot-welcoming {
     background-color: #4D8CFE;
     color: #fff;
     font-size: 28px;
     font-weight: 500;
     padding: 20px;
     min-height: 150px;
     display: flex;
     flex-direction: column;
     justify-content: end;
     transition: opacity 0.25s ease, height 0.5s ease;
     opacity: 1;
     height: auto;
     overflow: hidden;
     }
  
  #chatbot-welcoming.fade-out {
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    }
 .chatbot-welcoming-hi-text {
     color: color(srgb 0.745 0.8358 1) !important;
 }
 
 #fixed-button {
     position: fixed;
     bottom: 50px;
     right: 50px;
     background: #353D4B;
     width: 60px;
     height: 60px;
     border-radius: 16px;
     display: flex;
     align-items: center;
     justify-content: center; 
     z-index: 1;
     cursor: pointer;
     transition: transform 0.2s ease;
 
 }

 #fixed-button img{
    max-width: 48px;
    border-style: none;
 }

 #chatbot-interface img{
    border-style: none;
 }