:root {
    --aradoo-green: #05FD6F;
    --aradoo-blue: #3690F3;
    --aradoo-light-grey: #F0EFEF;
    --bs-light: var(--aradoo-light-grey);
    --aradoo-grey: #EEEEEE;
    --aradoo-dark-grey: #555;
    --aradoo-dark-grey-1: #333;
    --aradoo-black: #171523;
    --primary: #24a3d8;
    --bs-primary:var(--primary);
    --primary-hover: rgba(36, 163, 216, 0.78);
    --bs-btn-bg: --primary;
    /*--aradoo-green-rgb: 5 253 111;*/
    --aradoo-green-rgb: 36 163 216;
    --surface: rgba(255, 255, 255, 0.65);
    --surface-border: rgba(0, 0, 0, 0.08);
    --ring: #6aa3ff;
    --maxw: 80vw;
}

.ai-assistant-toggle {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 3.25rem;
  height: 3.25rem;
  z-index: 1080; /* boven de meeste dingen, onder modals */
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-assistant-icon {
  font-size: 1.4rem;
}

.ai-assistant-offcanvas {
  width: 380px;
  max-width: 100%;
}

.ai-chat-messages {
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}

/* simpele bubbles */
.ai-msg {
  margin-bottom: 0.5rem;
  display: flex;
}

.ai-msg-user {
  justify-content: flex-end;
}

.ai-msg-assistant {
  justify-content: flex-start;
}

.ai-msg-bubble {
  max-width: 90%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.ai-msg-user .ai-msg-bubble {
  background: var(--bs-primary);
  color: #fff;
  border-bottom-right-radius: 0.2rem;
}

.ai-msg-assistant .ai-msg-bubble {
  background: var(--bs-light);
  border-bottom-left-radius: 0.2rem;
}

.ai-chat-indicator {
  border-top: 1px dashed rgba(0,0,0,.06);
}


.ai-msg-thinking .ai-thinking-text {
  opacity: 0.4;
  font-size: 0.85em;
}

.ai-thinking-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.ai-thinking-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #adb5bd;
  animation: ai-thinking-bounce 1s infinite ease-in-out;
}

.ai-thinking-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-thinking-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ai-thinking-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.ai-msg-bubble-content {
  white-space: pre-line;
}
