/* Floating Chat Button */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Chatbot Modal */
.chatbot-modal {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 500px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}

.chatbot-modal.active {
  display: flex;
}

.chatbot-header {
  background: #2c3e50;
  color: white;
  padding: 10px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.chatbot-body {
  padding: 12px;
  overflow-y: auto;
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  background: #fefefe;
}

.chatbot-input-row {
  display: flex;
  border-top: 1px solid #eee;
  padding: 10px;
  background: #fafafa;
}

#chatbot-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-right: 6px;
  font-size: 14px;
}

#chatbot-send {
  padding: 8px 12px;
  background: #3498db;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* Theme overrides for dark/transparent modes */
body.leonardo .chatbot-modal,
body.nebula .chatbot-modal,
body.glass .chatbot-modal {
  background: rgba(24, 24, 24, 0.95);
  color: #eee;
  border: 1px solid #444;
}

body.leonardo .chatbot-body,
body.nebula .chatbot-body,
body.glass .chatbot-body {
  background: #1a1a1a;
  color: #eee;
}

body.leonardo .chatbot-header,
body.nebula .chatbot-header,
body.glass .chatbot-header {
  background: #6B00B3;
  color: #fff;
}

body.leonardo #chatbot-input,
body.nebula #chatbot-input,
body.glass #chatbot-input {
  background: #2b2b2b;
  color: #fff;
  border: 1px solid #555;
}

body.leonardo #chatbot-send,
body.nebula #chatbot-send,
body.glass #chatbot-send {
  background: #8E28E7;
}
