@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 41, 55, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(31, 41, 55, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 41, 55, 0);
    transform: scale(1);
  }
}

.chatbot-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1F2937; /* Dark slate */
  color: #FFFFFF;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 30px;
  cursor: pointer;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  animation: pulse 2.5s infinite;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chatbot-badge:hover {
  background-color: #374151;
  transform: scale(1.08);
}


.chat-icon {
  font-size: 18px;
}

.chat-text {
  font-weight: 500;
  white-space: nowrap;
}


.chatbot-container {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  height: 470px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  z-index: 10000;
}

.chatbot-header {
  background-color: #343a40;
  color: white;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.chatbot-status {
  font-size: 12px;
  color: #90ee90;
  margin-right: auto;
  margin-left: 10px;
}

#chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-body {
  padding: 12px;
  height: 355px;
  overflow-y: auto;
  font-size: 14px;
  background: #f9f9f9;
  word-wrap: break-word;
}

.chatbot-body div {
  margin-bottom: 10px;
}

.chatbot-footer {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
  background: #fff;
}

.chatbot-footer input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.chatbot-footer button {
  margin-left: 8px;
  padding: 8px 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.chatbot-tip {
  display: flex;
  align-items: flex-start;
  background: #e8f4fd;
  border-left: 4px solid #007bff;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 123, 255, 0.15);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tip-icon {
  font-size: 24px;
  margin-right: 12px;
  color: #007bff;
  flex-shrink: 0;
}

.tip-content {
  color: #003366;
  font-size: 15px;
  line-height: 1.5;
}

.tip-content code {
  background: #f1f1f1;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  color: #0056b3;
}
.chat-message {
  background: #f8f9fa;
  margin: 8px;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  word-break: break-word;
}

/* Container for all chatbot options */
.option-blocks {
  margin-top: 16px;
  padding: 16px;
  background: #f4f9ff;
  border-left: 4px solid #007bff;
  border-radius: 8px;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.1);
  max-width: 100%;
  overflow-x: auto;
}

/* Optional list styling if you use <ul> inside */
.option-blocks ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.option-blocks li {
  margin-bottom: 8px;
}

/* Container for buttons */
.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Button styles */
.chat-option {
  padding: 10px 16px;
  background-color: #007bff;
  color: #fff;
  margin: 5px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.15);
}

/* Hover and active state for buttons */
.chat-option:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.chat-option:active {
  background-color: #004a9f;
  transform: scale(0.97);
}

/* Responsive for mobile */
@media (max-width: 480px) {
  .chat-option {
    font-size: 13px;
    padding: 8px 12px;
  }
}



