/* WP AI Chatbot - Modern Monochrome Widget Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#wp-ai-chatbot {
  --wpai-primary: #1a1a2e;
  --wpai-secondary: #374151;
  --wpai-bg: #ffffff;
  --wpai-bg-alt: #f7f8fa;
  --wpai-bg-subtle: #f1f3f5;
  --wpai-text: #1a1a2e;
  --wpai-text-muted: rgba(0,0,0,.45);
  --wpai-border: rgba(0,0,0,.1);
  --wpai-user-bubble-bg: #1a1a2e;
  --wpai-user-bubble-border: #1a1a2e;
  --wpai-glass: rgba(255,255,255,.92);
  --wpai-glass-border: rgba(0,0,0,.08);
  --wpai-ai-bubble-bg: #ffffff;
  --wpai-ai-bubble-border: rgba(0,0,0,.08);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  position: fixed;
  z-index: 2147483647;
  bottom: var(--wpai-bottom-offset, 24px);
}

/* Dark theme */
#wp-ai-chatbot.wpai-theme-dark {
  --wpai-primary: #e5e7eb;
  --wpai-secondary: #9ca3af;
  --wpai-bg: #111118;
  --wpai-bg-alt: #16161f;
  --wpai-bg-subtle: #1c1c28;
  --wpai-text: #f0f0f5;
  --wpai-text-muted: rgba(255,255,255,.45);
  --wpai-border: rgba(255,255,255,.1);
  --wpai-user-bubble-bg: #e5e7eb;
  --wpai-user-bubble-border: #e5e7eb;
  --wpai-glass: rgba(17,17,24,.94);
  --wpai-glass-border: rgba(255,255,255,.08);
  --wpai-ai-bubble-bg: #1c1c28;
  --wpai-ai-bubble-border: rgba(255,255,255,.08);
}

/* Position classes */
#wp-ai-chatbot.wpai-pos-right { right: 24px; }
#wp-ai-chatbot.wpai-pos-left  { left: 24px; }

/* Embedded mode */
#wp-ai-chatbot.wpai-embedded {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
}

#wp-ai-chatbot.wpai-embedded .wpai-fab { display: none; }

#wp-ai-chatbot.wpai-embedded .wpai-panel {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
}

/* ============ FAB BUTTON ============ */
#wp-ai-chatbot .wpai-fab {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow:
    0 4px 20px rgba(0,0,0,.15),
    0 1px 4px rgba(0,0,0,.1);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-fab {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 8px 30px rgba(0,0,0,.2),
    0 2px 8px rgba(0,0,0,.12);
}

/* FAB icon */
#wp-ai-chatbot .wpai-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Legacy FAB label */
#wp-ai-chatbot .wpai-fab-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}

/* Pulse ring animation around FAB */
#wp-ai-chatbot .wpai-fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 2px solid rgba(26,26,46,.2);
  animation: wpai-ring-pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-fab-ring {
  border-color: rgba(229,231,235,.2);
}

@keyframes wpai-ring-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.08); }
}

/* Custom avatar in FAB */
#wp-ai-chatbot .wpai-fab-avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* Hide FAB when open */
#wp-ai-chatbot.wpai-open .wpai-fab {
  transform: scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

/* ============ PANEL ============ */
#wp-ai-chatbot .wpai-panel {
  position: absolute;
  bottom: 76px;
  width: 380px;
  max-width: min(380px, calc(100vw - 40px));
  background: var(--wpai-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: 16px;
  border: 1px solid var(--wpai-glass-border);
  box-shadow:
    0 20px 60px rgba(0,0,0,.12),
    0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
}

#wp-ai-chatbot.wpai-pos-right .wpai-panel { right: 0; }
#wp-ai-chatbot.wpai-pos-left  .wpai-panel { left: 0; }

#wp-ai-chatbot.wpai-open .wpai-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ============ HEADER ============ */
#wp-ai-chatbot .wpai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #1a1a2e;
  position: relative;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-header {
  background: #1c1c28;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

#wp-ai-chatbot .wpai-header-left {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

#wp-ai-chatbot .wpai-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.15);
}

#wp-ai-chatbot .wpai-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
}

#wp-ai-chatbot .wpai-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#wp-ai-chatbot .wpai-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  line-height: 1.2;
}

