
:root {
  --chat-bg: #ffffff;
  --chat-header: #6fbf44;
  --chat-body: #f5f5f5;
  --chat-text: #111111;
  --bot-bg: #ffffff;
  --bot-text: #111111;
  --welcome-bg: #ffffff;

  --user-bg1: #6fbf44;
  --user-bg2: #57b33c;

  --border: #dddddd;
  --input-bg: #ffffff;

  --btn-bg: #57B33C;
  --btn-text: #ffffff;

  --quick-btn-bg: #ffffff;
  --quick-btn-border: #6fbf44;
  --quick-btn-text: #0c2c45;

  --typing-dot: #000000;
}


.dark-theme {
  --chat-bg: #141414;
  --chat-header: #1e8e3e;
  --chat-body: #1b1b1b;
  --chat-text: #ffffff;

  --bot-bg: #242424;
  --bot-text: #ffffff;

  --welcome-bg: #1f1f1f;

  --user-bg1: #57b33c;
  --user-bg2: #2f7d22;

  --border: #3a3a3a;
  --input-bg: #242424;

  --btn-bg: #2f7d22;
  --btn-text: #ffffff;

  --quick-btn-bg: #242424;
  --quick-btn-border: #57b33c;
  --quick-btn-text: #ffffff;

  --typing-dot: #ffffff;
}


#chatbot-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #6fbf44;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

#chatbot-toggle svg {
  width: 26px;
  height: 26px;
}

#chatbot-toggle:hover {
  transform: scale(1.05);
  transition: 0.2s ease;
}


#chatbot-container {
 position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
 
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);

  flex-direction: column;
  
  z-index: 9999;
  font-family: Arial, sans-serif;
  height: 500px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(.95);
  pointer-events: none;

  transition: all .35s cubic-bezier(.22,.61,.36,1);
}
#chatbot-container.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}


#chatbot-container.closing {
  opacity: 0;
  transform: translateY(40px) scale(.9);
}


#chatbot-toggle {
  transition: transform .25s ease;
}
#chatbot-toggle:hover {
  transform: scale(1.15) rotate(8deg);
}

#chatbot-header {
  background: var(--chat-header);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px 16px 0 0;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}


#status-text {
  font-size: 12px;
  font-weight: 500;
  margin-left: 5px;
  opacity: 0.9;
}
.chatbot-status{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:2px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ff4c;
   display:inline-block;   
  box-shadow: 0 0 8px rgba(0, 255, 76, 0.8);
}


.status-dot.typing {
  background: #00ff4c;
  animation: blink 1s infinite;
}


#chatbot-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}


#chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

#chatbot-reset {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  margin-right: 8px;
}

#chatbot-reset:hover {
  opacity: 0.8;
}


#themeToggle {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin-right: 8px;
  color: #fff;
}


#chatbot-body {
  height: 370px;
  padding: 10px;
  overflow-y: auto;
  background: var(--chat-body);
  color: var(--chat-text);
}


.bot-welcome {
  background: var(--welcome-bg);
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bot-text);
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 30px;
}


.quick-actions button {
  background: var(--quick-btn-bg);
  border: 2px solid var(--quick-btn-border);
  color: var(--quick-btn-text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-actions button:hover {
  background: var(--quick-btn-border);
  color: #ffffff;
}


.domain-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.domain-buttons button {
  background: var(--quick-btn-bg);
  border: 1.5px solid var(--quick-btn-border);
  color: var(--quick-btn-text);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.domain-buttons button:hover {
  background: var(--quick-btn-border);
  color: #fff;
}


.user-msg {
  background: linear-gradient(135deg, var(--user-bg1), var(--user-bg2));
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  margin-bottom: 14px;
  margin-left: auto;
  max-width: 80%;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}


.bot-msg {
  background: var(--bot-bg);
  color: var(--bot-text);
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  margin-bottom: 14px;
  max-width: 80%;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}


.bot-msg.typing {
  background: var(--bot-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  opacity: 0.9;
  color: var(--bot-text);
}


.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--typing-dot);
  border-radius: 50%;
  animation: blink 1.4s infinite both;
  border: 1px solid gray;
}

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

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


#chatbot-footer {
  display: flex;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--chat-bg);
}

#chatbot-footer input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--chat-text);
  outline: none;
}

#chatbot-footer input::placeholder {
  color: #999;
}

#chatbot-footer button {
  background: var(--btn-bg);
  border: none;
  color: var(--btn-text);
  padding: 8px 14px;
  margin-left: 6px;
  border-radius: 4px;
  cursor: pointer;
}

#chatbot-footer button:hover {
  opacity: 0.95;
}


@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}
