/* ============================= */
/* ===== GLOBAL SAFE RESET ===== */
/* ============================= */
/* DO NOT touch body / html to avoid host conflicts */


/* ============================= */
/* ===== LANDING PAGE ONLY ===== */
/* ============================= */
.mary-bot {
  font-family: Arial, sans-serif;
  background: #f8fafc;
  color: #111827;

  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mary-bot .mary-container {
  text-align: center;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.mary-bot h1 {
  font-size: 25px;
  font-weight: 700;
  margin-top: 10px;
}

.mary-bot p {
  color: #6b7280;
  margin-top: 8px;
  font-size: 16px;
}


/* ============================= */
/* ===== CHAT WIDGET (GLOBAL) === */
/* ============================= */
/* IMPORTANT: widget can be used anywhere → NO .mary-bot dependency */

.drsbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 380px;
  height: 600px;

  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  overflow: hidden;

  z-index: 999999;
  font-family: Arial, sans-serif;
}


/* ===== HEADER ===== */
.drsbot-widget .chat-header {
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ===== BODY ===== */
.drsbot-widget .chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}


/* ===== BUBBLES ===== */
.drsbot-widget .chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  margin: 6px 0;
  word-break: break-word;
}

.drsbot-widget .chat-bubble.user {
  margin-left: auto;
  background: #2563eb;
  color: #fff;
}

.drsbot-widget .chat-bubble.bot {
  margin-right: auto;
  background: #f3f4f6;
}


/* ===== INPUT AREA ===== */
.drsbot-widget .chat-input-area {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
}

.drsbot-widget input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px;
  border-radius: 10px;
  background: #f3f4f6;

  text-align: left; /* FIX placeholder */
}


/* ===== SEND BUTTON ===== */
.drsbot-widget .send-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.drsbot-widget .send-btn:hover {
  background: #1d4ed8;
}


/* ===== CLOSE BUTTON ===== */
.drsbot-widget .chat-close-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #6b7280;
}

.drsbot-widget .chat-close-btn:hover {
  color: #111827;
}


/* ============================= */
/* ===== FLOATING BUTTON ===== */
/* ============================= */
.drsbot-open-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;

  border: none;
  padding: 14px 18px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);

  display: flex;
  align-items: center;
  gap: 8px;

  z-index: 999998;
}

.drsbot-open-btn:hover {
  transform: translateY(-2px);
}


/* ============================= */
/* ===== OPTIONS BUTTONS ===== */
/* ============================= */
.drsbot-widget .chat-options-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.drsbot-widget .chat-options-buttons button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}


/* ============================= */
/* ===== MOBILE ===== */
/* ============================= */
@media (max-width: 600px) {
  .drsbot-widget {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .drsbot-open-btn {
    bottom: 15px;
    right: 15px;
  }
}


.chat-row {
  display: flex;
  margin: 10px 0;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-row.bot {
  justify-content: flex-start;
}

.chat-bubble.user {
  background: #2563eb;
  color: #fff;
}

.chat-bubble.bot {
  background: #e5e7eb;
  color: #111;
}

.typing {
  font-style: italic;
  color: #6b7280;
}

/* HEADER */
.drsbot-widget .chat-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

/* HOME */
.chat-home {
  flex: 1;
  overflow: auto;
  padding: 20px;
  text-align: center;
}

.chat-title {
  font-size: 28px;
  margin-bottom: 20px;
}

.chat-home-inner {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;   /* 🔥 prevents scroll */
}
/* INPUT */
.chat-input-wrapper,
.chat-input-container {
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;   /* 🔥 THIS FIXES IT */
  background: #f3f4f6;
  border-radius: 999px;     /* 🔥 FULL PILL */
  padding: 6px;             /* 🔥 reduce */

  width: 100%;
}

.chat-input {
  flex: 1;
  min-width: 0;

  border: none;
  outline: none;
  background: transparent;   /* 🔥 IMPORTANT */
}
.chat-mic-btn {
  border: none;
  background: #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  flex-shrink: 0;
}

.chat-send-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;      /* 🔥 prevents shrinking */
  white-space: nowrap;
}

/* PILLS */
.chat-pills {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chat-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;

  background: #f9fafb;
  color: #111827;
  font-size: 14px;
  cursor: pointer;

  white-space: nowrap;
}

.chat-pill-btn img,
.chat-pill-btn svg {
  width: 16px;
  height: 16px;
}
/* CHAT AREA */
.chat-conversation {
  display: none;
  flex: 1;
  overflow: auto;
  padding: 16px;
}

/* INPUT BAR */
.chat-input-bar {
  display: none;
  border-top: 1px solid #eee;
  padding: 10px;
}

.chat-input-container {
  display: flex;
  gap: 10px;
  background: #f3f4f6;
  border-radius: 18px;
  padding: 10px;
}
.drsbot-widget {
  overflow-x: hidden;   /* 🔥 kill horizontal scroll */
}



/* ADD THIS BELOW */
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
}

.voice-wave span {
  width: 3px;
  height: 10px;
  background: #ef4444;
  border-radius: 2px;
  animation: wave 1s infinite ease-in-out;
}

.voice-wave span:nth-child(2) { animation-delay: 0.2s; }
.voice-wave span:nth-child(3) { animation-delay: 0.4s; }
.voice-wave span:nth-child(4) { animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: 16px; }
}