#chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: Arial, sans-serif;
  z-index: 9999;
}

#chat-icon {
  width: 50px;
  height: 50px;
  background-color: #840000 ;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#chat-popup {
  width: 320px;
  max-height: 420px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 10px;
}

#chat-header {
  background-color: #840000 ;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-close {
  cursor: pointer;
  font-size: 20px;
  user-select: none;
}

#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background-color: #f8f8f8;
}

.chat-message {
  margin: 8px 0;
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 18px;
  clear: both;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.3;
}

.chat-message.user {
  background-color: #007bff ;
  color: white;
  float: right;
  border-bottom-right-radius: 4px;
}

.chat-message.bot {
  background-color: #e2e2e2;
  color: black;
  float: left;
  border-bottom-left-radius: 4px;
}

#chat-input {
  border: 1px solid #ddd;
  border-top: none;
  padding: 10px;
  font-size: 14px;
  flex-shrink: 0;
  outline: none;
  width: calc(100% - 90px);
  float: left;
  border-bottom-left-radius: 10px;
  border-right: none;
}

#chat-send {
  width: 70px;
  background-color: #007bff ;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-bottom-right-radius: 10px;
  float: right;
}
