/*Floating AI Assistant Widget */

#ai-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 9999;
}

#ai-chat-button {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#ai-chat-button:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

#ai-chat-box {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 340px;
  height: 420px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#ai-chat-header {
  background-color: #f8fafc;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

#ai-chat-window {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-msg {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 85%;
}

.user-msg {
  background-color: #2563eb;
  color: #ffffff;
  align-self: flex-end;
}

.bot-msg {
  background-color: #f1f5f9;
  color: #0f172a;
  align-self: flex-start;
}

.bot-msg a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
}

#ai-chat-input-area {
  display: flex;
  border-top: 1px solid #e5e7eb;
  padding: 8px;
  gap: 6px;
}

#ai-chat-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

#ai-chat-send {
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}