#wp-ai-chatbot .wpai-status {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

#wp-ai-chatbot .wpai-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

#wp-ai-chatbot .wpai-close,
#wp-ai-chatbot .wpai-new-chat {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
  padding: 0;
}

#wp-ai-chatbot .wpai-close {
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
}

#wp-ai-chatbot .wpai-close:hover,
#wp-ai-chatbot .wpai-new-chat:hover {
  background: rgba(255,255,255,.2);
  transform: scale(1.08);
}

/* ============ DISCLAIMER ============ */
#wp-ai-chatbot .wpai-disclaimer {
  font-size: 10px;
  color: var(--wpai-text-muted);
  text-align: center;
  padding: 4px 12px 0;
  background: var(--wpai-bg);
}

/* ============ MESSAGES ============ */
#wp-ai-chatbot .wpai-messages {
  height: 440px;
  max-height: 65vh;
  padding: 16px 14px;
  overflow-y: auto;
  background: var(--wpai-bg-alt);
  scroll-behavior: smooth;
}

/* Custom scrollbar */
#wp-ai-chatbot .wpai-messages::-webkit-scrollbar {
  width: 4px;
}
#wp-ai-chatbot .wpai-messages::-webkit-scrollbar-track {
  background: transparent;
}
#wp-ai-chatbot .wpai-messages::-webkit-scrollbar-thumb {
  background: var(--wpai-border);
  border-radius: 4px;
}

#wp-ai-chatbot .wpai-msg-row {
  display: flex;
  margin: 8px 0;
  animation: wpai-msg-in .3s cubic-bezier(.22,1,.36,1);
}

@keyframes wpai-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#wp-ai-chatbot .wpai-msg-row.wpai-user {
  justify-content: flex-end;
}

#wp-ai-chatbot .wpai-msg-row.wpai-ai {
  justify-content: flex-start;
  align-items: flex-end;
  gap: 8px;
}

/* AI message avatar */
#wp-ai-chatbot .wpai-msg-avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-msg-avatar {
  background: #2a2a3e;
  color: #e5e7eb;
}

#wp-ai-chatbot .wpai-msg-avatar .wpai-bot-svg {
  width: 16px;
  height: 16px;
}

#wp-ai-chatbot .wpai-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--wpai-text);
}

#wp-ai-chatbot .wpai-user .wpai-bubble {
  background: #1a1a2e;
  color: #fff;
  border-bottom-right-radius: 4px;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-user .wpai-bubble {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-ai .wpai-bubble {
  background: var(--wpai-ai-bubble-bg);
  border: 1px solid var(--wpai-ai-bubble-border);
  border-bottom-left-radius: 4px;
}

/* ============ SUGGESTED QUESTIONS (above input) ============ */
#wp-ai-chatbot .wpai-suggested-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: var(--wpai-bg);
  border-top: 1px solid var(--wpai-border);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#wp-ai-chatbot .wpai-suggested-bar::-webkit-scrollbar {
  display: none;
}

#wp-ai-chatbot .wpai-suggested-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--wpai-border);
  background: var(--wpai-bg);
  color: var(--wpai-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  flex-shrink: 0;
}

#wp-ai-chatbot .wpai-suggested-btn:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
  transform: translateY(-1px);
}

#wp-ai-chatbot.wpai-theme-dark .wpai-suggested-btn:hover {
  background: #e5e7eb;
  color: #1a1a2e;
  border-color: #e5e7eb;
}

#wp-ai-chatbot .wpai-suggested-btn:active {
  transform: translateY(0);
}

/* Legacy suggested in messages - still works as fallback */
#wp-ai-chatbot .wpai-suggested {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

/* ============ INPUT BAR ============ */
#wp-ai-chatbot .wpai-inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--wpai-bg);
  border-top: 1px solid var(--wpai-border);
}

#wp-ai-chatbot .wpai-input {
  flex: 1;
  border: 1px solid var(--wpai-border);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13.5px;
  outline: none;
  background: var(--wpai-bg-alt);
  color: var(--wpai-text);
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#wp-ai-chatbot .wpai-input::placeholder {
  color: var(--wpai-text-muted);
}

