.ai-chatbot-box {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  max-width: 100%;
  min-height: 300px;
}

.ai-chatbot-box__messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.ai-chatbot-box__messages .user,
.ai-chatbot-box__messages .ai {
  margin: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  max-width: 80%;
  display: inline-block;
  animation: fadeIn 0.25s ease;
}

.ai-chatbot-box__messages .user {
  background: #e7f3ff;
  margin-left: auto;
  text-align: right;
}

.ai-chatbot-box__messages .ai {
  background: #f5f5f5;
  margin-right: auto;
  text-align: left;
}

.ai-chatbot-box__messages .ai.error {
  background: #ffeaea;
  color: #a00;
}

.ai-chatbot-box__messages .ai.typing {
  font-style: italic;
  opacity: 0.7;
}

.ai-chatbot-box__input {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.ai-chatbot-box__input textarea {
  flex: 1;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: none;
}

.ai-chatbot-box__input button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #0073aa;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.ai-chatbot-box__input button:hover {
  background: #005f8d;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
