/* AI Travel Planner Chatbot Styles */

#taguru-ai-chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#taguru-ai-chatbot-toggle {
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

#taguru-ai-chatbot-toggle:hover {
  background: #0b7dda;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.taguru-ai-icon {
  font-size: 20px;
  margin-right: 8px;
}

.taguru-ai-text {
  font-weight: 600;
  font-size: 16px;
}

#taguru-ai-chatbot-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: taguru-ai-slide-up 0.3s ease;
}

@keyframes taguru-ai-slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.taguru-ai-chatbot-header {
  background: #2196F3;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.taguru-ai-chatbot-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

#taguru-ai-close-chatbot {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

#taguru-ai-close-chatbot:hover {
  background: rgba(255, 255, 255, 0.2);
}

.taguru-ai-chatbot-body {
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
}

#taguru-ai-chatbot-messages {
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.taguru-ai-message {
  padding: 12px 16px;
  border-radius: 18px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.taguru-ai-bot-message {
  background: #f0f8ff;
  border: 1px solid #d0e8ff;
  color: #333;
}

.taguru-ai-user-message {
  background: #2196F3;
  color: white;
  text-align: right;
}

.taguru-ai-form-group {
  margin-bottom: 15px;
}

.taguru-ai-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.taguru-ai-form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.taguru-ai-form-group input:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.taguru-ai-form-row {
  display: flex;
  gap: 15px;
}

.taguru-ai-form-row .taguru-ai-form-group {
  flex: 1;
  margin-bottom: 0;
}

#taguru-ai-submit-btn {
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

#taguru-ai-submit-btn:hover {
  background: #0b7dda;
}

#taguru-ai-loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

#taguru-ai-loading:after {
  content: '.';
  animation: taguru-ai-dots 1.5s infinite;
}

@keyframes taguru-ai-dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60% { content: '...'; }
  80%, 100% { content: ''; }
}

/* Response actions */
.taguru-ai-response-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.taguru-ai-response-actions button {
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  flex: 1;
  min-width: 100px;
}

.taguru-ai-response-actions button:hover {
  background: #0b7dda;
}

.taguru-ai-view-window-btn {
  background: #4CAF50;
}

.taguru-ai-view-window-btn:hover {
  background: #388E3C;
}

.taguru-ai-print-btn {
  background: #FF9800;
}

.taguru-ai-print-btn:hover {
  background: #F57C00;
}

.taguru-ai-pdf-btn {
  background: #9C27B0;
}

.taguru-ai-pdf-btn:hover {
  background: #7B1FA2;
}

.taguru-ai-reset-btn {
  background: #f44336;
}

.taguru-ai-reset-btn:hover {
  background: #d32f2f;
}

/* Responsive styles */
@media (max-width: 480px) {
  #taguru-ai-chatbot-window {
    width: calc(100vw - 40px);
    right: 20px;
  }
  
  .taguru-ai-form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .taguru-ai-form-row .taguru-ai-form-group {
    margin-bottom: 15px;
  }
  
  .taguru-ai-response-actions {
    flex-direction: column;
  }
  
  .taguru-ai-response-actions button {
    min-width: auto;
  }
}