body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: transparent;
}

#ai-chatbox {
  width: 330px;
  height: 500px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#ai-header {
  background: #3b82f6;
  color: #ffffff;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#ai-close {
  cursor: pointer;
  font-size: 18px;
  color: #ffffff;
}

#ai-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  position: relative;
}

.ai-msg {
  width: 90%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 18px;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
}

.ai-user {
  align-self: flex-end;
  background-color: #dbeafe;
  color: #111827;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}

.ai-bot {
  align-self: flex-start;
  background-color: #e5e7eb;
  color: #111827;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 4px;
}

#scroll-to-bottom {
  position: absolute;
  top: 400px;
  left: 180px;
  background: #3b82f6;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
}

#ai-input-row {
  padding: 10px;
  background: #f3f4f6;
  display: flex;
  gap: 8px;
}

#ai-input {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 10px;
  resize: none;
  font-size: 14px;
  line-height: 1.4;
  background: white;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#ai-send {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}
.ai-toolbar {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  font-size: 16px;
}

.ai-toolbar button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
}

.ai-toolbar button:hover {
  opacity: 1;
  transform: scale(1.1);
}




