/* assets/style.css */
#ai-agent-chat #ai-chat-window.ai-chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: var(--background-color);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 10000;
  transition: all 0.3s ease;
}

/* 1. Header Styles */
#ai-agent-chat #ai-chat-window .ht-agent__chat-header {
  background: var(--primary-color);
  color: var(--background-color);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#ai-agent-chat #ai-chat-window .ht-agent__header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
#ai-agent-chat #ai-chat-window .ht-agent__status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
}
#ai-agent-chat #ai-chat-window .ht-agent__chat-title {
  font-weight: 600;
  font-size: 16px;
}

#ai-agent-chat #ai-chat-window .ht-agent__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#ai-agent-chat #ai-chat-window .ht-agent__create-session-btn {
  background: transparent;
  border: none;
  color: var(--background-color);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ai-agent-chat #ai-chat-window .ht-agent__create-session-btn:hover {
  opacity: 1;
}

#ai-agent-chat #ai-chat-window .ht-agent__close-btn {
  background: transparent;
  border: none;
  color: var(--background-color);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ai-agent-chat #ai-chat-window .ht-agent__close-btn:hover {
  opacity: 1;
}

/* 2. Body Styles */
#ai-agent-chat #ai-chat-window .ht-agent__chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: var(--color-gray-50);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ai-agent-chat #ai-chat-window .ht-agent__msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.4;
}

#ai-agent-chat #ai-chat-window .ht-agent__message {
  display: flex;
  flex-direction: column;
}

#ai-agent-chat #ai-chat-window .ht-agent__ai-msg .ht-agent__msg-bubble {
  background: var(--color-gray-200);
  color: var(--foreground-color);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

#ai-agent-chat
  #ai-chat-window
  .ht-agent__ai-msg
  .ht-agent__msg-bubble.ht-agent__msg-error {
  color: var(--error-foreground-color);
  background-color: var(--error-background-color);
}

#ai-agent-chat #ai-chat-window .ht-agent__user-msg .ht-agent__msg-bubble {
  background: var(--primary-color);
  color: var(--background-color);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* 3. Footer Styles */
#ai-agent-chat #ai-chat-window .ht-agent__chat-footer {
  padding: 12px;
  background: var(--background-color);
  border-top: 1px solid var(--color-gray-200);
}

#ai-agent-chat #ai-chat-window .ht-agent__input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-gray-100);
  padding: 8px 12px;
  padding-right: 8px;
  border-radius: 9999px;
}

#ai-agent-chat #ai-chat-window #user-msg.ht-agent__user-msg {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  resize: none;
  padding: 5px 0;
  font-size: 14px;
  max-height: 100px;
}

#ai-agent-chat #ai-chat-window .ht-agent__attach-btn {
  color: var(--color-gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
}
#ai-agent-chat #ai-chat-window .ht-agent__attach-btn:hover {
  color: var(--primary-color);
}

#ai-agent-chat #ai-chat-window .ht-agent__send-btn {
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

#ai-agent-chat #ai-chat-window .ht-agent__send-btn:hover {
  transform: scale(1.1);
  background: var(--primary-color);
}
