/* Floating Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Main Toggle Button */
.chat-toggle-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.chat-toggle-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  opacity: 0.3;
  filter: blur(8px);
  z-index: -1;
  transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}

.chat-toggle-btn:hover::before {
  opacity: 0.5;
  filter: blur(12px);
}

.chat-toggle-btn.active {
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  transform: rotate(90deg);
}

.chat-toggle-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
  transition: all 0.3s ease;
}

.chat-toggle-btn.active .chat-icon {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}

.chat-toggle-btn.active .close-icon {
  transform: rotate(-90deg) scale(1);
  opacity: 1;
}

.close-icon {
  position: absolute;
  transform: rotate(0deg) scale(0);
  opacity: 0;
}

/* Notification Badge - Removed */
/* Badge has been removed from the design for a cleaner look */

/* Chat Options Menu */
.chat-options {
  position: absolute;
  bottom: 75px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.chat-options.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Individual Chat Buttons */
.chat-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}

.chat-option:nth-child(1) { animation-delay: 0.1s; }
.chat-option:nth-child(2) { animation-delay: 0.15s; }
.chat-option:nth-child(3) { animation-delay: 0.2s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chat-option:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chat-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-option-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* WhatsApp */
.chat-option.whatsapp .chat-option-icon {
  background: #25D366;
}

.chat-option.whatsapp:hover {
  background: #e8f8f0;
}

/* Call */
.chat-option.call .chat-option-icon {
  background: #10b981;
}

.chat-option.call:hover {
  background: #d1fae5;
}

/* Messenger */
.chat-option.messenger .chat-option-icon {
  background: #0084FF;
}

.chat-option.messenger:hover {
  background: #dbeafe;
}

.chat-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-option-title {
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
}

.chat-option-subtitle {
  font-size: 11px;
  color: #64748b;
}

/* WhatsApp Chat Modal */
.whatsapp-modal {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9998;
  overflow: hidden;
}

.whatsapp-modal.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.whatsapp-modal-header {
  background: #25D366;
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-modal-avatar svg {
  width: 24px;
  height: 24px;
  fill: #25D366;
}

.whatsapp-modal-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.whatsapp-modal-info p {
  margin: 2px 0 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.whatsapp-modal-body {
  padding: 20px;
}

.whatsapp-message-preview {
  background: #f0f2f5;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.5;
}

.whatsapp-modal-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s;
}

.whatsapp-modal-form textarea:focus {
  outline: none;
  border-color: #25D366;
}

.whatsapp-modal-footer {
  padding: 0 20px 20px 20px;
  display: flex;
  gap: 10px;
}

.whatsapp-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.whatsapp-btn-primary {
  background: #25D366;
  color: white;
}

.whatsapp-btn-primary:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.whatsapp-btn-secondary {
  background: #f1f5f9;
  color: #64748b;
}

.whatsapp-btn-secondary:hover {
  background: #e2e8f0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-widget {
    bottom: 15px;
    right: 15px;
  }
  
  .chat-toggle-btn {
    width: 60px;
    height: 60px;
  }
  
  .chat-toggle-btn svg {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp-modal {
    width: calc(100vw - 30px);
    right: 15px;
    bottom: 80px;
  }
  
  .chat-option-text {
    display: none;
  }
  
  .chat-option {
    padding: 12px;
    border-radius: 50%;
  }
  
  /* Badge removed - no longer needed */
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .chat-option {
    background: #2d3748;
    color: #f1f5f9;
  }
  
  .chat-option-title {
    color: #f1f5f9;
  }
  
  .whatsapp-modal {
    background: #2d3748;
  }
  
  .whatsapp-modal-body {
    background: #2d3748;
  }
  
  .whatsapp-message-preview {
    background: #374151;
    color: #e2e8f0;
  }
  
  .whatsapp-modal-form textarea {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
  }
}
