
/* ==========================
   WHATSAPP & CHATBOT STYLES
   ========================== */

/* WhatsApp Button Styles */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsappPulse 2s infinite;
  overflow: hidden;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  animation: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--upwork-dark);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  text-align: center;
  line-height: 1.4;
}

.whatsapp-tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-left: 6px solid var(--upwork-dark);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.whatsapp-tooltip small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 4px;
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Chatbot Modal Styles */
.chatbot-modal {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 380px;
  height: 600px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--upwork-border);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-modal.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chatbot-header {
  background: linear-gradient(135deg, var(--upwork-green), var(--upwork-green-dark));
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.chatbot-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.chatbot-info {
  flex: 1;
}

.chatbot-info h4 {
  color: white;
  margin: 0 0 5px 0;
  font-size: 1.1rem;
}

.chatbot-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.85rem;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.chatbot-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chatbot-welcome {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  margin-bottom: 8px;
  position: relative;
  animation: messageSlide 0.3s ease;
  word-wrap: break-word;
}

@keyframes messageSlide {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chatbot-message.bot {
  background: white;
  border: 1px solid var(--upwork-border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.chatbot-message.user {
  background: var(--upwork-green);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 2px 8px rgba(20, 168, 0, 0.2);
}

.chatbot-message p {
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.chatbot-message p:last-child {
  margin-bottom: 0;
}

.chatbot-message .timestamp {
  font-size: 0.7rem;
  opacity: 0.7;
  text-align: right;
  margin-top: 8px;
}

.quick-options {
  padding: 15px 20px;
  border-top: 1px solid var(--upwork-border);
  border-bottom: 1px solid var(--upwork-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: white;
}

.quick-option {
  background: rgba(20, 168, 0, 0.1);
  border: 1px solid rgba(20, 168, 0, 0.2);
  color: var(--upwork-green);
  padding: 8px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex: 1;
  min-width: 120px;
}

.quick-option:hover {
  background: var(--upwork-green);
  color: white;
  transform: translateY(-2px);
}

.chatbot-input {
  padding: 15px 20px;
  background: white;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--upwork-border);
}

.chatbot-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--upwork-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.chatbot-input input:focus {
  border-color: var(--upwork-green);
  box-shadow: 0 0 0 3px rgba(20, 168, 0, 0.1);
}

.chatbot-input button {
  background: var(--upwork-green);
  color: white;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background: var(--upwork-green-dark);
  transform: translateY(-2px);
}

.chatbot-input button:disabled {
  background: var(--upwork-lighter);
  cursor: not-allowed;
  transform: none;
}

/* Chatbot typing indicator */
.typing-indicator {
  display: none;
  background: white;
  border: 1px solid var(--upwork-border);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  align-self: flex-start;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.typing-indicator.active {
  display: block;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 20px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--upwork-light);
  border-radius: 50%;
  animation: typingAnimation 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingAnimation {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Chatbot message animations */
@keyframes messageAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message {
  animation: messageAppear 0.3s ease forwards;
}

/* Chatbot scrollbar styling */
.chatbot-body::-webkit-scrollbar {
  width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.chatbot-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Chatbot status indicators */
.chatbot-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  margin-top: 2px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.status-dot.online {
  background: #4CAF50;
  box-shadow: 0 0 0 rgba(76, 175, 80, 0.4);
  animation: pulse 2s infinite;
}

.status-dot.away {
  background: #FF9800;
  box-shadow: 0 0 0 rgba(255, 152, 0, 0.4);
}

.status-dot.busy {
  background: #F44336;
  box-shadow: 0 0 0 rgba(244, 67, 54, 0.4);
}

.status-dot.offline {
  background: #9E9E9E;
}

.status-dot.typing {
  background: #2196F3;
  box-shadow: 0 0 0 rgba(33, 150, 243, 0.4);
  animation: typingStatus 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

@keyframes typingStatus {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Status dot with glow effect for important notifications */
.status-dot.new-message {
  background: #FF4081;
  animation: newMessageGlow 1s infinite alternate;
}

@keyframes newMessageGlow {
  from {
    box-shadow: 0 0 2px #FF4081, 0 0 4px #FF4081, 0 0 6px #FF4081;
  }
  to {
    box-shadow: 0 0 4px #FF4081, 0 0 8px #FF4081, 0 0 12px #FF4081;
  }
}

/* Status with text */
.status-with-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-text {
  font-size: 0.8rem;
  color: var(--upwork-light);
  font-weight: 500;
}

.status-dot.small {
  width: 6px;
  height: 6px;
}

.status-dot.large {
  width: 10px;
  height: 10px;
}

/* Status in chatbot header */
.chatbot-header .chatbot-status {
  margin-top: 0;
}

.chatbot-header .status-dot {
  width: 10px;
  height: 10px;
}

/* Status in messages */
.chatbot-message .chatbot-status {
  margin-top: 4px;
  justify-content: flex-end;
}

.chatbot-message.bot .chatbot-status {
  justify-content: flex-start;
}

/* Status indicator for unread messages */
.message-unread .status-dot {
  background: #FF4081;
  animation: unreadPulse 2s infinite;
}

@keyframes unreadPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Connection status indicator */
.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
}

.connection-status.connected {
  color: #4CAF50;
}

.connection-status.connecting {
  color: #FF9800;
}

.connection-status.disconnected {
  color: #F44336;
}

/* Status dot in quick options */
.quick-option .status-dot {
  margin-right: 4px;
  vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .status-dot {
    width: 6px;
    height: 6px;
  }
  
  .status-dot.large {
    width: 8px;
    height: 8px;
  }
  
  .status-text {
    font-size: 0.75rem;
  }
}

/* Chatbot suggested responses */
.suggested-responses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suggested-response {
  background: rgba(20, 168, 0, 0.08);
  border: 1px solid rgba(20, 168, 0, 0.2);
  color: var(--upwork-green);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.suggested-response:hover {
  background: var(--upwork-green);
  color: white;
  transform: translateY(-1px);
}

/* Chatbot message attachments */
.message-attachment {
  margin-top: 10px;
  border: 1px solid var(--upwork-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 250px;
}

.attachment-preview {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, rgba(20, 168, 0, 0.1), rgba(31, 87, 195, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--upwork-green);
  font-size: 2rem;
}

.attachment-info {
  padding: 10px;
  background: white;
}

.attachment-info h5 {
  margin: 0 0 5px 0;
  color: var(--upwork-dark);
  font-size: 0.9rem;
}

.attachment-info p {
  margin: 0;
  color: var(--upwork-light);
  font-size: 0.8rem;
}

/* Chatbot rating system */
.chatbot-rating {
  padding: 15px;
  background: rgba(20, 168, 0, 0.05);
  border-radius: var(--radius-md);
  margin-top: 10px;
  border: 1px solid rgba(20, 168, 0, 0.1);
}

.rating-prompt {
  font-size: 0.9rem;
  color: var(--upwork-dark);
  margin-bottom: 10px;
}

.rating-stars {
  display: flex;
  gap: 5px;
}

.star {
  font-size: 1.2rem;
  color: #FFB400;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.star:hover {
  transform: scale(1.2);
}

.star.active {
  color: #FF9800;
}

.rating-feedback {
  margin-top: 10px;
  display: none;
}

.rating-feedback textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--upwork-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  resize: vertical;
  min-height: 60px;
  font-family: 'Inter', sans-serif;
}

.rating-feedback.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Chatbot notifications */
.chatbot-notification {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--upwork-green);
  color: white;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 300px;
}

.chatbot-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-content i {
  font-size: 1.2rem;
}

.notification-text {
  flex: 1;
  font-size: 0.9rem;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Chatbot typing indicator extended */
.typing-text {
  font-size: 0.85rem;
  color: var(--upwork-light);
  margin-top: 5px;
}

/* Chatbot message formatting */
.message-code {
  background: rgba(0, 0, 0, 0.05);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  margin: 8px 0;
  overflow-x: auto;
}

.message-list {
  margin: 8px 0;
  padding-left: 20px;
}

.message-list li {
  margin-bottom: 5px;
  color: var(--upwork-dark);
}

.message-divider {
  text-align: center;
  margin: 15px 0;
  position: relative;
}

.message-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--upwork-border);
  z-index: 1;
}

.message-divider span {
  background: #f8f9fa;
  padding: 0 10px;
  color: var(--upwork-light);
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
}

/* Chatbot auto-complete */
.autocomplete-container {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--upwork-border);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.autocomplete-list.active {
  display: block;
  animation: fadeInUp 0.2s ease;
}

.autocomplete-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--upwork-border-light);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: rgba(20, 168, 0, 0.1);
}

.autocomplete-item.active {
  background: rgba(20, 168, 0, 0.2);
}

/* Chatbot file upload */
.file-upload-area {
  border: 2px dashed var(--upwork-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.file-upload-area:hover {
  border-color: var(--upwork-green);
  background: rgba(20, 168, 0, 0.05);
}

.file-upload-area i {
  font-size: 2rem;
  color: var(--upwork-green);
  margin-bottom: 10px;
}

.file-upload-area p {
  margin: 0;
  color: var(--upwork-light);
  font-size: 0.9rem;
}

.file-upload-area input[type="file"] {
  display: none;
}

/* Chatbot voice input */
.voice-input-btn {
  background: var(--upwork-green);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
}

.voice-input-btn:hover {
  background: var(--upwork-green-dark);
  transform: scale(1.1);
}

.voice-input-btn.listening {
  background: #F44336;
  animation: listeningPulse 1.5s infinite;
}

@keyframes listeningPulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.voice-level {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--upwork-green);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.voice-input-btn.listening .voice-level {
  animation: voiceLevel 1s infinite alternate;
}

@keyframes voiceLevel {
  from {
    transform: scale(1);
    opacity: 0.5;
  }
  to {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Chatbot theme toggle */
.chatbot-theme-toggle {
  position: absolute;
  top: 20px;
  right: 60px;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
}

/* Dark theme for chatbot */
.chatbot-modal.dark-theme {
  background: #1a1a1a;
  color: white;
}

.chatbot-modal.dark-theme .chatbot-header {
  background: linear-gradient(135deg, #1a3b1a, #001e00);
}

.chatbot-modal.dark-theme .chatbot-body {
  background: #2d2d2d;
}

.chatbot-modal.dark-theme .chatbot-message.bot {
  background: #333;
  border-color: #444;
  color: white;
}

.chatbot-modal.dark-theme .quick-option {
  background: rgba(20, 168, 0, 0.2);
  color: #90ee90;
}

.chatbot-modal.dark-theme .quick-option:hover {
  background: var(--upwork-green);
  color: white;
}

.chatbot-modal.dark-theme .chatbot-input {
  background: #333;
}

.chatbot-modal.dark-theme .chatbot-input input {
  background: #2d2d2d;
  border-color: #444;
  color: white;
}

.chatbot-modal.dark-theme .typing-indicator {
  background: #333;
  border-color: #444;
}

.chatbot-modal.dark-theme .chatbot-message.user {
  background: var(--upwork-green);
}

/* Chatbot minimized state */
.chatbot-minimized {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 300px;
  background: var(--upwork-green);
  color: white;
  border-radius: var(--radius-md);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: slideUp 0.3s ease;
}

.chatbot-minimized i {
  font-size: 1.5rem;
}

.chatbot-minimized-content {
  flex: 1;
}

.chatbot-minimized h5 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.chatbot-minimized p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.chatbot-minimized-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chatbot-minimized-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Chatbot typing animation */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

.typewriter-text {
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter 2s steps(40, end);
}

/* Chatbot responsive styles */
@media (max-width: 768px) {
  .chatbot-modal {
    width: calc(100% - 40px);
    height: 70vh;
    bottom: 20px;
    right: 20px;
    left: 20px;
  }
  
  .whatsapp-btn {
    bottom: 20px;
    left: 20px;
  }
  
  .chatbot-notification {
    bottom: 80px;
    right: 20px;
    max-width: calc(100% - 40px);
  }
  
  .quick-option {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  
  .chatbot-minimized {
    width: calc(100% - 40px);
    right: 20px;
  }
}

@media (max-width: 480px) {
  .chatbot-modal {
    width: calc(100% - 20px);
    height: 80vh;
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .whatsapp-btn {
    bottom: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .chatbot-header {
    padding: 15px;
  }
  
  .chatbot-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .chatbot-body {
    padding: 15px;
  }
  
  .chatbot-input {
    padding: 10px 15px;
  }
  
  .chatbot-message {
    max-width: 90%;
  }
  
  .quick-option {
    min-width: 80px;
    font-size: 0.75rem;
    padding: 5px 8px;
  }
  
  .chatbot-minimized {
    width: calc(100% - 20px);
    right: 10px;
    padding: 10px 15px;
  }
}

/* Chatbot accessibility */
.chatbot-modal:focus {
  outline: 2px solid var(--upwork-green);
  outline-offset: 2px;
}

.chatbot-input input:focus-visible {
  outline: 2px solid var(--upwork-green);
  outline-offset: 2px;
}

.quick-option:focus-visible,
.voice-input-btn:focus-visible,
.chatbot-close:focus-visible,
.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--upwork-green);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .chatbot-modal,
  .chatbot-notification,
  .chatbot-message,
  .quick-option,
  .voice-input-btn,
  .whatsapp-btn {
    transition: none !important;
    animation: none !important;
  }
  
  .typing-dot {
    animation: none !important;
  }
  
  .chatbot-message {
    animation: none !important;
  }
}