/* ==========================================================================
   HV AI Copilot — Executive Floating Interface & Chat Experience
   ========================================================================== */

/* 1. Floating Launcher Button */
.hv-copilot-launcher {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #4f46e5 100%);
  color: #ffffff;
  padding: 6px 10px 6px 8px;
  border-radius: 50px;
  box-shadow: 0 10px 30px -4px rgba(37, 99, 235, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  cursor: grab;
  border: none;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.2s ease;
  user-select: none;
  touch-action: none;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hv-copilot-launcher:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px -4px rgba(37, 99, 235, 0.6), 0 0 0 1.5px rgba(255, 255, 255, 0.35) inset;
}

.hv-copilot-launcher:active,
.hv-copilot-launcher.is-dragging {
  cursor: grabbing !important;
  transform: scale(1.04);
  box-shadow: 0 20px 40px -4px rgba(37, 99, 235, 0.7), 0 0 0 2px rgba(255, 255, 255, 0.5) inset;
  transition: none !important;
}

.hv-copilot-launcher.dock-left {
  right: auto;
  left: 26px;
}

.hv-copilot-launcher.dock-right {
  left: auto;
  right: 26px;
}

.hv-copilot-launcher.is-hidden {
  display: none !important;
}

/* Launcher Drag Grip Indicator */
.hv-launcher-grip {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  margin-left: -2px;
  transition: color 0.2s ease;
}

.hv-copilot-launcher:hover .hv-launcher-grip {
  color: rgba(255, 255, 255, 0.95);
}

.hv-launcher-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.hv-launcher-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.hv-launcher-pulse {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: hvPulse 2s infinite;
}

@keyframes hvPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hv-launcher-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hv-launcher-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.hv-launcher-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #ffffff;
}

.hv-launcher-subtitle {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Launcher Action Controls (Side switch & Close) */
.hv-launcher-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 4px;
}

.hv-launcher-btn {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  padding: 0;
}

.hv-launcher-btn:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: scale(1.12);
}

.hv-launcher-dismiss-btn:hover {
  background: rgba(239, 68, 68, 0.85) !important;
}

.hv-side-switch-svg {
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
  flex-shrink: 0;
}

/* Minimalist Edge Restore Tab (When user dismissed launcher) */
.hv-copilot-restore-tab {
  position: fixed;
  bottom: 26px;
  right: 0;
  z-index: 1045;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  padding: 6px 10px 6px 10px;
  border-radius: 20px 0 0 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: none;
  transition: all 0.25s ease;
  user-select: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hv-copilot-restore-tab.active {
  opacity: 0.95;
  pointer-events: auto;
  transform: translateX(0);
}

.hv-copilot-restore-tab.active:hover {
  opacity: 1;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.hv-copilot-restore-tab.dock-left {
  right: auto;
  left: 0;
  border-radius: 0 20px 20px 0;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 10px 6px 10px;
  transform: translateX(-100%);
}

.hv-copilot-restore-tab.dock-left.active {
  transform: translateX(0);
}

.hv-copilot-restore-tab.is-dragging {
  cursor: grabbing !important;
  opacity: 0.9 !important;
  transition: none !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6) !important;
  z-index: 1060 !important;
}

.hv-restore-tab-grip {
  color: rgba(255, 255, 255, 0.65);
  cursor: grab;
  display: flex;
  align-items: center;
  font-size: 15px;
  margin-right: -2px;
}

.hv-restore-tab-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 3px;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.hv-restore-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.hv-restore-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

.hv-restore-tab-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  border: 1px solid #ffffff;
}

/* 2. Floating Chat Container */
.hv-copilot-container {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1055;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 80px);
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transform-origin: bottom right;
}

.hv-copilot-container.dock-left {
  right: auto;
  left: 26px;
  transform-origin: bottom left;
}

.hv-copilot-container.dock-right {
  left: auto;
  right: 26px;
  transform-origin: bottom right;
}

