#chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

#chat-button {
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

#chat-button:hover {
  background-color: #356ac3;
  transform: scale(1.05);
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(66, 133, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0); }
}

#chat-button img, 
.logo-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

#chat-window {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  overflow: hidden;
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  opacity: 0;
  transform: scale(0.8);
}

#chat-window.visible {
  opacity: 1;
  transform: scale(1);
}

#chat-header {
  background-color: #4285f4;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-title {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

#close-chat {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.3s ease;
}

#close-chat:hover {
  transform: rotate(90deg);
}

#messages {
  height: 300px;
  overflow-y: auto;
  padding: 10px;
  background-color: #f5f5f5;
}

.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  background-color: #e3f2fd;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.bot-message {
  background-color: #eeeeee;
  margin-right: auto;
  border-bottom-left-radius: 5px;
}

.typing-indicator {
  display: flex;
  padding: 8px 12px;
  background-color: #eeeeee;
  border-radius: 15px;
  border-bottom-left-radius: 5px;
  margin-right: auto;
  margin-bottom: 10px;
  width: fit-content;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: #777;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

#input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

#user-input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  margin-right: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#user-input:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

#send-button {
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#send-button:hover {
  background-color: #356ac3;
  transform: translateY(-2px);
}

#send-button:active {
  transform: translateY(0);
} 