/* AI Assistant Styles */
.ai-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent !important;
  animation: rotateIcon 10s infinite linear, fireEffect 1.5s infinite alternate, increaseSize 10s infinite;
  transition: all 1s ease;
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1000;
}

@keyframes rotateIcon {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fireEffect {
  0% {
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.7), 0 0 30px rgba(231, 76, 60, 1);
    background-color: #e74c3c;
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 69, 0, 1), 0 0 50px rgba(255, 69, 0, 0.8);
    background-color: #ff4500;
  }
  100% {
    box-shadow: 0 0 35px rgba(255, 140, 0, 1), 0 0 70px rgba(255, 140, 0, 0.6);
    background-color: #ff8c00;
  }
}

@keyframes increaseSize {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
  }
}

.chat-container {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 1001;
  font-family: Arial, sans-serif;
}

.chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f9f9f9;
}

.message {
  margin-bottom: 15px;
  display: flex;
}

.message.user {
  justify-content: flex-end;
}

.message.assistant {
  justify-content: flex-start;
}

.message-content {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  word-wrap: break-word;
}

.message.user .message-content {
  background: #007bff;
  color: white;
  border-bottom-right-radius: 5px;
}

.message.assistant .message-content {
  background: #e9ecef;
  color: #333;
  border-bottom-left-radius: 5px;
}

.message-content p {
  margin: 0;
  line-height: 1.4;
}

.chat-input {
  padding: 15px;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 10px;
  background: white;
  border-radius: 0 0 10px 10px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}

.chat-input input:focus {
  border-color: #007bff;
}

.chat-input button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-input button:hover {
  background: #0056b3;
}

/* Responsive design */
@media (max-width: 768px) {
  .chat-container {
    width: 90%;
    right: 5%;
    height: 70vh;
    bottom: 70px;
  }
  
  .ai-icon {
    width: 55px;
    height: 55px;
    right: 20px;
  }
  
  .ai-icon img {
    width: 55px !important;
    height: 55px !important;
  }
}
