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

.chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #1e90ff; /* Blue */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.neon-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #39ff14; /* Neon green initially */
  animation: rotate 4s linear infinite; /* THIS makes it spin continuously */
  box-sizing: border-box;
  pointer-events: none;
}

.chat-icon {
  color: #fafa; /* white-ish */
  font-weight: bold;
  font-size: 20px;
  user-select: none;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  max-width: 90vw;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: none;
  overflow: hidden;
  animation: slideUp 0.3s ease forwards;
}

.chat-box.open {
  display: block;
}

.chat-header {
  background-color: #1e90ff;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
}

.chat-body {
  padding: 15px;
}

.welcome-message {
  margin-bottom: 15px;
}

.welcome-message p {
  margin: 5px 0;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  padding: 10px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s;
}

.option-btn:hover {
  background-color: #e0e0e0;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* When chat is open, neon ring changes to neon red */
.chat-button.open .neon-ring {
  border-top-color: #ff073a; /* Neon red partial border */
}

/* Change the icon from "AA" to "X" when open */
.chat-button.open .chat-icon {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 24px;
  color: #fafa;
}

.chat-button.open .chat-icon::before {
  content: "\f00d"; /* FontAwesome times icon unicode */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 24px;
  color: #fafa;
}

/* Hide original text "AA" when open */
.chat-button.open .chat-icon:not(:empty) {
  color: transparent;
}

/* slide animation for chat box */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
