 #chat-widget-toggle {
     position: fixed;
     bottom: 10px;
     right: 20px;
     background: #0073aa;
     color: white;
     border: none;
     padding: 10px 15px;
     border-radius: 30px;
     cursor: pointer;
     font-size: 20px;
     z-index: 9999;
     display: flex;
     align-items: center;
     gap: 5px;
 }
/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    /* Chat toggle button */
    #chat-widget-toggle {
        background-color: #005b8e; /* darker blue */
        color: #ffffff; /* white text */
    }
    .bot-message {
     background-color: aliceblue;
     align-self: flex-start;
     text-align: left;
     color:#000;
     border: 1px solid #475bcb;
 }
}
 #chat-box {
     display: none;
     position: fixed;
     bottom: 70px;
     right: 20px;
     max-width: 68vh;
     max-height: 70vh;
     min-height: 60vh;
     border: 1px solid #475bcb;
     padding: 15px;
     border-radius: 10px;
     background: #fff;
     font-family: Arial, sans-serif;
     font-size: 14px;
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
     z-index: 9999;
     flex-direction: column;
     overflow: hidden;

 }

 #chat-box.visible {
     display: flex;
 }

 #chat-help {
     background-color: aliceblue;
     align-self: flex-start;
     text-align: left;
     margin: 5px 0;
     padding: 8px;
     border-radius: 10px;
     width: 95%;

 }

 #chat-suggestions {
     margin-bottom: 10px;
 }


 #chat-scroll-area {
     flex: 1;
     overflow-y: auto;
     display: flex;
     flex-direction: column;
     gap: 10px;
     margin-bottom: 10px;
 }

 #chat-messages {
     display: flex;
     flex-direction: column;
     gap: 5px;
 }

 .chat-message {
     margin: 5px 0;
     padding: 8px;
     border-radius: 10px;
     max-width: 90%;
 }
/* Bold and italic */
.chat-message.bot-message div strong {
    font-weight: bold;
}

.chat-message.bot-message div b {
    font-weight: bold;
}

.chat-message.bot-message div em {
    font-style: italic;
}

/* Paragraph spacing */
.chat-message.bot-message div p {
    margin: 0 0 8px 0;
}

/* Lists */
.chat-message.bot-message div ul,
.chat-message.bot-message div ol {
    margin: 0 0 8px 20px;
    padding: 0;
}

.chat-message.bot-message div li {
    margin-bottom: 4px;
}

/* Links */
.chat-message.bot-message div a {
    color: #0073aa;
    text-decoration: underline;
}
.chat-message.bot-message div {
    color: #000000; /* black text */
}

/* User messages text */
.chat-message.user-message {
    color: #fff; /* black text */
}
 .user-message {
     background-color: #24a7eb;
     align-self: flex-end;
     text-align: left;
     color:#fff;
     border: 1px solid #475bcb;
 }

 .bot-message {
     background-color: #fff;
     align-self: flex-start;
     text-align: left;
     color:#000;
     border: 1px solid #475bcb;
 }

 #chat-input {
     width: 100%;
     padding: 8px;
     border: 1px solid #ccc;
     border-radius: 5px;
 }
/* ✨ Chat Intro Section */
.chat-intro {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f2ff 100%);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 115, 170, 0.1);
  color: #111;
  font-family: "Inter", "Segoe UI", sans-serif;
  transition: all 0.3s ease;
}

.chat-intro:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.chat-intro-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Agent avatar */
.chat-agent-avatar img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0073aa;
  box-shadow: 0 0 0 3px #ffffff;
}

/* Text content */
.chat-intro-text {
  flex: 1;
  color: #000;
  font-size: 14px;
  line-height: 1.5;
}

.chat-greeting {
  margin: 0;
  font-weight: 600;
  color: #0073aa;
  font-size: 15px;
}

.chat-intro-text strong {
  color: #0073aa;
  font-weight: 600;
}

.chat-subtext {
  color: #333;
  font-size: 13px;
}

/* Optional subtle fade-in animation */
.chat-intro {
  animation: fadeInIntro 0.5s ease-in-out;
}

