/* #ai-chat-wrapper { position: fixed; bottom: 20px; right: 20px; z-index: 9999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }*/
/* #ai-chat-wrapper { position: fixed; bottom: 20px; right: 280px; z-index: 9999; padding-bottom: 7px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; } */
/* Base Floating Widget Positioning */
#ai-chat-wrapper { position: fixed; bottom: 20px; right: 30px; z-index: 9999; padding-bottom: 7px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
/* #ai-chat-btn { width: 60px; height: 60px; border-radius: 50%; background: #00a9dd; color: #ff8ac4; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-size: 24px; display: flex; align-items: center; justify-content: center; float: right;} */
/* Toggle Floating Button */
#ai-chat-btn { width: 60px; height: 60px; border-radius: 50%; background-color: #ffab1a; color: #000000; border: none; font-size: 22px; cursor: pointer; float: right; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }  
/* Soft glow behind the button */
#ai-chat-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  opacity: 0.9;
  background: radial-gradient(circle, #ffab1a 50%, rgba(0, 169, 221, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -55%);
  z-index: -1;
  pointer-events: none;
  transition: width 0.25s, height 0.25s, opacity 0.25s;
}
#ai-chat-btn:hover { transform: scale(1.08); }
#ai-chat-btn:hover::before {
  top: 57%;
  width: 82px;
  height: 82px;
  opacity: 0.9;
}

/* #ai-chat-box { display: none; width: 350px; height: 450px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); flex-direction: column; overflow: hidden; margin-bottom: 10px; border: 2px solid #d3bed4; } */
/* #ai-chat-box { display: none; width: 350px; height: 450px; background: #fff; border-radius: 12px; box-shadow: 5px 4px 8px 1px rgb(61 38 55); flex-direction: column; overflow: hidden; margin-bottom: 10px; border: 2px solid #d3bed4; } */
/* Chat Window Styling */
#ai-chat-box {
  width: 360px;
  height: 480px;
  background-color: #0b0818;
  border-radius: 10px;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); */
  box-shadow: 5px 4px 8px 1px rgb(61 38 55);
  display: none; /* Managed by JS toggle */
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #ffab1a;
  margin-bottom: 12px;
}
/* #ai-chat-header { background: #0b0818; color: #fa71bd; padding: 15px; font-weight: bold; } */
#ai-chat-header { -webkit-text-stroke: 1px #000; color: #fff; font-family: sans-serif; background-color: #ffab1a; padding: 15px; font-border: 1px; font-weight: bolder; text-align: center; font-size: 20px; paint-order: stroke fill; }
/* #ai-chat-logs { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #242130; } */
/* Logs Area */
#ai-chat-logs {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-color: #9f9d9d #2c2c2c;
}
/* .chat-msg { padding: 8px 12px; border-radius: 8px; max-width: 80%; font-size: 14px; line-height: 1.4; } */
/* Chat Bubbles */
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 0.95em;
  line-height: 1.4;
  word-break: break-word;
}
/* .chat-msg { display: inline-flex; align-items: center; background-color: #f1f0f0; border-radius: 20px; padding: 12px 20px; max-width: 70px; } */
/* .chat-msg.user { background: #00a9dd; color: #fff; align-self: flex-end; } */
.chat-msg.user {
  background-color: #ffab1a;
  color: #000000;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
/* .chat-msg.ai { background: #fceaf3; color: #333; align-self: flex-start; } */
.chat-msg.ai {
  background-color: #444444;
  color: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  white-space: pre-line;
}
.chat-msg.ai.typing-bubble { display: inline-flex; align-items: center; padding: 12px 20px; }

/* HMTL formatting in chat */
.chat-msg a {
  color: #ffab1a; /* matches pink theme */
  text-decoration: underline;
  font-weight: 500;
}

.chat-msg a:hover {
  color: #ff1a75; /* #ff1a75 or #ff4d94 */
}

/* #ai-chat-input-area { display: flex; border-top: 1px solid #d3bed4; padding: 10px; background: #242130; } */
/* Input Container */
#ai-chat-input-area {
  display: flex;
  border-top: 1px solid #444;
  background-color: #222;
}
/* #ai-chat-input { flex: 1; border: 1px solid #d3bed4; padding: 8px; border-radius: 6px; outline: none; } */
#ai-chat-input { flex: 1; padding: 15px; border: none; background-color: transparent; color: #ffffff; outline: none; font-size: 1em; }
/* #ai-chat-send { background: #00a9dd; color: #fff; border: none; padding: 0 15px; margin-left: 8px; border-radius: 6px; cursor: pointer; } */
#ai-chat-send { background-color: #ffab1a; color: #000000; border: none; padding: 0 20px; font-weight: bold; cursor: pointer; transition: background 0.2s; }
#ai-chat-send:hover { background-color: #da8c03; }

/* Chat Bubble Container */  
/* The Dots */
.dot {
  width: 8px;
  height: 8px;
  background-color: #90949c;
  border-radius: 50%;
  margin: 0 3px;
  animation: bounce 1.4s infinite ease-in-out both;
}

/* Staggered animation delays */
.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

/* Bouncing Keyframes */
@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0);
  } 
  40% { 
    transform: scale(1.0);
  }
}

#ai-chat-btn:hover {
  transform: scale(1.08);
}

/* Utility to hide the indicator */
.hidden {
  display: none;
}
