/* Enhanced Chat Widget Styles with Vibration Effects */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: chatWidgetEntrance 0.6s ease-out;
}

@keyframes chatWidgetEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Enhanced Chat Toggle with Multiple Animation States */
.chat-toggle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--skin-color), #ff6b6b);
  border: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: breathe 3s ease-in-out infinite;
  overflow: hidden;
}

/* Breathing animation for the chat icon */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  }
}

/* Vibration effect - triggered after initial notification */
.chat-toggle.vibrate {
  animation: vibrate 1s ease-in-out;
}

@keyframes vibrate {
  0%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-2px) rotate(-1deg);
  }
  20% {
    transform: translateX(2px) rotate(1deg);
  }
  30% {
    transform: translateX(-2px) rotate(-1deg);
  }
  40% {
    transform: translateX(2px) rotate(1deg);
  }
  50% {
    transform: translateX(-1px) rotate(-0.5deg);
  }
  60% {
    transform: translateX(1px) rotate(0.5deg);
  }
  70% {
    transform: translateX(-1px) rotate(-0.5deg);
  }
  80% {
    transform: translateX(1px) rotate(0.5deg);
  }
  90% {
    transform: translateX(-0.5px);
  }
}

/* Ripple effect on hover */
.chat-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.chat-toggle:hover::before {
  width: 120%;
  height: 120%;
}

.chat-toggle:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  animation: none; /* Stop breathing on hover */
}

.chat-toggle:active {
  transform: translateY(0) scale(1.02);
}

/* Animated chat icon */
.chat-toggle i {
  font-size: 20px;
  color: white;
  position: relative;
  z-index: 2;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Enhanced notification badge with appear animation */
.chat-notification {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  border-radius: 10px;
  width: 18px;
  height: 18px;
  display: none; /* Hidden by default, shown by JavaScript */
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid white;
  animation: notificationPulse 2s infinite;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

/* Notification appear animation */
.chat-notification.notification-appear {
  animation: notificationAppear 0.6s ease-out,
    notificationPulse 2s infinite 0.6s;
}

@keyframes notificationAppear {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

@keyframes notificationPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

/* Notification popup message */
.notification-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: white;
  color: #333;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-width: 280px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.notification-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: popupEntrance 0.4s ease-out;
}

@keyframes popupEntrance {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Arrow for notification popup */
.notification-popup::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.notification-popup-content {
  position: relative;
  z-index: 2;
}

.notification-popup h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--skin-color);
}

.notification-popup p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

/* Dark mode notification popup */
[data-theme="dark"] .notification-popup {
  background: #2a2a2a;
  color: #ffffff;
  border-color: #444444;
}

[data-theme="dark"] .notification-popup::after {
  background: #2a2a2a;
  border-color: #444444;
}

[data-theme="dark"] .notification-popup p {
  color: #e0e0e0;
}

/* Attention grabbing animation (plays periodically) */
.chat-toggle.attention {
  animation: attentionGrab 0.8s ease-in-out;
}

@keyframes attentionGrab {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1) rotate(-5deg);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  75% {
    transform: scale(1.1) rotate(-3deg);
  }
}

/* Glowing effect for better visibility */
.chat-toggle::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--skin-color), #ff6b6b);
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

.chat-toggle:hover::after {
  opacity: 0.7;
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: blur(10px);
    opacity: 0.7;
  }
  to {
    filter: blur(15px);
    opacity: 0.9;
  }
}

