/* Container - fixed right edge */
.chatbot-container {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Firefox: offset to avoid overlay scrollbar overlap */
@-moz-document url-prefix() {
  .chatbot-container {
    right: 6px;
  }
}

/* Toggle Button - dark circle on left edge of panel */
.chatbot-toggle {
  position: absolute;
  top: 50%;
  left: -48px;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #844bf1 75%);
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: filter 0.2s ease, transform 0.3s ease;
}

.chatbot-toggle:hover {
  filter: brightness(1.1);
}

.chatbot-container.open .chatbot-toggle {
  transform: translateY(-50%) translateX(calc(-1 * var(--chatbot-panel-width, 500px)));
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: transform 0.3s ease;
}

.chatbot-toggle:hover svg {
  transform: rotate(90deg);
}

/* Panel - slides in from right */
.chatbot-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  max-width: calc(100vw - 60px);
  height: 100%;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: row;
  pointer-events: auto;
}

.chatbot-container.open .chatbot-panel {
  transform: translateX(0);
}

/* Resizer handle - left edge of panel for width adjustment */
.chatbot-resizer {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
  background: transparent;
  transition: background 0.2s ease;
  z-index: 1;
}

.chatbot-resizer:hover,
.chatbot-resizer.dragging {
  background: rgba(100, 100, 100, 0.2);
}

/* Icon Rail - left edge of panel */
.chatbot-rail {
  width: 78px;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  border-radius: 24px 0 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  flex-shrink: 0;
}

.chatbot-rail-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Mode Buttons */
.chatbot-mode-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.chatbot-mode-btn {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 24px;
  transition: background 0.2s ease, color 0.2s ease;
}

.chatbot-mode-btn:hover,
.chatbot-mode-btn.active {
  background: white;
  color: #4338CA;
}

/* Main content area - right of rail */
.chatbot-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.chatbot-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #222222;
  margin: 0;
  flex: 1;
}

/* New Chat Button */
.chatbot-new-chat {
  display: block;
  padding: 8px 16px;
  background: #486bb4;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 12px;
  transition: background 0.2s ease;
}

.chatbot-new-chat:hover {
  background: #5b7cc2;
}

.chatbot-close {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  background: #f0f4fa;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #787777;
  transition: background 0.2s ease, color 0.2s ease;
}

.chatbot-close svg {
  width: 18px;
  height: 18px;
}

.chatbot-close:hover {
  background: #e0e5ee;
}

/* Messages Area */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Q&A Pair - groups a user question with its bot response */
.chatbot-qa-pair {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Message Bubbles */
.chatbot-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  animation: messageSlide 0.3s ease-out;
}

.chatbot-message.user {
  align-self: flex-end;
  background: #F0F4FA;
  color: #222222;
}

.chatbot-message.bot {
  align-self: flex-start;
  background: #FFFFFF;
  color: #222222;
}

.chatbot-message.error {
  align-self: flex-start;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading indicator */
.chatbot-loading {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.chatbot-loading span {
  width: 8px;
  height: 8px;
  background: #4338CA;
  border-radius: 50%;
  animation: loadingBounce 1.4s ease-in-out infinite;
}

.chatbot-loading span:nth-child(1) { animation-delay: -0.32s; }
.chatbot-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes chatbotShimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Input Area */
.chatbot-input-area {
  display: flex;
  padding: 16px 20px;
  flex-shrink: 0;
}

.chatbot-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 56px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-input-wrapper:focus-within {
  border-color: #4338CA;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.chatbot-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 12px;
  border: none;
  font-size: 14px;
  line-height: 1.3;
  font-family: inherit;
  resize: none;
  outline: none;
  background: transparent;
}

.chatbot-input::placeholder {
  color: #6b7280;
}

/* Tools Button and Dropdown */
.chatbot-tools-container {
  position: relative;
}

.chatbot-tools-btn,
.chatbot-attach-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: background 0.2s ease, color 0.2s ease;
}

.chatbot-tools-btn:hover,
.chatbot-tools-btn.active,
.chatbot-attach-btn:hover {
  background: #f0f4fa;
  color: #4338CA;
}

.chatbot-tools-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: none;
  z-index: 100;
}

