body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
}

#chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0077cc;
  color: white;
  padding: 16px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

#chat-launcher:hover {
  background-color: #005fa3;
}

#chat-widget {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 320px;
  max-height: 500px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.3s ease;
}

#chat-widget.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

#chat-widget.closed {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

#chat-header {
  background: #0077cc;
  color: white;
  padding: 12px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  border-bottom: 1px solid #005fa3;
}

#chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #fefefe;
  font-size: 14px;
  line-height: 1.4;
}

#chat-form {
  display: flex;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background: #fafafa;
}

#chat-input {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border: none;
  outline: none;
}

#chat-send {
  background: #0077cc;
  border: none;
  color: white;
  font-size: 18px;
  padding: 0 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#chat-send:hover {
  background-color: #005fa3;
}

.chat-message {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  max-width: 90%;
  word-wrap: break-word;
}

.chat-message.user {
  background: #e1f5fe;
  align-self: flex-end;
  text-align: right;
}

.chat-message.bot {
  background: #f1f1f1;
  align-self: flex-start;
}

.typing-indicator {
  font-style: italic;
  font-size: 13px;
  color: #666;
  margin: 6px 0;
}

.chat-upload {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  padding-left: 10px;
}
.upload-image-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#upload-image-input {
  width: 200px;
}
#upload-image-button {
  background: #0077cc;
  border: none;
  color: white;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#upload-image-button:hover {
  background: #005fa3;
}
#upload-image-button.disabled {
  pointer-events: none;
  opacity: 0.5;
}
#upload-image-label {
  font-size: 12px;
  color: #666;
}
#upload-image-label.error {
  color: #99010e;
}
.uploaded-image {
  max-width: 100px;
  height: auto;
  border-radius: 8px;
  width: 100%;
}
.chat-message.user.image {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}