/* LifeCrafter ChatBot Widget - Styles Premium */

/* Variables du chatbot alignées sur votre design */
:root {
  --chatbot-sage-50: #f9f8f6;
  --chatbot-sage-100: #f4f2ee;
  --chatbot-sage-200: #ede8e0;
  --chatbot-sage-300: #d8cfc2;
  --chatbot-sage-400: #92a67f;
  --chatbot-sage-500: #6b7c5a;
  --chatbot-sage-600: #5a6b49;
  --chatbot-sage-700: #4d5a3f;
  --chatbot-sage-800: #404a35;
  --chatbot-stone-50: #fdfcfa;
  --chatbot-stone-100: #f7f5f2;
  --chatbot-stone-200: #efebe6;
  --chatbot-stone-300: #e2ddd6;
  --chatbot-stone-400: #c4bab0;
  --chatbot-stone-500: #8f8075;
  --chatbot-stone-600: #6b5d52;
  --chatbot-stone-700: #544840;
  --chatbot-stone-800: #3d322a;
  --chatbot-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --chatbot-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --chatbot-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --chatbot-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --chatbot-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --chatbot-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --chatbot-duration-200: 200ms;
  --chatbot-duration-300: 300ms;
  --chatbot-duration-500: 500ms;
}

/* Reset et isolation du chatbot */
.lifecrafter-chatbot-container *,
.lifecrafter-chatbot-container *::before,
.lifecrafter-chatbot-container *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Conteneur principal du chatbot */
.lifecrafter-chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--chatbot-font-sans);
  line-height: 1.5;
  color: var(--chatbot-stone-700);
  pointer-events: none;
}

/* Bouton d'ouverture du chatbot */
.lifecrafter-chatbot-trigger {
  position: relative;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--chatbot-sage-500) 0%, var(--chatbot-sage-600) 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--chatbot-shadow-lg), 0 0 0 1px rgba(107, 124, 90, 0.1);
  transition: all var(--chatbot-duration-300) var(--chatbot-ease-out);
  pointer-events: auto;
  transform: scale(1);
  backface-visibility: hidden;
}

.lifecrafter-chatbot-trigger:hover {
  background: linear-gradient(135deg, var(--chatbot-sage-600) 0%, var(--chatbot-sage-700) 100%);
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--chatbot-shadow-xl), 0 0 0 1px rgba(107, 124, 90, 0.2);
}

.lifecrafter-chatbot-trigger:active {
  transform: scale(0.95);
}

.lifecrafter-chatbot-trigger:focus {
  outline: 3px solid rgba(107, 124, 90, 0.5);
  outline-offset: 2px;
}

/* Icône du chatbot */
.lifecrafter-chatbot-icon {
  width: 28px;
  height: 28px;
  color: white;
  transition: transform var(--chatbot-duration-300) var(--chatbot-ease-out);
}

.lifecrafter-chatbot-trigger:hover .lifecrafter-chatbot-icon {
  transform: scale(1.1);
}

/* Badge de notification */
.lifecrafter-chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: lifecrafter-chatbot-pulse 2s ease-in-out infinite;
  transform: scale(0);
  transition: transform var(--chatbot-duration-300) var(--chatbot-ease-out);
}

.lifecrafter-chatbot-badge.show {
  transform: scale(1);
}

/* Fenêtre de chat */
.lifecrafter-chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 20px;
  box-shadow: var(--chatbot-shadow-xl), 0 0 0 1px rgba(107, 124, 90, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: auto;
  transition: all var(--chatbot-duration-300) var(--chatbot-ease-out);
  backdrop-filter: blur(20px);
  border: 1px solid var(--chatbot-sage-100);
}

.lifecrafter-chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* En-tête du chat */
.lifecrafter-chatbot-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--chatbot-sage-50) 0%, var(--chatbot-stone-50) 100%);
  border-bottom: 1px solid var(--chatbot-sage-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.lifecrafter-chatbot-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--chatbot-sage-400), transparent);
  border-radius: 1px;
}

.lifecrafter-chatbot-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lifecrafter-chatbot-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--chatbot-sage-200), var(--chatbot-sage-300));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--chatbot-shadow-sm);
}

.lifecrafter-chatbot-avatar::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
}

.lifecrafter-chatbot-avatar-icon {
  width: 20px;
  height: 20px;
  color: var(--chatbot-sage-700);
  z-index: 1;
}

.lifecrafter-chatbot-header-text {
  flex: 1;
}

.lifecrafter-chatbot-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--chatbot-stone-800);
  margin: 0;
  line-height: 1.2;
}

.lifecrafter-chatbot-status {
  font-size: 13px;
  color: var(--chatbot-sage-600);
  margin: 2px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lifecrafter-chatbot-status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: lifecrafter-chatbot-pulse 3s ease-in-out infinite;
}

