/* src/styles/chatbot.css */

#loras-chatbot-widget {
  position: fixed;
  bottom: 90px;
  right: 90px;
  width: 320px;
  max-height: 85vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 8001;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid #e2e8f0;
}

.chatbot-header {
  background: #7c3aed;
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  overflow-y: auto;
}

.chatbot-body label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #334155;
  margin-bottom: 4px;
  display: block;
}

.chatbot-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: white;
  min-height: 80px;
}

.chatbot-upload-label:hover {
  border-color: #7c3aed;
  background: #f1f5f9;
}

#cb-image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  object-fit: contain;
}

.chatbot-body input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.chatbot-body input[type="text"]:focus {
  outline: none;
  border-color: #7c3aed;
}

.chatbot-submit {
  background: #0f172a;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.chatbot-submit:hover {
  background: #1e293b;
}

.chatbot-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.chatbot-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-top: 8px;
}

#chatbot-result {
  padding: 16px;
  text-align: center;
  display: none;
}

#chatbot-result img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#chatbot-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}

#chatbot-loading {
  display: none;
  text-align: center;
  padding: 20px;
  color: #64748b;
  font-size: 0.9rem;
}
