/* chat bos */
#chatbox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 391px;
    height: 543px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0E1EB; 
    display: none;
    transition: all 0.4s ease-in-out;
    z-index: 999999 !important;
            
}
.header-chart-logo{
    padding: 20px 0px;
    transition: height 0.5s ease;
    height: 234px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: linear-gradient(0deg, rgba(0,21,56,1) 0%, rgba(0,132,215,1) 81%, rgba(0,154,246,1) 96%, rgba(0,159,239,1) 97%);
}

.header-chart-logo .card{
    width: 94%;
    border-radius: 12px;
    position: absolute;
    top: 27%;
    margin: 10px;
}
.header-chart-logo .row{
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
}
/* #header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    overflow: visible;
}
#header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white; 
    z-index: -1;
} */

#logo {
    max-width: 50px;
    height: 50px;
    margin-left: 0px;
    position: relative;
    z-index: 1;
}
#logo1 {
  padding: 0px;
    max-width: 60px;
    height: 60px;
    margin-left: 0px;
    position: relative;
    z-index: 1;
}
#ai-introduction {
    margin: 40px 20px;
    color: #000; 
    max-width: 90%; 
    font-size: 16px; 
    line-height: 1.4;
    display: block;
    visibility: visible;
}
#ai-introduction h4 {
    font-weight: 400;
    color: #fff;
}
#ai-introduction h2{
    font-weight: 700;
    color: #fff;

}

#messages {
    max-height: 360px;
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 20px; 
    margin-top:60px;
}
 .message-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.message-container.ai {
    align-items: flex-start;
}

.user_message, .ai_message {
    margin: 5px;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    max-width: 80%; 
    transition: all 0.3s ease-in;

}

.user_message {
    background-color: #007BFF;
    color: #fff;
    float: right;
    clear: both; 
}
.user_message .timestamp {
    color: #e0e0e0;
}
.ai_message {
    background-color: #f4f7f9;
    float: left; 
    clear: both;
}
.timestamp {
    font-size: 0.8em;
    color: gray;
    margin-top: 5px;
    display: block;
}

#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    bottom: 0px;
    background: #EDEDF8;
    width: 100%;

}
 #chatbox {
    z-index: 2;
    bottom: 65px;
}
 #chatBubble:hover, button:hover {
    transform: scale(1.1);
}
#chatBubble {
    z-index: 3;
    bottom: 20px;
}
#chatBubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    
}

#chatBubble i.fa-xmark {
    display: none;
    font-size: x-large;
}

#inbuild-tags{
    position: absolute;
    bottom: 70px;
    right:0px;
    align-items: end;
    padding: 10px;
}
#inbuild-tags button{
    padding: 10px;
    margin:2px;
    border-radius: 5px;
}
#user_input {
    width: 80%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    outline: none;
    border-radius: 5px; 
    background: transparent;

}
#user_input:focus {
    border-color: #007BFF;
}

button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}
#sendButton {
    /* Other styles... */
    transition: background-color 0.3s ease-in-out;
}

#sendButton:disabled {
    background-color: #9DAFCA;
    cursor: not-allowed;
}

@keyframes typing {
    from { opacity: 1; }
    to { opacity: 0; }
}
 #typingIndicator {
    margin: 0px 20px;
    border-radius: 10px;
    width: 90px;
}

.typing-animation span {
    animation: typing 1.5s infinite;
    display: inline-block;
    overflow: hidden;
    position: relative;
    width: 0;
    font-size: 34px;
  }
  
  .typing-animation span:nth-child(1) {
    animation-delay: 0s;
  }
  
  .typing-animation span:nth-child(2) {
    animation-delay: 0.5s;
  }
  
  .typing-animation span:nth-child(3) {
    animation-delay: 1s;
  }
  
  @keyframes typing {
    0% {
      width: 0;
    }
    50% {
      width: 15px;
    }
    100% {
      width: 0;
    }
  }

  .chat-bubble {
    background-color:lightgray;
    padding:16px 28px;
    -webkit-border-radius: 20px;
    -webkit-border-bottom-left-radius: 2px;
    -moz-border-radius: 20px;
    -moz-border-radius-bottomleft: 2px;
    border-radius: 20px;
    border-bottom-left-radius: 2px;
    display:inline-block;
  }
  .typing {
    align-items: center;
    display: flex;
    height: 17px;
  }
  .typing .dot {
    animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
    background-color: black; 
    border-radius: 50%;
    height: 7px;
    margin-right: 4px;
    vertical-align: middle;
    width: 7px;
    display: inline-block;
  }
  .typing .dot:nth-child(1) {
    animation-delay: 200ms;
  }
  .typing .dot:nth-child(2) {
    animation-delay: 300ms;
  }
  .typing .dot:nth-child(3) {
    animation-delay: 400ms;
  }
  .typing .dot:last-child {
    margin-right: 0;
  }
  #ai-introduction2 b {
    font-size: 26px !important;
  }
  
  @keyframes mercuryTypingAnimation {
    0% {
      transform: translateY(0px);
      background-color:black;
    }
    28% {
      transform: translateY(-7px);
      background-color:black;
    }
    44% {
      transform: translateY(0px);
      background-color: black;
    }
  }
  

  
  @media (max-width: 600px) { 
    .ai-logo-intro {
      display: none; /* Hide the first logo on small screens */
    }
    .ai-logo-intro2 {
      display: block !important; /* Show the second logo */
    }
  }
  
  @media (min-width: 601px) { 
    .ai-logo-intro {
      display: block !important; /* Show the first logo */
    }
    .ai-logo-intro2 {
      display: none !important; /* Hide the second logo */
    }
  }
