#chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: #1e1e1e;
  color: white;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  font-family: 'Press Start 2P', monospace;
}

#chatbot-container.expanded {
  width: 35%;
  height: 90vh;
  max-width: none;
  bottom: 0;
  right: 0;
  border-radius: 0;
}

#chatbot-header {
  background: #333;
  padding: 12px;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #444;
  position: relative;
}

#ai-status {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 11px;
  color: #ff6b6b; /* default offline color */
  opacity: 0.95;
}

#expand-chatbot-btn {
  background: transparent;
  color: #aaa;
  border: none;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: right;
  width: 100%;
  transition: color 0.2s ease;
}

#expand-chatbot-btn:hover {
  color: #fff;
}

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: block;
  background: #2a2a2a;
}

.user-message,
.bot-message {
  max-width: 75%;
  min-width: 40px;
  padding: 10px 14px;
  margin: 8px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  display: inline-block;
  clear: both;
  word-break: break-word;
  overflow-wrap: break-word;
}

.user-message {
  background-color: #4caf50;
  color: white;
  float: right;
  border-bottom-right-radius: 0;
  text-align: right;
}

.bot-message {
  background-color: #444;
  color: white;
  float: left;
  border-bottom-left-radius: 0;
  text-align: left;
}

#chatbot-input-row {
  display: flex;
  border-top: 1px solid #444;
}

#chatbot-input {
  flex: 1;
  padding: 12px;
  border: none;
  background: #2a2a2a;
  color: white;
  font-size: 13px;
}

#chatbot-send {
  background: #b11414;
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.3s ease;
}

#chatbot-send:hover {
  background: #d91e1e;
}

#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #b11414;
  color: white;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  z-index: 10000;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

#chatbot-toggle:hover {
  background: #d91e1e;
}

  #chatbot-toggle:hover {
  filter: brightness(1.3);
  transform: scale(1.05);
  transition: all 0.2s ease;
}

#chatbot-footer {
  background: #1e1e1e;
  color: #bbb;
  font-size: 6px;
  text-align: center;
  padding: 8px 12px;
  border-top: 1px solid #444;
  font-family: 'Press Start 2P', monospace;
  line-height: 0.9;
}

.bot-message a {
  color: #e63946; /* Custom red */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bot-message a:visited {
  color: #fb8500; /* Orange after being clicked */
}

.bot-message a:hover {
  color: #ff6f00; /* Optional: brighter orange on hover */
  text-decoration: underline;
}