.chatbot-tools-dropdown.open {
  display: block;
  animation: dropdownSlide 0.15s ease-out;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-tool-option {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chatbot-tool-option:hover {
  background: #f8fafc;
}

.chatbot-tool-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #4338CA;
  cursor: pointer;
}

.chatbot-tool-option:has(input:disabled) {
  cursor: default;
  opacity: 0.6;
}

.chatbot-tool-option:has(input:disabled):hover {
  background: transparent;
}

.chatbot-tool-label {
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  flex: 1;
}

.chatbot-tool-desc {
  width: 100%;
  padding-left: 24px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* Send Button - inside input wrapper */
.chatbot-send {
  width: 44px;
  height: 44px;
  background: #5B7FC7;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.chatbot-send:hover:not(:disabled) {
  background: #4A6DB5;
}

.chatbot-send:disabled {
  background: #A8BDE0;
  cursor: not-allowed;
}

.chatbot-send svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .chatbot-panel {
    width: 100vw;
    max-width: 100vw;
  }

  .chatbot-toggle {
    left: -44px;
    width: 44px;
    height: 44px;
  }

  .chatbot-container.open .chatbot-toggle {
    opacity: 0;
    pointer-events: none;
  }
}

/* Markdown content styling for bot messages based on the library marked */
.chatbot-message.bot p {
  margin: 0 0 0.75em 0;
}

.chatbot-message.bot > *:first-child {
  margin-top: 0;
}

.chatbot-message.bot > *:last-child {
  margin-bottom: 0;
}

.chatbot-message.bot ul,
.chatbot-message.bot ol {
  margin: 0.25em 0;
  padding-left: 1.25em;
}

.chatbot-message.bot li {
  margin: 0;
}

.chatbot-message.bot li > p {
  margin: 0;
}

.chatbot-message.bot li > ul,
.chatbot-message.bot li > ol {
  margin: 0;
}

.chatbot-message.bot code {
  background: #f3f4f6;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.chatbot-message.bot blockquote {
  border-left: 3px solid #d1d5db;
  margin: 0.75em 0;
  padding-left: 1em;
  color: #6b7280;
}

.chatbot-message.bot h1,
.chatbot-message.bot h2,
.chatbot-message.bot h3,
.chatbot-message.bot h4 {
  margin: 0.75em 0 0.5em 0;
  font-weight: 600;
}

.chatbot-message.bot h1 { font-size: 1.25em; }
.chatbot-message.bot h2 { font-size: 1.15em; }
.chatbot-message.bot h3 { font-size: 1.05em; }
.chatbot-message.bot h4 { font-size: 1em; }

.chatbot-message.bot img {
  cursor: zoom-in;
}

.chatbot-message.bot a[href^="attachment://"] {
  display: none;
}

.chatbot-message.bot img.chatbot-img-loading {
  display: block;
  width: 100%;
  max-width: 200px;
  min-height: 120px;
  background-color: #e5eaf3;
  background-image: linear-gradient(90deg, #e5eaf3 0%, #f4f7fc 50%, #e5eaf3 100%);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: chatbotShimmer 1.8s linear infinite;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  object-position: -99999px 99999px;
  font-size: 0;
  color: transparent;
}

.chatbot-message.bot p:has(> a[href="/followup"]:only-child) {
  margin: 0 0 8px 0;
}

.chatbot-message.bot a[href="/followup"] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-left: -16px;
  margin-right: -16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  text-align: left;
}

.chatbot-message.bot a[href="/followup"]::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: currentColor;
  color: #6b7280;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 20L4.3 16.1C1.976 12.663 2.874 8.228 6.4 5.726C9.926 3.225 14.99 3.43 18.245 6.206C21.5 8.983 21.94 13.472 19.274 16.707C16.608 19.942 11.659 20.922 7.7 19L3 20Z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 20L4.3 16.1C1.976 12.663 2.874 8.228 6.4 5.726C9.926 3.225 14.99 3.43 18.245 6.206C21.5 8.983 21.94 13.472 19.274 16.707C16.608 19.942 11.659 20.922 7.7 19L3 20Z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chatbot-message.bot a[href="/followup"]:hover {
  background: #f0f4fa;
  border-color: #c7d2e8;
}



/* History Container */
.chatbot-history {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* History Item */
.chatbot-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chatbot-history-item:hover {
  background: #f8fafc;
}

.chatbot-history-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f0f4fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.chatbot-history-content {
  flex: 1;
  min-width: 0;
}

.chatbot-history-preview {
  font-size: 14px;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbot-history-time {
  flex-shrink: 0;
  font-size: 12px;
  color: #9ca3af;
}

/* History Loading State */
.chatbot-history-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 40px;
  flex: 1;
}

.chatbot-history-loading span {
  width: 8px;
  height: 8px;
  background: #4338CA;
  border-radius: 50%;
  animation: loadingBounce 1.4s ease-in-out infinite;
}

.chatbot-history-loading span:nth-child(1) { animation-delay: -0.32s; }
.chatbot-history-loading span:nth-child(2) { animation-delay: -0.16s; }

/* History Error State */
.chatbot-history-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  flex: 1;
}

