* {
  box-sizing: border-box;
}

/* Chatbot styles */
.chatbot-toggle-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #4a86e8;
  color: white;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

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

.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 25%;
  height: 65%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  background-color: white;
  font-family: "Segoe UI", sans-serif;
  z-index: 1000;
}

.chat-header {
  background-color: #4a86e8;
  color: white;
  padding: 15px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.messages-area {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 85%;
  padding: 10px 15px;
  border-radius: 18px;
  margin-bottom: 5px;
  word-wrap: break-word;
}

.user-message {
  align-self: flex-end;
  background-color: #4a86e8;
  color: white;
  border-bottom-right-radius: 5px;
}

.bot-message {
  align-self: flex-start;
  background-color: #e6e6e6;
  color: #333;
  border-bottom-left-radius: 5px;
}

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

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

.send-button {
  background-color: #4a86e8;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.send-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.code-block {
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
  background-color: #1e1e1e;
  color: #dcdcdc;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #333;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
}


.code-block::-webkit-scrollbar {
  height: 12px;
}

.code-block::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.code-block::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  border: 2px solid #1e1e1e;
}

.code-block::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}


.typing-indicator {
  display: flex;
  padding: 5px 0;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #888;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: bounce 1.5s infinite ease-in-out;
}

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

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

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}