/* chatbot.css */
#chatWidget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
}

#openChatBtn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0056b3;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

#openChatBtn svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: white;
  stroke-width: 2;
}

#chatContainer {
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#chatHeader {
  background: #0056b3;
  color: white;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#closeChatBtn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

#chatMessages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 80%;
  word-wrap: break-word;
}

.bot {
  background: #e9ecef;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.user {
  background: #007bff;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

#inputArea {
  display: flex;
  padding: 10px;
  background: white;
  border-top: 1px solid #eee;
}

#inputArea input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
}

#inputArea button {
  margin-left: 8px;
  padding: 8px 14px;
  background: #0056b3;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}