/* Desktop Chat Container */
.chat-container {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--bg-black-900);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-container.show {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chat-header {
  background: var(--skin-color);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.assistant-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.assistant-avatar i {
  font-size: 18px;
}

.assistant-info h4 {
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.status {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 400;
}

.status::before {
  content: "●";
  color: #00ff88;
  margin-right: 6px;
}

.chat-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.chat-messages {
  flex: 1;
  padding: 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-black-900);
  min-height: 0;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--bg-black-50);
  border-radius: 4px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 85%;
}

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

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

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.bot-message .message-avatar {
  background: var(--skin-color);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-message .message-avatar {
  background: var(--bg-black-50);
  color: var(--text-black-700);
  border: 1px solid var(--bg-black-100);
}

.message-content {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Enhanced Dark Mode Visibility */
.bot-message .message-content {
  background: var(--bg-black-50);
  color: var(--text-black-900);
  padding: 16px 18px;
  border-radius: 20px 20px 20px 8px;
  border: 1px solid var(--bg-black-100);
  line-height: 1.5;
}

.user-message .message-content {
  background: var(--skin-color);
  color: white;
  padding: 16px 18px;
  border-radius: 20px 20px 8px 20px;
  line-height: 1.5;
}

/* Dark mode specific text colors */
[data-theme="dark"] .bot-message .message-content {
  background: #2a2a2a;
  color: #ffffff;
  border: 1px solid #444444;
}

[data-theme="dark"] .message-content p {
  color: #ffffff !important;
}

[data-theme="dark"] .message-content li {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .message-content strong {
  color: var(--skin-color) !important;
}

[data-theme="dark"] .message-content ul {
  color: #e0e0e0;
}

/* Light mode text visibility */
[data-theme="light"] .bot-message .message-content {
  background: #f8f9fa;
  color: #2c3e50;
  border: 1px solid #e9ecef;
}

[data-theme="light"] .message-content p {
  color: #2c3e50 !important;
}

[data-theme="light"] .message-content li {
  color: #34495e !important;
}

[data-theme="light"] .message-content strong {
  color: var(--skin-color) !important;
}

.message-content p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400;
}

.message-content ul {
  margin: 8px 0 0 0;
  padding-left: 0;
  list-style: none;
}

.message-content li {
  margin: 6px 0;
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.message-content li::before {
  content: "•";
  color: var(--skin-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.message-content strong {
  color: var(--skin-color);
  font-weight: 600;
}

.message-content a {
  color: var(--skin-color);
  text-decoration: none;
  font-weight: 500;
}

.message-content a:hover {
  text-decoration: underline;
}

/* Character Counter Styles */
.character-counter {
  font-size: 11px;
  color: var(--text-black-600);
  text-align: right;
  margin-top: 4px;
  padding-right: 4px;
}

.character-counter .warning {
  color: #ff6b6b;
  font-weight: 600;
}

/* System Message Styles */
.system-message {
  max-width: 90%;
  margin: 8px auto;
  animation: slideInSystem 0.3s ease-out;
}

.system-message.error .system-content {
  background: #ff6b6b;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
  border: 1px solid #ff5252;
}

.system-message.warning .system-content {
  background: #ffa726;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
  border: 1px solid #ff9800;
}

.system-message.info .system-content {
  background: var(--bg-black-50);
  color: var(--text-black-700);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--bg-black-100);
}

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

/* Quick Questions & Topic Buttons */
.quick-questions,
.available-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-btn,
.topic-btn {
  background: var(--bg-black-100);
  color: var(--text-black-700);
  border: 1px solid var(--bg-black-50);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.quick-btn:hover,
.topic-btn:hover {
  background: var(--skin-color);
  color: white;
  transform: translateY(-1px);
  border-color: var(--skin-color);
}

.topic-btn {
  font-size: 11px;
  padding: 6px 12px;
  margin: 2px;
}

/* Dark mode topic buttons */
[data-theme="dark"] .quick-btn,
[data-theme="dark"] .topic-btn {
  background: #3a3a3a;
  color: #ffffff;
  border: 1px solid #555555;
}

[data-theme="dark"] .quick-btn:hover,
[data-theme="dark"] .topic-btn:hover {
  background: var(--skin-color);
  color: white;
  border-color: var(--skin-color);
}

/* Know More Section Styles */
.know-more-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-black-100);
}

.know-more-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.know-more-btn {
  background: var(--bg-black-100);
  color: var(--text-black-700);
  border: 1px solid var(--bg-black-50);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.know-more-btn:hover {
  background: var(--skin-color);
  color: white;
  transform: translateY(-1px);
  border-color: var(--skin-color);
}

/* Dark mode know-more buttons */
[data-theme="dark"] .know-more-btn {
  background: #3a3a3a;
  color: #ffffff;
  border: 1px solid #555555;
}

[data-theme="dark"] .know-more-btn:hover {
  background: var(--skin-color);
  color: white;
  border-color: var(--skin-color);
}

.chat-input {
  padding: 20px;
  border-top: 1px solid var(--bg-black-50);
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-black-900);
  position: relative;
  flex-shrink: 0;
}

.chat-input input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--bg-black-50);
  border-radius: 24px;
  background: var(--bg-black-100);
  color: var(--text-black-900);
  outline: none;
  font-size: 14px;
  transition: all 0.2s;
  min-width: 0;
}

.chat-input input:focus {
  border-color: var(--skin-color);
  box-shadow: 0 0 0 3px rgba(var(--skin-color-rgb), 0.1);
}

.chat-input input::placeholder {
  color: var(--text-black-600);
}

/* Dark mode input */
[data-theme="dark"] .chat-input input {
  background: #2a2a2a;
  color: #ffffff;
  border: 1px solid #444444;
}

[data-theme="dark"] .chat-input input::placeholder {
  color: #888888;
}

.chat-input button {
  width: 44px;
  height: 44px;
  background: var(--skin-color);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(var(--skin-color-rgb), 0.3);
}

.chat-input button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-input button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-black-50);
  border-radius: 16px;
  width: fit-content;
  border: 1px solid var(--bg-black-100);
}

