#easy-ai-chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00bfa5;
  color: white;
  width: 60px; 
  height: 60px;
  border-radius: 50%;
  font-size: 30px;
  text-align: center;
  line-height: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
}

#easy-ai-chat-box {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 410px;
  height: 510px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

#easy-ai-chat-box.open {
  display: flex;
}

#easy-ai-chat-box-header {
  background-color: #00796b;
  color: white;
  padding: 12px;
  font-weight: bold;
  font-size: 17px;
  text-align: center;
}

#chat-output {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.5;
}

#chat-input {
  width: calc(100% - 24px);
  margin: 0 12px 8px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  resize: none;
  height: 65px;
  font-size: 15px;
}

#send-chat {
  margin: 0 12px 12px;
  padding: 12px;
  background: linear-gradient(to right, #00bfa5, #00796b);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

#send-chat:hover {
  background: linear-gradient(to right, #00796b, #004d40);
}

#easy-ai-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chat-msg {
  margin-bottom: 12px;
}

.toggle-msg {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #00796b;
  font-weight: 600;
  cursor: pointer;
}

.dora-avatar {
  width: 32px;
  height: 32px;
  float: left;
  margin-right: 8px;
  border-radius: 50%;
}

.dora-banner img {
  width: 100%;
  height: auto;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Typing dots animation */
.ai-typing-indicator {
  display: flex;
  align-items: center;
  margin: 8px 0;
  gap: 4px;
  padding-left: 10px;
}

.ai-typing-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  animation: blink 1.4s infinite both;
}

.ai-typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.ai-typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}
.chat-msg ul {
  padding-left: 18px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.chat-msg li {
  list-style-type: disc;
  margin-bottom: 4px;
}


/* Message alignment */
.user-msg {
  text-align: right;
}
.user-msg .bubble {
  background-color: #e0f7fa;
  color: #004d40;
  border-radius: 16px 0 16px 16px;
  display: inline-block;
  padding: 10px 14px;
  margin: 5px 0;
  max-width: 80%;
}

.bot-msg {
  text-align: left;
}
.bot-msg .bubble {
  background-color: #eeeeee;
  border-radius: 0 16px 16px 16px;
  display: inline-block;
  padding: 10px 14px;
  margin: 5px 0;
  max-width: 80%;
}

/* Dot loading animation */
.dot-flashing {
  display: inline-block;
  position: relative;
  width: 4px;
  height: 4px;
  background-color: #00796b;
  border-radius: 50%;
  animation: dotFlashing 1s infinite linear alternate;
  margin-left: 8px;
}
.dot-flashing::before,
.dot-flashing::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #00796b;
}
.dot-flashing::before {
  left: -8px;
  animation: dotFlashing 1s infinite linear alternate;
  animation-delay: 0.2s;
}
.dot-flashing::after {
  left: 8px;
  animation: dotFlashing 1s infinite linear alternate;
  animation-delay: 0.4s;
}
@keyframes dotFlashing {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}


@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}