.chatbot-history-error svg {
  margin-bottom: 16px;
}

.chatbot-history-error h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.chatbot-history-error p {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

/* History Empty State */
.chatbot-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  flex: 1;
}

.chatbot-history-empty svg {
  margin-bottom: 16px;
}

.chatbot-history-empty h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.chatbot-history-empty p {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

/* History scrollbar styling */
.chatbot-history::-webkit-scrollbar {
  width: 6px;
}

.chatbot-history::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-history::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.chatbot-history::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Welcome View */
.chatbot-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 24px 24px;
  overflow-y: auto;
}

.chatbot-welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 32px;
}

.chatbot-welcome-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #222222;
}

.chatbot-welcome-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 2;
}

.chatbot-welcome-title {
  font-size: 28px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 12px 0;
}

.chatbot-welcome-description {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.chatbot-welcome-input-slot {
  flex-shrink: 0;
}

.chatbot-welcome-input-slot .chatbot-input-area {
  padding: 0;
}

.chatbot-welcome-input-slot .chatbot-tools-dropdown {
  bottom: auto;
  top: calc(100% + 8px);
}

.chatbot-welcome-suggestions {
  flex: 1;
  margin-top: 40px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.chatbot-suggestions-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.chatbot-suggestions-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ebf0f9;
  border-radius: 50%;
  color: #4338CA;
}

.chatbot-suggestions-icon svg {
  width: 28px;
  height: 28px;
}

.chatbot-suggestions-icon.loading {
  display: flex;
  gap: 4px;
}

.chatbot-suggestions-icon.loading span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4338CA;
  border-radius: 50%;
  animation: loadingBounce 1.4s ease-in-out infinite;
}

.chatbot-suggestions-icon.loading span:nth-child(1) { animation-delay: -0.32s; }
.chatbot-suggestions-icon.loading span:nth-child(2) { animation-delay: -0.16s; }

.chatbot-suggestions-title {
  font-size: 20px;
  font-weight: 600;
  color: #222222;
  margin: 0;
}

.chatbot-suggestions-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.chatbot-suggestion-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  color: #374151;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chatbot-suggestion-item:hover,
.chatbot-suggestion-item:focus-visible {
  background: #f0f4fa;
  border-color: #c7d2e8;
}

.chatbot-suggestion-item:last-child {
  margin-bottom: 0;
}

/* Video Search */
.chatbot-video-search {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: #222222;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-video-search:focus {
  border-color: #4338CA;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.chatbot-video-search::placeholder {
  color: #9ca3af;
}

/* Video Items */
.chatbot-video-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-video-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatbot-video-duration {
  flex-shrink: 0;
  font-size: 12px;
  color: #9ca3af;
}

/* References Section */
.chatbot-references {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.chatbot-references-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}

.chatbot-references-header:hover {
  color: #4338CA;
}

.chatbot-references-header i {
  transition: transform 0.2s ease;
}

.chatbot-references.collapsed .chatbot-references-header i {
  transform: rotate(-90deg);
}

.chatbot-references-content {
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.chatbot-references.collapsed .chatbot-references-content {
  max-height: 0;
}

.chatbot-references-content ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.chatbot-references-content li {
  font-size: 13px;
  margin-bottom: 4px;
}

.chatbot-references-content a {
  color: #4338CA;
  text-decoration: none;
}

.chatbot-references-content a:hover {
  text-decoration: underline;
}

/* CSV Download Section */
.chatbot-csv-download {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.chatbot-csv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4338CA;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chatbot-csv-download-btn:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.chatbot-csv-download-btn:active {
  background: #c7d2fe;
}


/* Drag and Drop Overlay */
.chatbot-drop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}

.chatbot-panel.drag-over .chatbot-drop-overlay {
  display: flex;
}

.chatbot-drop-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  border: 2px dashed #9ca3af;
  border-radius: 16px;
  color: #6b7280;
}

.chatbot-drop-overlay-content svg {
  color: #9ca3af;
}

.chatbot-drop-overlay-content span {
  font-size: 18px;
  font-weight: 600;
  color: #78716c;
}

/* Image Lightbox */
.chatbot-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 16px;
}

.chatbot-lightbox.open {
  display: flex;
  pointer-events: auto;
}

.chatbot-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s ease;
}

.chatbot-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-lightbox-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