/* Bouton de fermeture */
.lifecrafter-chatbot-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--chatbot-sage-200);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--chatbot-duration-200) var(--chatbot-ease-out);
  backdrop-filter: blur(10px);
}

.lifecrafter-chatbot-close:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--chatbot-sage-300);
  transform: scale(1.05);
}

.lifecrafter-chatbot-close-icon {
  width: 16px;
  height: 16px;
  color: var(--chatbot-stone-600);
}

/* Zone de messages */
.lifecrafter-chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, 
    var(--chatbot-stone-50) 0%,
    rgba(249, 248, 246, 0.98) 50%,
    rgba(244, 242, 238, 0.95) 100%
  );
}

.lifecrafter-chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.lifecrafter-chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.lifecrafter-chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--chatbot-sage-300);
  border-radius: 3px;
}

.lifecrafter-chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--chatbot-sage-400);
}

/* Message individuel */
.lifecrafter-chatbot-message {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  animation: lifecrafter-chatbot-slideIn 0.3s ease-out forwards;
}

.lifecrafter-chatbot-message.user {
  flex-direction: row-reverse;
}

.lifecrafter-chatbot-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--chatbot-shadow-sm);
}

.lifecrafter-chatbot-message.bot .lifecrafter-chatbot-message-avatar {
  background: linear-gradient(135deg, var(--chatbot-sage-200), var(--chatbot-sage-300));
}

.lifecrafter-chatbot-message.user .lifecrafter-chatbot-message-avatar {
  background: linear-gradient(135deg, var(--chatbot-stone-200), var(--chatbot-stone-300));
}

.lifecrafter-chatbot-message-avatar-icon {
  width: 16px;
  height: 16px;
  color: var(--chatbot-sage-700);
}

.lifecrafter-chatbot-message.user .lifecrafter-chatbot-message-avatar-icon {
  color: var(--chatbot-stone-700);
}

.lifecrafter-chatbot-message-content {
  flex: 1;
  max-width: 75%;
}

.lifecrafter-chatbot-message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--chatbot-shadow-sm);
}

.lifecrafter-chatbot-message.bot .lifecrafter-chatbot-message-bubble {
  background: white;
  border: 1px solid var(--chatbot-sage-100);
  color: var(--chatbot-stone-700);
}

.lifecrafter-chatbot-message.user .lifecrafter-chatbot-message-bubble {
  background: linear-gradient(135deg, var(--chatbot-sage-500) 0%, var(--chatbot-sage-600) 100%);
  color: white;
  margin-left: auto;
}

.lifecrafter-chatbot-message-time {
  font-size: 11px;
  color: var(--chatbot-stone-500);
  margin-top: 4px;
  text-align: right;
}

.lifecrafter-chatbot-message.bot .lifecrafter-chatbot-message-time {
  text-align: left;
}

/* Indicateur de frappe */
.lifecrafter-chatbot-typing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--chatbot-duration-300) var(--chatbot-ease-out);
}

.lifecrafter-chatbot-typing.show {
  opacity: 1;
  transform: translateY(0);
}

.lifecrafter-chatbot-typing-dots {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--chatbot-sage-100);
  border-radius: 16px;
  box-shadow: var(--chatbot-shadow-sm);
}

.lifecrafter-chatbot-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--chatbot-sage-500);
  border-radius: 50%;
  animation: lifecrafter-chatbot-typingDot 1.4s ease-in-out infinite;
}

.lifecrafter-chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.lifecrafter-chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Zone de saisie */
.lifecrafter-chatbot-input-area {
  padding: 20px;
  background: white;
  border-top: 1px solid var(--chatbot-sage-100);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.lifecrafter-chatbot-input-wrapper {
  flex: 1;
  position: relative;
}

.lifecrafter-chatbot-input {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  padding: 12px 16px;
  border: 2px solid var(--chatbot-sage-200);
  border-radius: 12px;
  font-family: var(--chatbot-font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--chatbot-stone-700);
  background: var(--chatbot-stone-50);
  resize: none;
  transition: all var(--chatbot-duration-200) var(--chatbot-ease-out);
  outline: none;
}

.lifecrafter-chatbot-input:focus {
  border-color: var(--chatbot-sage-400);
  background: white;
  box-shadow: 0 0 0 3px rgba(107, 124, 90, 0.1);
}

.lifecrafter-chatbot-input::placeholder {
  color: var(--chatbot-stone-500);
}

/* Bouton d'envoi */
.lifecrafter-chatbot-send {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--chatbot-sage-500) 0%, var(--chatbot-sage-600) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--chatbot-duration-200) var(--chatbot-ease-out);
  opacity: 0.6;
  transform: scale(0.95);
  box-shadow: var(--chatbot-shadow-sm);
}

