/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.chatbot-bubble {
  width: 60px;
  height: 60px;
  background-color: var(--sky-blue-crayola);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.chatbot-bubble:hover {
  transform: scale(1.1);
}

.chatbot-bubble ion-icon {
  font-size: 28px;
  color: white;
}

.chatbot-panel {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  height: 500px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  z-index: 999;
  transition: all 0.3s ease;
}

.chatbot-panel.active {
  display: block;
  animation: fadeIn 0.3s forwards;
}

.chatbot-panel.minimized {
  height: 60px;
  overflow: hidden;
}

.chatbot-header {
  background-color: var(--sky-blue-crayola);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: white;
  font-weight: bold;
  font-family: var(--ff-poppins);
}

.chatbot-title {
  font-size: 16px;
}

.chatbot-controls {
  display: flex;
  gap: 10px;
}

.chatbot-minimize,
.chatbot-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

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

.chatbot-iframe-container {
  height: calc(100% - 40px);
  overflow: hidden;
}

.chatbot-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .chatbot-panel {
    width: 320px;
    height: 480px;
  }
}

@media (max-width: 480px) {
  .chatbot-panel {
    width: 90%;
    height: 70vh;
    bottom: 80px;
    right: 5%;
    left: 5%;
  }
  
  .chatbot-bubble {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .chatbot-bubble ion-icon {
    font-size: 24px;
  }
}

@media (max-height: 600px) {
  .chatbot-panel {
    height: 80vh;
    bottom: 70px;
  }
}
