@import url(https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap);
/* Axoma Chatbot Scoped Styles */
.axoma-chatbot-scope {
  font-family: "DM Sans", sans-serif;
}

.axoma-chatbot-scope * {
  font-family: "DM Sans", sans-serif !important;
  box-sizing: border-box;
}

.axoma-chatbot-scope .chatbot-container {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.axoma-chatbot-scope .chatbot-container.floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.axoma-chatbot-scope .chatbot-header {
  background-color: transparent;
}

.axoma-chatbot-scope .chatbot-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}

.axoma-chatbot-scope .chatbot-header-left {
  position: relative;
}

.axoma-chatbot-scope .chatbot-header-right {
  display: flex;
  gap: 8px;
}

.axoma-chatbot-scope .chatbot-message.streaming .chatbot-message-content {
  position: relative;
}

.axoma-chatbot-scope .chatbot-message.streaming .chatbot-message-content::after {
  content: '|';
  animation: axoma-blink 1s steps(5, start) infinite;
  margin-left: 2px;
}

.axoma-chatbot-scope .markdown-body {
  font-size: 14px;
  line-height: 1.6;
}

.axoma-chatbot-scope .markdown-body p {
  margin: 0 0 0.8em;
}

.axoma-chatbot-scope .markdown-body ol,
.axoma-chatbot-scope .markdown-body ul,
.axoma-chatbot-scope .markdown-body menu {
  list-style: none;
  padding: 0;
  font-size: 12px;
}

.axoma-chatbot-scope .markdown-body h1,
.axoma-chatbot-scope .markdown-body h2,
.axoma-chatbot-scope .markdown-body h3 {
  margin: 1em 0 0.5em;
  font-weight: bold;
}

.axoma-chatbot-scope .markdown-body code {
  background: #f3f3f3;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
}

@keyframes axoma-blink {
  to {
    visibility: hidden;
  }
}

.axoma-chatbot-scope .chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: left;
}

.axoma-chatbot-scope .chatbot-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.axoma-chatbot-scope .chatbot-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.axoma-chatbot-scope .chatbot-subtitle {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.axoma-chatbot-scope .chatbot-menu-button,
.axoma-chatbot-scope .chatbot-icon-button {
  color: #898787;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.axoma-chatbot-scope .chatbot-menu-button:hover,
.axoma-chatbot-scope .chatbot-icon-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.axoma-chatbot-scope .chatbot-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  color: #333;
  font-size: 12px;
  text-align: left;
}

.axoma-chatbot-scope .chatbot-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  min-width: 180px;
  padding: 8px 0;
  margin-top: 4px;
}

.axoma-chatbot-scope .chatbot-dropdown-item:hover {
  background-color: #f5f5f5;
}

.axoma-chatbot-scope .chatbot-disclaimer {
  font-size: 10px;
  opacity: 0.8;
  padding: 10px;
  border-top: 1px solid #c7c7c7;
  border-bottom: 1px solid #c7c7c7;
}

.axoma-chatbot-scope .chatbot-disclaimer p {
  margin: 0;
  color: #857f7f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.axoma-chatbot-scope .chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.axoma-chatbot-scope .chatbot-message {
  display: flex;
  gap: 4px;
  height: auto;
  max-width: 95%;
}

.axoma-chatbot-scope .chatbot-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.axoma-chatbot-scope .chatbot-message.bot {
  align-self: flex-start;
}

.axoma-chatbot-scope .chatbot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: '#FFF';
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.axoma-chatbot-scope .avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.axoma-chatbot-scope .chatbot-message-content {
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.axoma-chatbot-scope .chatbot-message.user .chatbot-message-content {
  border-radius: 14px 4px 4px 4px;
  background-color: #05A8ED17;
  color: #000000;
}

.axoma-chatbot-scope .chatbot-message-content p {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}

.axoma-chatbot-scope .chatbot-timestamp {
  font-size: 10px;
  opacity: 0.7;
  display: block;
  margin-top: 4px;
}

.axoma-chatbot-scope .chatbot-message-content.typing {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.axoma-chatbot-scope .typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: white;
  border-radius: 18px;
  width: fit-content;
}

.axoma-chatbot-scope .typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #999;
  display: inline-block;
  animation: axoma-typing 1.4s infinite both;
}

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

.axoma-chatbot-scope .typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}
/* Confirmation Dialog Styles */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.dialog-overlay.active {
  display: flex;
}

.confirmation-dialog {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.dialog-title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.dialog-message {
  margin: 0 0 24px 0;
  color: #666;
  line-height: 1.5;
}

.dialog-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.dialog-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-confirm {
  background-color: #ef4444;
  color: white;
}

.btn-confirm:hover {
  background-color: #dc2626;
}

.btn-cancel {
  background-color: #e5e7eb;
  color: #374151;
}

.btn-cancel:hover {
  background-color: #d1d5db;
}


@keyframes axoma-typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}

.axoma-chatbot-scope .chatbot-input-container {
  padding: 12px;
}

.axoma-chatbot-scope .chatbot-input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  width: 100%;
  border: 2px solid #40BDF1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 4px 6px 14px 0px #00000021;
}