.lifecrafter-chatbot-send:enabled {
  opacity: 1;
  transform: scale(1);
}

.lifecrafter-chatbot-send:hover:enabled {
  background: linear-gradient(135deg, var(--chatbot-sage-600) 0%, var(--chatbot-sage-700) 100%);
  transform: scale(1.05);
  box-shadow: var(--chatbot-shadow-md);
}

.lifecrafter-chatbot-send:active:enabled {
  transform: scale(0.95);
}

.lifecrafter-chatbot-send:focus {
  outline: 3px solid rgba(107, 124, 90, 0.5);
  outline-offset: 2px;
}

.lifecrafter-chatbot-send-icon {
  width: 20px;
  height: 20px;
  color: white;
  transition: transform var(--chatbot-duration-200) var(--chatbot-ease-out);
}

.lifecrafter-chatbot-send:hover:enabled .lifecrafter-chatbot-send-icon {
  transform: translateX(1px);
}

/* Message de bienvenue */
.lifecrafter-chatbot-welcome {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--chatbot-sage-50), rgba(117, 140, 99, 0.05));
  border: 1px solid var(--chatbot-sage-100);
  border-radius: 16px;
  margin-bottom: 20px;
}

.lifecrafter-chatbot-welcome-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--chatbot-stone-800);
  margin: 0 0 8px 0;
}

.lifecrafter-chatbot-welcome-text {
  font-size: 14px;
  color: var(--chatbot-stone-600);
  line-height: 1.5;
  margin: 0;
}

/* Suggestions de questions */
.lifecrafter-chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.lifecrafter-chatbot-suggestion {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--chatbot-sage-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--chatbot-sage-700);
  cursor: pointer;
  transition: all var(--chatbot-duration-200) var(--chatbot-ease-out);
  backdrop-filter: blur(10px);
}

.lifecrafter-chatbot-suggestion:hover {
  background: white;
  border-color: var(--chatbot-sage-400);
  transform: translateY(-1px);
  box-shadow: var(--chatbot-shadow-sm);
}

/* Animations */
@keyframes lifecrafter-chatbot-pulse {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(1); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1.1); 
  }
}

@keyframes lifecrafter-chatbot-slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lifecrafter-chatbot-typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* États de chargement */
.lifecrafter-chatbot-loading {
  opacity: 0.7;
  pointer-events: none;
}

.lifecrafter-chatbot-error {
  border-color: #ef4444;
  background: #fef2f2;
}

/* Responsive */
@media (max-width: 480px) {
  .lifecrafter-chatbot-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .lifecrafter-chatbot-window {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    bottom: 0;
  }

  .lifecrafter-chatbot-trigger {
    width: 56px;
    height: 56px;
  }

  .lifecrafter-chatbot-icon {
    width: 24px;
    height: 24px;
  }

  .lifecrafter-chatbot-header {
    padding: 16px 20px;
  }

  .lifecrafter-chatbot-messages {
    padding: 16px;
  }

  .lifecrafter-chatbot-input-area {
    padding: 16px;
  }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
  :root {
    --chatbot-stone-50: #1c1917;
    --chatbot-stone-100: #292524;
    --chatbot-stone-200: #44403c;
    --chatbot-stone-300: #57534e;
    --chatbot-stone-400: #78716c;
    --chatbot-stone-500: #a8a29e;
    --chatbot-stone-600: #d6d3d1;
    --chatbot-stone-700: #e7e5e4;
    --chatbot-stone-800: #f5f5f4;
    --chatbot-sage-50: #1a1f17;
    --chatbot-sage-100: #232a1e;
    --chatbot-sage-200: #2d3629;
  }

  .lifecrafter-chatbot-window {
    background: var(--chatbot-stone-50);
    border-color: var(--chatbot-sage-200);
  }

  .lifecrafter-chatbot-header {
    background: linear-gradient(135deg, var(--chatbot-sage-50) 0%, var(--chatbot-stone-50) 100%);
  }

  .lifecrafter-chatbot-messages {
    background: var(--chatbot-stone-50);
  }

  .lifecrafter-chatbot-message.bot .lifecrafter-chatbot-message-bubble {
    background: var(--chatbot-stone-100);
    border-color: var(--chatbot-sage-200);
  }

  .lifecrafter-chatbot-input {
    background: var(--chatbot-stone-100);
    border-color: var(--chatbot-sage-200);
    color: var(--chatbot-stone-700);
  }

  .lifecrafter-chatbot-input:focus {
    background: var(--chatbot-stone-50);
  }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  .lifecrafter-chatbot-container *,
  .lifecrafter-chatbot-container *::before,
  .lifecrafter-chatbot-container *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible */
.lifecrafter-chatbot-container *:focus:not(:focus-visible) {
  outline: none;
}

.lifecrafter-chatbot-container *:focus-visible {
  outline: 2px solid var(--chatbot-sage-400);
  outline-offset: 2px;
}

/* =====================================
   AJOUTS CSS POUR PERSISTANCE ET PERSONNALISATION
   À ajouter à la fin de chatbot-widget.css
   ===================================== */

/* Header avec menu */
.lifecrafter-chatbot-header-menu {
  position: relative;
}

.lifecrafter-chatbot-menu-button {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--chatbot-sage-200);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--chatbot-duration-200) var(--chatbot-ease-out);
  backdrop-filter: blur(10px);
  margin-right: 8px;
}

