.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
  animation: pulseButton 2s infinite;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.chatbot-toggle img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.chatbot-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 850px;
  height: 600px;
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  backdrop-filter: blur(10px);
}

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

.chatbot-header {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  padding: 24px 28px;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-header-info i {
  font-size: 24px;
}

.chatbot-header-info h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.chatbot-header-info p {
  margin: 6px 0 0;
  font-size: 16px;
  opacity: 0.9;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  background: #F8F9FA;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #DDD;
  border-radius: 3px;
}

.message {
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.message-content {
  max-width: 75%;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.6;
}

.user-message .message-content {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
  margin-left: auto;
  border-radius: 16px 16px 4px 16px;
  animation: 
    fadeIn 0.3s ease forwards,
    slideFromRight 0.3s ease forwards;
}

.bot-message .message-content {
  background: white;
  color: #333;
  margin-right: auto;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border-radius: 16px 16px 16px 4px;
  animation: 
    fadeIn 0.3s ease forwards,
    slideFromLeft 0.3s ease forwards;
  white-space: pre-wrap;
}

.bot-message .message-content.typing {
  display: inline-block;
  min-width: 20px;
  position: relative;
}

.bot-message .message-content.typing::after {
  content: '▋';
  position: absolute;
  right: -2px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.chatbot-input {
  padding: 24px 28px;
  background: white;
  border-top: 1px solid #EEE;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chatbot-input input {
  flex: 1;
  padding: 16px 22px;
  border: 2px solid #EEE;
  border-radius: 100px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #F8F9FA;
}

.chatbot-input input:focus {
  outline: none;
  border-color: #FF6B6B;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.send-button {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
  position: relative;
  overflow: hidden;
  font-size: 22px;
}

.send-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FF8E53, #FF6B6B);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.send-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.send-button:hover::before {
  opacity: 1;
}

.send-button:active {
  transform: scale(0.95);
}

.quick-replies {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 0 24px;
  animation: fadeInUp 0.4s ease-out;
}

.quick-reply-button {
  background: rgba(255, 107, 107, 0.1);
  border: 2px solid transparent;
  color: #FF6B6B;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-reply-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.quick-reply-button span {
  position: relative;
  z-index: 2;
}

.quick-reply-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.2);
  color: white;
  border-color: transparent;
}

.quick-reply-button:hover::before {
  opacity: 1;
}

.quick-reply-button:active {
  transform: translateY(1px) scale(0.98);
}

/* Main Navigation Buttons */
.chat-nav-buttons {
  display: flex;
  gap: 18px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  margin: 20px 28px;
  backdrop-filter: blur(10px);
}

.nav-button {
  flex: 1;
  min-width: 150px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  border: none;
  color: white;
  padding: 18px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FF8E53, #FF6B6B);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.nav-button .button-icon {
  font-size: 24px;
}

.nav-button span {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.nav-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 107, 107, 0.25);
}

.nav-button:hover::before {
  opacity: 1;
}

.nav-button:hover .button-icon {
  transform: scale(1.2) rotate(10deg);
}

.nav-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.15);
}

/* Active State */
.nav-button.active {
  background: linear-gradient(135deg, #FF8E53, #FF6B6B);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.nav-button.active .button-icon {
  transform: scale(1.1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .chatbot-container {
    background: rgba(44, 44, 44, 0.95);
  }
  
  .chatbot-messages {
    background: #1E1E1E;
  }
  
  .bot-message .message-content {
    background: #3A3A3A;
    color: #FFF;
  }
  
  .chatbot-input {
    background: #2C2C2C;
    border-top-color: #3A3A3A;
  }
  
  .chatbot-input input {
    background: #3A3A3A;
    color: #FFF;
    border-color: #4A4A4A;
  }
  
  .chatbot-input input:focus {
    background: #444;
    border-color: #FF6B6B;
  }
  
  .quick-reply-button {
    background: #3A3A3A;
    color: #FF6B6B;
  }
  
  .typing-indicator {
    background: rgba(58, 58, 58, 0.9);
  }
  
  .nav-button {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8) 0%, rgba(255, 142, 83, 0.8) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .nav-button:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .chatbot-container {
    width: 95%;
    height: 90vh;
    max-height: 800px;
    border-radius: 25px;
  }

  .chatbot-header {
    padding: 24px;
  }

  .chat-nav-buttons {
    padding: 20px;
    margin: 20px;
    gap: 15px;
  }

  .nav-button {
    padding: 16px;
    font-size: 15px;
  }

  .chatbot-messages {
    padding: 24px;
  }

  .chatbot-input {
    padding: 24px;
  }
}

/* Tablet Responsive */
@media (max-width: 768px) {
  .chat-nav-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .nav-button {
    width: 100%;
  }

  .message-content {
    max-width: 85%;
  }
}

/* Loading Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 8px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #FF6B6B;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Button Icons Animation */
.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover .button-icon {
  transform: scale(1.2) rotate(5deg);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseButton {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
} 