.axoma-chatbot-scope .chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  outline: none;
  font-size: 12px;
  border: none;
}

.axoma-chatbot-scope .chatbot-input:focus {
  border-color: var(--primary-color, #3B82F6);
}

.axoma-chatbot-scope .chatbot-send-button {
  border: none;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  margin: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.axoma-chatbot-scope .chatbot-send-button:disabled {
  cursor: not-allowed;
}

.axoma-chatbot-scope .chatbot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  background: white;
  font-size: 0.7rem;
  color: #555;
}

.axoma-chatbot-scope .footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.axoma-chatbot-scope .footer-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.axoma-chatbot-scope .privacy-link {
  color: #4a6cf7;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.axoma-chatbot-scope .privacy-link:hover {
  color: #304bc9;
  text-decoration: underline;
}

.axoma-chatbot-scope .powered-by {
  display: flex;
  align-items: center;
  gap: 5px;
}

.axoma-chatbot-scope .logo {
  height: 28px;
  vertical-align: middle;
}


.axoma-chatbot-scope .divider {
  height: 16px;
  width: 1px;
  background: #ddd;
  margin: 0 10px;
}

.axoma-chatbot-scope .dialog-overlay {
  width: 35%;
  position: absolute;
  top: 60%;
  left: 64%;
  height: 220px;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.axoma-chatbot-scope .dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.axoma-chatbot-scope .confirmation-dialog {
  background-color: white;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.axoma-chatbot-scope .dialog-overlay.active .confirmation-dialog {
  transform: translateY(0);
}

.axoma-chatbot-scope .dialog-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.axoma-chatbot-scope .dialog-message {
  color: #968C8C;
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.axoma-chatbot-scope .dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-direction: column;
}

.axoma-chatbot-scope .dialog-btn {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.axoma-chatbot-scope .btn-cancel {
  background-color: #fff;
  border: 1px solid #D9D9D9;
  font-size: 14px;
  color: #333;
}

.axoma-chatbot-scope .btn-cancel:hover {
  background-color: #fff;
}

.axoma-chatbot-scope .btn-confirm {
  background-color: #FC003F;
  color: white;
}

.axoma-chatbot-scope .btn-confirm:hover {
  background-color: #FC003F;
}

.axoma-chatbot-scope .agent-in-action-indicator {
  display: flex;
  margin: 10px 0;
  padding: 0 10px;
}

.axoma-chatbot-scope .agent-status-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1a1a1a;
}

.axoma-chatbot-scope .agent-status-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.axoma-chatbot-scope .agent-status-text {
  font-weight: 400;
}

.axoma-chatbot-scope .agent-name-highlight {
  font-weight: 700;
  font-style: italic;
  color: #05A8ED;
}

.axoma-chatbot-scope .typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.axoma-chatbot-scope .typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: #999;
  border-radius: 50%;
  animation: axoma-typing-bounce 1.4s infinite ease-in-out;
}

.axoma-chatbot-scope .typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.axoma-chatbot-scope .typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes axoma-typing-bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Mobile phones (portrait, <480px) */
@media (max-width: 480px) {
  .axoma-chatbot-scope .chatbot-container {
    width: 100% !important;
    height: 100% !important;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }

  .axoma-chatbot-scope .chatbot-header-content {
    padding: 8px;
  }

  .axoma-chatbot-scope .chatbot-title {
    font-size: 14px;
  }

  .axoma-chatbot-scope .chatbot-message-content p {
    font-size: 11px;
    line-height: 18px;
  }

  .axoma-chatbot-scope .chatbot-input {
    font-size: 11px;
    padding: 10px;
  }

  .axoma-chatbot-scope .chatbot-float-button {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
}

/* Tablets (portrait and landscape, 481px–768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .axoma-chatbot-scope .chatbot-container {
    width: 90% !important;
    height: 80% !important;
    bottom: 10px;
    right: 10px;
  }

  .axoma-chatbot-scope .chatbot-title {
    font-size: 15px;
  }

  .axoma-chatbot-scope .chatbot-message-content p {
    font-size: 12px;
  }

  .axoma-chatbot-scope .chatbot-input {
    font-size: 12px;
  }
}

/* Small laptops (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .axoma-chatbot-scope .chatbot-container {
    width: 400px;
    height: 550px;
  }

  .axoma-chatbot-scope .chatbot-title {
    font-size: 16px;
  }
}

/* Large desktops (1025px and up) */
@media (min-width: 1025px) {
  .axoma-chatbot-scope .chatbot-container {
    width: 450px;
    height: 600px;
  }
}

/* Floating button styles */
.axoma-chatbot-scope .chatbot-float-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color, #3B82F6);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.axoma-chatbot-scope .chatbot-float-button.active {
  background-color: #666;
}

.axoma-chatbot-scope .chatbot-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.axoma-chatbot-scope .chatbot-float-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  transition: all 0.3s ease;
}

.axoma-chatbot-scope .chatbot-float-container.minimized {
  height: 0;
  overflow: hidden;
}