#wp-ai-chatbot .wpai-input:focus {
  border-color: #1a1a2e;
  box-shadow: 0 0 0 2px rgba(26,26,46,.08);
}

#wp-ai-chatbot.wpai-theme-dark .wpai-input:focus {
  border-color: #e5e7eb;
  box-shadow: 0 0 0 2px rgba(229,231,235,.08);
}

#wp-ai-chatbot .wpai-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#wp-ai-chatbot .wpai-send {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  transition: all .2s ease;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-send {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#wp-ai-chatbot .wpai-send:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ============ STREAMING CURSOR ============ */
#wp-ai-chatbot .wpai-bubble[data-streaming="1"]::after {
  content: "▋";
  animation: wpai-cursor-blink .8s step-end infinite;
  margin-left: 2px;
  color: var(--wpai-text-muted);
}

@keyframes wpai-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============ TYPING INDICATOR ============ */
#wp-ai-chatbot .wpai-typing {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--wpai-bg);
  border-top: 1px solid var(--wpai-border);
}

#wp-ai-chatbot .wpai-typing.wpai-typing-visible { display: flex; }

#wp-ai-chatbot .wpai-typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wpai-text-muted);
  display: inline-block;
  animation: wpai-bounce 1.2s infinite ease-in-out;
}

#wp-ai-chatbot .wpai-typing-dot:nth-child(1) { animation-delay: 0s; }
#wp-ai-chatbot .wpai-typing-dot:nth-child(2) { animation-delay: .15s; }
#wp-ai-chatbot .wpai-typing-dot:nth-child(3) { animation-delay: .3s; }

@keyframes wpai-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

#wp-ai-chatbot .wpai-typing-label {
  margin-left: 4px;
  font-size: 11px;
  color: var(--wpai-text-muted);
}

/* ============ MARKDOWN ============ */
#wp-ai-chatbot .wpai-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 4px 0 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-linkbtn {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-linkbtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

#wp-ai-chatbot .wpai-bold { font-weight: 700; }
#wp-ai-chatbot .wpai-italic { font-style: italic; }

/* ============ WELCOME ============ */
#wp-ai-chatbot .wpai-welcome {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 8px;
  margin: 8px 0;
}

#wp-ai-chatbot .wpai-welcome .wpai-msg-avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-welcome .wpai-msg-avatar {
  background: #2a2a3e;
  color: #e5e7eb;
}

#wp-ai-chatbot .wpai-welcome .wpai-msg-avatar .wpai-bot-svg {
  width: 16px;
  height: 16px;
}

#wp-ai-chatbot .wpai-welcome-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  background: var(--wpai-ai-bubble-bg);
  border: 1px solid var(--wpai-ai-bubble-border);
  color: var(--wpai-text);
}

/* ============ LOADING ============ */
#wp-ai-chatbot .wpai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--wpai-text-muted);
  font-size: 12px;
}

#wp-ai-chatbot .wpai-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--wpai-border);
  border-top-color: #1a1a2e;
  border-radius: 50%;
  margin-right: 8px;
  animation: wpai-spin .7s linear infinite;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-loading::before {
  border-top-color: #e5e7eb;
}

@keyframes wpai-spin {
  to { transform: rotate(360deg); }
}

/* ============ RATING BUTTONS ============ */
#wp-ai-chatbot .wpai-rating {
  display: flex;
  gap: 1px;
  margin-top: 6px;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .2s ease;
}

#wp-ai-chatbot .wpai-msg-row.wpai-ai:hover .wpai-rating,
#wp-ai-chatbot .wpai-rating:has(.wpai-rating-active) {
  opacity: 1;
}

#wp-ai-chatbot .wpai-rating-btn {
  background: none;
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
  cursor: pointer;
  color: var(--wpai-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  font-size: 11px;
  line-height: 1;
  opacity: .4;
}

#wp-ai-chatbot .wpai-rating-btn:hover {
  opacity: 1;
  color: var(--wpai-text);
}

#wp-ai-chatbot .wpai-rating-btn.wpai-rating-active {
  opacity: 1;
  color: #22c55e;
}

#wp-ai-chatbot .wpai-rating-btn.wpai-rating-active.wpai-rating-down {
  color: #ef4444;
}