@keyframes fadeInIntro {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-time {
    font-size: 11px;
    color: gray;
    margin-bottom: 2px;
    text-align: right; /* aligns time to right */
}
.chat-time-res {
    font-size: 11px;
    color: gray;
    margin-bottom: 2px;
    text-align: left; /* aligns time to right */
}
.chat-header {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* right side for user */
    margin-top: 10px;
    margin-bottom: 4px;
     text-align: left;
}
.chat-header-response {
    display: flex;
    align-items: center;
    
    margin-top: 10px;
    margin-bottom: 4px;
     text-align: right;
}
.chat-time {
    font-size: 11px;
    color: #888;
}

.chat-message.user-message {
    background: #24a7eb;
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-block;
    max-width: 70%;
    align-self: flex-end;
}

 .text-send-button {
     background-color: rgb(170, 173, 171);
     border: none;
     height: 40px;
     border-radius: 30px;
     padding: 10px;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background 0.2s;
 }

 .text-send-button:hover {
     background-color: #20bd5f;
 }

 #chat-widget-toggle:hover {
     background-color: #005b8e;
 }

 .chat-toggle-logo {
     max-width: 30px;
     max-height: 30px;
     border-radius: 50%;
 }

 .chat-label {
     border-radius: 100px;
     font-size: 14px;
     font-style: normal;
     font-weight: 700;
     justify-content: center;
 }
/* Suggestions container */
.chat-suggestions-container {
    margin-top: 10px;
}

.chat-suggestions-container strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

/* Suggestion buttons */
.chat-suggestion-btn {
    padding: 6px 14px;
    color: #0073aa;
    background-color: #e6f0fa;
    border: 1px solid #0073aa;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    margin: 0 5px 5px 0;
}

/* Hover effect */
.chat-suggestion-btn:hover {
    background-color: #0073aa;
    color: #fff;
    transform: scale(1.05);
}
.thumbs-container span {
    font-size: 10px;
    transition: transform 0.1s;
}

.thumbs-container span:hover {
    transform: scale(1.2);
}

 .typing-dots {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     font-size: 24px;
     color: #000;
 }

 .typing-dots span {
     animation: blink 1.4s infinite;
     margin: 0 2px;
     font-weight: bold;
     opacity: 0;
 }

 .typing-dots span:nth-child(1) {
     animation-delay: 0s;
 }

 .typing-dots span:nth-child(2) {
     animation-delay: 0.2s;
 }

 .typing-dots span:nth-child(3) {
     animation-delay: 0.4s;
 }

 @keyframes blink {
     0% {
         opacity: 0;
     }

     20% {
         opacity: 1;
     }

     100% {
         opacity: 0;
     }

 }

 .kalravai-logo-wrapper {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-top: 13px;
 }

 .kalravai-logo-preview {
     width: 30px;
     height: 30px;
     margin-top: 8px;
     border-radius: 50%;
     object-fit: cover;
     vertical-align: middle;
 }

 .custom-logo-upload-icon {
     width: 30px;
     height: 30px;
     background-color: #f0f0f0;
     border: 2px dashed #999;
     border-radius: 50%;
     position: relative;
     cursor: pointer;
     display: inline-block;
     margin-top: 8px;
     vertical-align: middle;
 }

 .custom-logo-upload-icon::before,
 .custom-logo-upload-icon::after {
     content: '';
     position: absolute;
     background-color: #666;
 }

 .custom-logo-upload-icon::before {
     width: 2px;
     height: 16px;
     top: 7px;
     left: 14px;
 }

 .custom-logo-upload-icon::after {
     width: 16px;
     height: 2px;
     top: 14px;
     left: 7px;
 }

 .custom-logo-upload-icon:hover {
     background-color: #e0e0e0;
 }

 .kalravai-logo-wrapper {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-top: 13px;
 }

 .kalravai-logo-preview {
     width: 30px;
     height: 30px;
     margin-top: 8px;
     border-radius: 50%;
     object-fit: cover;
     vertical-align: middle;
 }

 .custom-logo-upload-icon {
     width: 30px;
     height: 30px;
     background-color: #f0f0f0 !important;
     ;
     border: 2px dashed #999 !important;
     ;
     border-radius: 50%;
     position: relative;
     cursor: pointer;
     display: inline-block;
     margin-top: 8px;
     vertical-align: middle;
 }

 .custom-logo-upload-icon::before,
 .custom-logo-upload-icon::after {
     content: '';
     position: absolute;
     background-color: #666;
 }

 .custom-logo-upload-icon::before {
     width: 2px;
     height: 16px;
     top: 7px;
     left: 14px;
 }

 .custom-logo-upload-icon::after {
     width: 16px;
     height: 2px;
     top: 14px;
     left: 7px;
 }

 .custom-logo-upload-icon:hover {
     background-color: #e0e0e0;
 }