/* ========================================
   CHATBOT STYLES - FULLY FUNCTIONAL
   ======================================== */
/* Version from final-generator.cjs (working) */

.chatbot {
  position: fixed;
  bottom: 20px;
  width: 360px;
  max-height: 520px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.chatbot-left {
  left: 20px;
}

.chatbot-right {
  right: 20px;
}

.chatbot-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-right .chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.chatbot-toggle {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.3s;
}

.chatbot-toggle:hover {
  background: rgba(255,255,255,0.3);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  max-height: 360px;
  background: #f9fafb;
}

.chatbot-message {
  background: white;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  line-height: 1.5;
}

.chatbot-message.user {
  background: #3b82f6;
  color: white;
  margin-left: 20%;
}

.chatbot-input-area {
  padding: 1.25rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.75rem;
  background: white;
  border-radius: 0 0 16px 16px;
}

.chatbot-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.chatbot-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chatbot-send {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s;
  font-weight: bold;
}

.chatbot-send:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* Floating Action Buttons (FABs) */
.chatbot-fab {
  position: fixed;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: all 0.3s;
  font-weight: 600;
}

.chatbot-fab-left {
  left: 20px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.chatbot-fab-right {
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chatbot-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .chatbot {
    width: calc(100% - 40px);
    max-width: 360px;
  }

  .chatbot-right {
    bottom: 90px; /* Stack vertically on mobile */
  }

  .chatbot-fab-right {
    bottom: 90px; /* Stack vertically on mobile */
  }
}
