/* Enhanced WhatsApp Popup Styles */
.whatsapp-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whatsapp-popup-header {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.whatsapp-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-info {
  flex: 1;
}

.whatsapp-info h3 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.whatsapp-info p {
  font-size: 0.9rem;
  margin: 2px 0 0 0;
  opacity: 0.9;
}

.whatsapp-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  margin-top: 5px;
}

.whatsapp-status i {
  color: #4ade80;
  font-size: 0.7rem;
}

.whatsapp-close {
  left: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.whatsapp-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.whatsapp-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.whatsapp-icon {
  font-size: 60px;
  color: #25d366;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.whatsapp-content h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

.whatsapp-content p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
}

.whatsapp-contact-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-contact-btn i {
  font-size: 1.2rem;
}

/* Enhanced Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
  .whatsapp-popup {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }

  .whatsapp-popup-header {
    padding: 15px 10px;
  }

  .whatsapp-content {
    padding: 20px;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .whatsapp-popup {
    background: #1a1a1a;
    color: #fff;
  }

  .whatsapp-content {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  }

  .whatsapp-content h4 {
    color: #fff;
  }

  .whatsapp-content p {
    color: #ccc;
  }
}