.lifecrafter-chatbot-menu-button:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--chatbot-sage-300);
  transform: scale(1.05);
}

.lifecrafter-chatbot-menu-icon {
  width: 14px;
  height: 14px;
  color: var(--chatbot-stone-600);
}

/* Menu déroulant */
.lifecrafter-chatbot-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: white;
  border: 1px solid var(--chatbot-sage-200);
  border-radius: 12px;
  box-shadow: var(--chatbot-shadow-lg);
  padding: 8px;
  z-index: 1000;
  transform: scale(0.95) translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--chatbot-duration-200) var(--chatbot-ease-out);
}

.lifecrafter-chatbot-menu-dropdown.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lifecrafter-chatbot-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--chatbot-duration-200) var(--chatbot-ease-out);
  font-size: 13px;
  color: var(--chatbot-stone-700);
}

.lifecrafter-chatbot-menu-item:hover {
  background: var(--chatbot-sage-50);
  color: var(--chatbot-sage-700);
}

.lifecrafter-chatbot-menu-item-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.lifecrafter-chatbot-menu-item.danger {
  color: #ef4444;
}

.lifecrafter-chatbot-menu-item.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Message de chargement */
.lifecrafter-chatbot-loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--chatbot-stone-500);
  font-size: 14px;
  gap: 8px;
}

.lifecrafter-chatbot-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--chatbot-sage-200);
  border-top: 2px solid var(--chatbot-sage-500);
  border-radius: 50%;
  animation: lifecrafter-chatbot-spin 1s linear infinite;
}

@keyframes lifecrafter-chatbot-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Message d'erreur */
.lifecrafter-chatbot-error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  color: #ef4444;
  font-size: 14px;
  text-align: center;
  gap: 12px;
}

.lifecrafter-chatbot-retry-button {
  padding: 8px 16px;
  background: var(--chatbot-sage-500);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--chatbot-duration-200) var(--chatbot-ease-out);
}

.lifecrafter-chatbot-retry-button:hover {
  background: var(--chatbot-sage-600);
  transform: translateY(-1px);
}

/* Messages personnalisés */
.lifecrafter-chatbot-welcome.personalized .lifecrafter-chatbot-welcome-title {
  color: var(--chatbot-sage-700);
}

.lifecrafter-chatbot-welcome.personalized .lifecrafter-chatbot-welcome-text {
  color: var(--chatbot-sage-600);
}

/* Indicateur de connexion */
.lifecrafter-chatbot-connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--chatbot-stone-500);
  margin-top: 2px;
}

.lifecrafter-chatbot-connection-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.lifecrafter-chatbot-connection-dot.offline {
  background: #ef4444;
}

/* Animation pour nouveaux messages */
.lifecrafter-chatbot-message.new {
  animation: lifecrafter-chatbot-messageAppear 0.4s ease-out;
}

@keyframes lifecrafter-chatbot-messageAppear {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Message de confirmation de suppression */
.lifecrafter-chatbot-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.lifecrafter-chatbot-confirm-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--chatbot-shadow-xl);
  max-width: 400px;
  width: calc(100% - 32px);
  text-align: center;
}

.lifecrafter-chatbot-confirm-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--chatbot-stone-800);
  margin: 0 0 8px 0;
}

.lifecrafter-chatbot-confirm-text {
  color: var(--chatbot-stone-600);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.lifecrafter-chatbot-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.lifecrafter-chatbot-confirm-button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--chatbot-duration-200) var(--chatbot-ease-out);
}

.lifecrafter-chatbot-confirm-button.primary {
  background: #ef4444;
  color: white;
}

.lifecrafter-chatbot-confirm-button.primary:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.lifecrafter-chatbot-confirm-button.secondary {
  background: var(--chatbot-stone-100);
  color: var(--chatbot-stone-700);
}

.lifecrafter-chatbot-confirm-button.secondary:hover {
  background: var(--chatbot-stone-200);
}