/* Dark mode typing indicator */
[data-theme="dark"] .typing-indicator {
  background: #3a3a3a;
  border: 1px solid #555555;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--skin-color);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

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

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

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

/* Mobile Responsive - Progressive Enhancement */
@media (max-width: 768px) {
  .chat-widget {
    bottom: 20px;
    right: 20px;
  }
  .chat-toggle {
    width: 52px;
    height: 52px;
    animation: none; /* Disable breathing on mobile to save battery */
  }

  .chat-toggle i {
    font-size: 18px;
    animation: none; /* Disable float on mobile */
  }

  /* ONLY hide chat toggle when chat is actually open on mobile */
  .chat-container.show ~ .chat-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Alternative selectors for when chat is open */
  .chat-widget.chat-open .chat-toggle,
  .chat-open .chat-toggle,
  body.chat-open .chat-toggle {
    display: none !important;
  }

  /* Hide notification badge on mobile devices - more specific selectors */
  .chat-widget .chat-toggle .chat-notification {
    display: none !important;
  }

  /* Hide notification badge when chat is open */
  .chat-container.show ~ .chat-toggle .chat-notification {
    display: none !important;
  }

  /* Also hide any notification elements that might be showing */
  .chat-toggle .chat-notification.notification-appear {
    display: none !important;
  }

  .notification-popup {
    max-width: 240px;
    bottom: 60px;
    right: -10px;
  }

  .notification-popup h4 {
    font-size: 13px;
  }

  .notification-popup p {
    font-size: 11px;
  }

  /* Mobile chat container - Full width approach */
  .chat-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .chat-container.show {
    transform: translateY(0);
  }

  .chat-header {
    padding: 16px 20px;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .assistant-avatar {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }

  .assistant-avatar i {
    font-size: 16px;
  }

  .assistant-info h4 {
    font-size: 15px;
  }

  .status {
    font-size: 11px;
  }

  .chat-messages {
    padding: 16px;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .message {
    max-width: 95%;
    gap: 10px;
  }

  .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .message-content {
    font-size: 14px;
  }

  .bot-message .message-content,
  .user-message .message-content {
    padding: 12px 16px;
    font-size: 14px;
  }

  .message-content li {
    font-size: 13px;
    line-height: 1.4;
  }

  .message-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .quick-questions,
  .available-topics {
    gap: 6px;
    margin-top: 10px;
  }

  .quick-btn,
  .topic-btn {
    font-size: 11px;
    padding: 6px 12px;
  }

  .know-more-btn {
    font-size: 10px;
    padding: 5px 10px;
  }

  .chat-input {
    padding: 16px;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: var(--bg-black-900);
    border-top: 1px solid var(--bg-black-50);
  }

  .chat-input input {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 20px;
  }

  .chat-input button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .character-counter {
    font-size: 10px;
    margin-top: 3px;
  }

  .system-message .system-content {
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .chat-toggle {
    width: 50px;
    height: 50px;
  }

  .chat-toggle i {
    font-size: 17px;
  }

  /* Extra security - hide notification badge on small devices */
  .chat-widget .chat-toggle .chat-notification,
  .chat-toggle .chat-notification {
    display: none !important;
    visibility: hidden !important;
  }

  .notification-popup {
    max-width: 200px;
    bottom: 55px;
    right: -15px;
  }

  .notification-popup h4 {
    font-size: 12px;
  }

  .notification-popup p {
    font-size: 10px;
  }

  .chat-header {
    padding: 14px 16px;
  }

  .assistant-avatar {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .assistant-info h4 {
    font-size: 14px;
  }

  .chat-messages {
    padding: 12px;
    gap: 10px;
  }

  .message-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .bot-message .message-content,
  .user-message .message-content {
    padding: 10px 14px;
    font-size: 13px;
  }

  .message-content li {
    font-size: 12px;
  }

  .message-content p {
    font-size: 13px;
  }

  .chat-input {
    padding: 12px;
    gap: 8px;
  }

  .chat-input input {
    padding: 10px 14px;
    font-size: 13px;
  }

  .chat-input button {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .quick-btn,
  .topic-btn {
    font-size: 10px;
    padding: 5px 10px;
  }

  .know-more-btn {
    font-size: 9px;
    padding: 4px 8px;
  }
}

/* Desktop-only enhancements */
@media (min-width: 769px) {
  .chat-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Enhanced shadow on desktop */
  .chat-toggle:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(255, 255, 255, 0.2);
  }
}

/* Accessibility improvements */
.chat-toggle:focus {
  outline: 2px solid var(--skin-color);
  outline-offset: 3px;
}

.chat-toggle:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .chat-toggle {
    animation: none;
  }

  .chat-toggle i {
    animation: none;
  }

  .chat-notification {
    animation: none;
  }

  .chat-toggle:hover {
    transform: none;
    transition: box-shadow 0.2s ease;
  }

  .notification-popup.show {
    animation: none;
  }
}
