.widgetContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatButton {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #a2b1c6;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.chatButton::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chatButton:hover {
  transform: scale(1.1);
  background-color: #8ca0b8;
}

.chatButton:hover::before {
  opacity: 1;
}

.chatButton::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 20px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: rotate(40deg);
}

.chatWindow {
  width: 350px;
  height: 500px;
  background-color: #f0ece3;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatHeader {
  padding: 15px;
  background-color: #d6e2e9;
  color: #5c6b73;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatHeader h3 {
  margin: 0;
  font-size: 1.2rem;
}

.closeButton {
  background: none;
  border: none;
  color: #5c6b73;
  font-size: 1.5rem;
  cursor: pointer;
}

.chatMessages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.message {
  padding: 10px 15px;
  border-radius: 18px;
  margin-bottom: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.userMessage {
  background-color: #bcd4e6;
  color: #3d4f5c;
  align-self: flex-end;
}

.aiMessage {
  background-color: #e6ccb2;
  color: #3d4f5c;
  align-self: flex-start;
}

.inputForm {
  display: flex;
  padding: 15px;
  background-color: #d6e2e9;
}

.inputField {
  flex-grow: 1;
  padding: 10px;
  border: none;
  border-radius: 20px;
  background-color: #f0ece3;
  color: #3d4f5c;
  margin-right: 10px;
}

.sendButton {
  background-color: #a2b1c6;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sendButton:hover {
  background-color: #8ca0b8;
}

.typingIndicator {
  padding: 10px;
  font-style: italic;
  color: #5c6b73;
}

.aiMessage p {
  margin: 0 0 10px 0;
}

.aiMessage ul, .aiMessage ol {
  margin: 0 0 10px 20px;
}

.aiMessage code {
  background-color: #d6e2e9;
  padding: 2px 4px;
  border-radius: 4px;
}

.aiMessage pre {
  background-color: #d6e2e9;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}