.hv-copilot-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.hv-copilot-container.fullscreen {
  width: 90vw;
  max-width: 800px;
  height: 85vh;
  max-height: 850px;
}

/* 3. Header */
.hv-copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.hv-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hv-header-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.hv-header-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.hv-header-online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border: 2px solid #1e3a8a;
  border-radius: 50%;
}

.hv-header-titles {
  display: flex;
  flex-direction: column;
}

.hv-header-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hv-header-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hv-header-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 5px;
}

.hv-status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
}

.hv-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hv-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.hv-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

/* 4. Quick Suggestions Bar */
.hv-suggestions-bar {
  padding: 10px 14px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  flex-shrink: 0;
}

.hv-suggestions-bar::-webkit-scrollbar {
  height: 4px;
}

.hv-suggestions-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.hv-chip-btn {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hv-chip-btn:hover {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* 5. Messages Body */
.hv-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #ffffff;
  scroll-behavior: smooth;
}

.hv-msg {
  display: flex;
  gap: 10px;
  max-width: 92%;
  animation: hvMsgFadeIn 0.25s ease-out;
}

@keyframes hvMsgFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hv-msg.hv-msg-bot {
  align-self: flex-start;
}

.hv-msg.hv-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.hv-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hv-msg-avatar-harsh {
  background: rgba(37, 99, 235, 0.15);
  box-shadow: 0 0 0 1.5px rgba(37, 99, 235, 0.35);
  overflow: hidden;
}

.hv-msg-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.hv-msg-avatar-user {
  background: #475569;
  color: #ffffff;
  font-size: 14px;
}

.hv-msg-content {
  background-color: #f1f5f9;
  color: #0f172a !important;
  padding: 12px 16px;
  border-radius: 16px;
  border-top-left-radius: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  position: relative;
  word-break: break-word;
  border: 1px solid #e2e8f0;
}

.hv-msg-content p,
.hv-msg-content span,
.hv-msg-content li,
.hv-msg-content ul,
.hv-msg-content ol,
.hv-msg-content div,
.hv-msg-content em {
  color: #0f172a !important;
  font-size: 13.5px;
  line-height: 1.6;
}

.hv-msg-content strong,
.hv-msg-content b {
  color: #020617 !important;
  font-weight: 700;
}

.hv-msg-content code {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a !important;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hv-msg-user .hv-msg-content {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  border-radius: 16px;
  border-top-right-radius: 4px;
  border: 1px solid #1e40af;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.hv-msg-user .hv-msg-content p,
.hv-msg-user .hv-msg-content span,
.hv-msg-user .hv-msg-content li,
.hv-msg-user .hv-msg-content ul,
.hv-msg-user .hv-msg-content ol,
.hv-msg-user .hv-msg-content div,
.hv-msg-user .hv-msg-content em,
.hv-msg-user .hv-msg-content strong,
.hv-msg-user .hv-msg-content b {
  color: #ffffff !important;
}

.hv-msg-user .hv-msg-content code {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.hv-msg-content h3, 
.hv-msg-content h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 8px;
  color: #0f172a !important;
}

.hv-msg-user .hv-msg-content h3,
.hv-msg-user .hv-msg-content h4 {
  color: #ffffff !important;
}

.hv-msg-content p {
  margin-bottom: 8px;
}

.hv-msg-content p:last-child {
  margin-bottom: 0;
}

.hv-msg-content ul, 
.hv-msg-content ol {
  padding-left: 18px;
  margin-bottom: 8px;
}

.hv-msg-content li {
  margin-bottom: 4px;
}

.hv-msg-content a {
  color: #1d4ed8 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hv-msg-user .hv-msg-content a {
  color: #dbeafe !important;
  text-decoration: underline;
}

.hv-msg-content a:hover {
  color: #1e3a8a !important;
}

.hv-msg-user .hv-msg-content a:hover {
  color: #ffffff !important;
}

.hv-msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hv-msg-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #334155 !important;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.hv-msg-btn:hover {
  background-color: #ffffff;
  color: #1d4ed8 !important;
  border-color: #94a3b8;
}

/* Typing Indicator */
.hv-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}

.hv-typing-dot {
  width: 7px;
  height: 7px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: hvTypingBounce 1.4s infinite ease-in-out both;
}

.hv-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.hv-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes hvTypingBounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 6. Input Area */
.hv-copilot-input-area {
  padding: 12px 14px 10px 14px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.hv-input-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 6px 8px 6px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hv-input-form:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hv-input-textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: #0f172a;
  resize: none;
  max-height: 100px;
  min-height: 24px;
  line-height: 20px;
  font-family: inherit;
}

.hv-input-textarea::placeholder {
  color: #94a3b8;
}

.hv-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.hv-send-btn:hover:not(:disabled) {
  transform: scale(1.06);
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.hv-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hv-input-disclaimer {
  font-size: 10.5px;
  color: #64748b;
  text-align: center;
  margin-top: 6px;
}

/* ==========================================================================
   Dark Mode Overrides
   ========================================================================== */
html.dark-mode .hv-copilot-container,
body.dark-mode .hv-copilot-container {
  background-color: #0f172a;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html.dark-mode .hv-suggestions-bar,
body.dark-mode .hv-suggestions-bar {
  background-color: #141d2e;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .hv-chip-btn,
body.dark-mode .hv-chip-btn {
  background-color: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

html.dark-mode .hv-chip-btn:hover,
body.dark-mode .hv-chip-btn:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

html.dark-mode .hv-chat-messages,
body.dark-mode .hv-chat-messages {
  background-color: #0b0f19;
}

/* Bot message in dark mode */
html.dark-mode .hv-msg.hv-msg-bot .hv-msg-content,
body.dark-mode .hv-msg.hv-msg-bot .hv-msg-content,
html.dark-mode .hv-msg-content,
body.dark-mode .hv-msg-content {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html.dark-mode .hv-msg.hv-msg-bot .hv-msg-content p,
body.dark-mode .hv-msg.hv-msg-bot .hv-msg-content p,
html.dark-mode .hv-msg-bot .hv-msg-content p,
body.dark-mode .hv-msg-bot .hv-msg-content p,
html.dark-mode .hv-msg.hv-msg-bot .hv-msg-content span,
body.dark-mode .hv-msg.hv-msg-bot .hv-msg-content span,
html.dark-mode .hv-msg-bot .hv-msg-content span,
body.dark-mode .hv-msg-bot .hv-msg-content span,
html.dark-mode .hv-msg.hv-msg-bot .hv-msg-content li,
body.dark-mode .hv-msg.hv-msg-bot .hv-msg-content li,
html.dark-mode .hv-msg-bot .hv-msg-content li,
body.dark-mode .hv-msg-bot .hv-msg-content li,
html.dark-mode .hv-msg.hv-msg-bot .hv-msg-content div,
body.dark-mode .hv-msg.hv-msg-bot .hv-msg-content div,
html.dark-mode .hv-msg-bot .hv-msg-content div,
body.dark-mode .hv-msg-bot .hv-msg-content div,
html.dark-mode .hv-msg.hv-msg-bot .hv-msg-content em,
body.dark-mode .hv-msg.hv-msg-bot .hv-msg-content em {
  color: #f8fafc !important;
}

html.dark-mode .hv-msg-content strong,
body.dark-mode .hv-msg-content strong,
html.dark-mode .hv-msg-content b,
body.dark-mode .hv-msg-content b {
  color: #ffffff !important;
  font-weight: 700;
}

html.dark-mode .hv-msg-content code,
body.dark-mode .hv-msg-content code {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc !important;
}

html.dark-mode .hv-msg-content h3,
html.dark-mode .hv-msg-content h4,
body.dark-mode .hv-msg-content h3,
body.dark-mode .hv-msg-content h4 {
  color: #ffffff !important;
}

html.dark-mode .hv-msg-content a,
body.dark-mode .hv-msg-content a {
  color: #60a5fa !important;
  text-decoration: underline;
}

html.dark-mode .hv-msg-content a:hover,
body.dark-mode .hv-msg-content a:hover {
  color: #93c5fd !important;
}

/* User message in dark mode */
html.dark-mode .hv-msg.hv-msg-user .hv-msg-content,
body.dark-mode .hv-msg.hv-msg-user .hv-msg-content,
html.dark-mode .hv-msg-user .hv-msg-content,
body.dark-mode .hv-msg-user .hv-msg-content {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  border: 1px solid #3b82f6 !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35) !important;
}

html.dark-mode .hv-msg-user .hv-msg-content p,
body.dark-mode .hv-msg-user .hv-msg-content p,
html.dark-mode .hv-msg.hv-msg-user .hv-msg-content p,
body.dark-mode .hv-msg.hv-msg-user .hv-msg-content p,
html.dark-mode .hv-msg-user .hv-msg-content span,
body.dark-mode .hv-msg-user .hv-msg-content span,
html.dark-mode .hv-msg-user .hv-msg-content li,
body.dark-mode .hv-msg-user .hv-msg-content li,
html.dark-mode .hv-msg-user .hv-msg-content div,
body.dark-mode .hv-msg-user .hv-msg-content div,
html.dark-mode .hv-msg-user .hv-msg-content em,
body.dark-mode .hv-msg-user .hv-msg-content em,
html.dark-mode .hv-msg-user .hv-msg-content strong,
body.dark-mode .hv-msg-user .hv-msg-content strong,
html.dark-mode .hv-msg-user .hv-msg-content b,
body.dark-mode .hv-msg-user .hv-msg-content b {
  color: #ffffff !important;
}

html.dark-mode .hv-msg-user .hv-msg-content a,
body.dark-mode .hv-msg-user .hv-msg-content a {
  color: #dbeafe !important;
  text-decoration: underline;
}

html.dark-mode .hv-msg-user .hv-msg-content a:hover,
body.dark-mode .hv-msg-user .hv-msg-content a:hover {
  color: #ffffff !important;
}

html.dark-mode .hv-msg-actions,
body.dark-mode .hv-msg-actions {
  border-top-color: rgba(255, 255, 255, 0.12);
}

html.dark-mode .hv-msg-btn,
body.dark-mode .hv-msg-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: #cbd5e1 !important;
}

html.dark-mode .hv-msg-btn:hover,
body.dark-mode .hv-msg-btn:hover {
  background-color: #334155;
  color: #ffffff !important;
}

html.dark-mode .hv-copilot-input-area,
body.dark-mode .hv-copilot-input-area {
  background-color: #141d2e;
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .hv-input-form,
body.dark-mode .hv-input-form {
  background-color: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark-mode .hv-input-textarea,
body.dark-mode .hv-input-textarea {
  color: #f8fafc;
}

html.dark-mode .hv-header-avatar-wrap,
body.dark-mode .hv-header-avatar-wrap {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

html.dark-mode .hv-header-online-dot,
body.dark-mode .hv-header-online-dot {
  border-color: #0f172a;
}

html.dark-mode .hv-msg-avatar-harsh,
body.dark-mode .hv-msg-avatar-harsh {
  box-shadow: 0 0 0 1.5px rgba(96, 165, 250, 0.45);
}

html.dark-mode .hv-input-disclaimer,
body.dark-mode .hv-input-disclaimer {
  color: #94a3b8;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .hv-copilot-launcher {
    bottom: 18px;
    right: 18px;
    padding: 7px 12px 7px 8px;
  }
  .hv-launcher-text {
    display: none;
  }
  .hv-copilot-container {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 85vh;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
  }
}