/* ============ CONVERSATION FEEDBACK ============ */
#wp-ai-chatbot .wpai-feedback {
  margin: 16px 0 8px;
  padding: 12px;
  background: var(--wpai-bg);
  border: 1px solid var(--wpai-border);
  border-radius: 12px;
  text-align: center;
}

#wp-ai-chatbot .wpai-feedback-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--wpai-text);
  margin-bottom: 8px;
}

#wp-ai-chatbot .wpai-feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

#wp-ai-chatbot .wpai-feedback-buttons .wpai-rating-btn {
  font-size: 18px;
  padding: 6px 12px;
}

#wp-ai-chatbot .wpai-feedback-text {
  width: 100%;
  border: 1px solid var(--wpai-border);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-family: inherit;
  background: var(--wpai-bg-alt);
  color: var(--wpai-text);
  resize: none;
  outline: none;
  margin-bottom: 8px;
}

#wp-ai-chatbot .wpai-feedback-text:focus {
  border-color: #1a1a2e;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-feedback-text:focus {
  border-color: #e5e7eb;
}

#wp-ai-chatbot .wpai-feedback-submit {
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-feedback-submit {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-feedback-submit:hover {
  transform: translateY(-1px);
}

#wp-ai-chatbot .wpai-feedback-thanks {
  font-size: 13px;
  color: var(--wpai-text);
  font-weight: 500;
  padding: 8px 0;
}

/* ============ MOBILE ============ */
@media (max-width: 520px) {
  #wp-ai-chatbot { left: 12px; right: 12px; bottom: 16px; }
  #wp-ai-chatbot.wpai-pos-left,
  #wp-ai-chatbot.wpai-pos-right { left: 12px; right: 12px; }

  #wp-ai-chatbot .wpai-panel {
    width: auto;
    left: 0 !important;
    right: 0 !important;
    bottom: 78px;
    max-width: 100%;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-panel {
    position: fixed;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-messages {
    height: auto;
    max-height: none;
    flex: 1;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-inputbar {
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-input {
    font-size: 16px;
  }

  #wp-ai-chatbot.wpai-mobile-optimized.wpai-open .wpai-fab {
    display: none;
  }
}

/* ============ CHAT IMAGES ============ */
.wpai-chat-img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
  cursor: pointer;
  transition: transform .2s ease;
}

.wpai-chat-img:hover {
  transform: scale(1.02);
}

/* ============ PROBLEM REPORT ============ */
#wp-ai-chatbot .wpai-report-link {
  text-align: center;
  padding: 4px 12px 6px;
  font-size: 10px;
  color: var(--wpai-text-muted);
  background: var(--wpai-bg);
}

#wp-ai-chatbot .wpai-report-trigger {
  color: var(--wpai-text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

#wp-ai-chatbot .wpai-report-trigger:hover {
  text-decoration: underline;
}

#wp-ai-chatbot .wpai-report-form {
  padding: 8px 12px 10px;
  background: var(--wpai-bg);
  display: none;
}

#wp-ai-chatbot .wpai-report-form.wpai-report-visible {
  display: block;
}

#wp-ai-chatbot .wpai-report-textarea {
  width: 100%;
  border: 1px solid var(--wpai-border);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-family: inherit;
  background: var(--wpai-bg-alt);
  color: var(--wpai-text);
  resize: none;
  outline: none;
  margin-bottom: 6px;
  min-height: 50px;
}

#wp-ai-chatbot .wpai-report-textarea:focus {
  border-color: #1a1a2e;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-report-textarea:focus {
  border-color: #e5e7eb;
}

#wp-ai-chatbot .wpai-report-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

#wp-ai-chatbot .wpai-report-send {
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease;
}

#wp-ai-chatbot.wpai-theme-dark .wpai-report-send {
  background: #e5e7eb;
  color: #1a1a2e;
}

#wp-ai-chatbot .wpai-report-send:hover {
  transform: translateY(-1px);
}

#wp-ai-chatbot .wpai-report-cancel {
  background: none;
  border: 1px solid var(--wpai-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--wpai-text-muted);
  cursor: pointer;
}

#wp-ai-chatbot .wpai-report-thanks {
  text-align: center;
  padding: 4px 12px 6px;
  font-size: 10px;
  color: var(--wpai-text);
  font-weight: 500;
  background: var(--wpai-bg);
}
