/* Floating WhatsApp Icon */
#whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #01301a; /* custom darker green */
  color: white;
  font-size: 28px;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow:var(--shadow);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* On hover: stronger emphasis */
#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

/* Extra urgency pulse using keyframes */
@keyframes urgencyPulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 rgba(0,109,91,0.6); }
  50%  { transform: scale(1.15); box-shadow: 0 0 25px rgba(0,109,91,0.85); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,109,91,0.6); }
}

#whatsapp-float.aos-animate {
  animation: urgencyPulse 1.5s infinite;
}


/* Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-width: 90%;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

/* Header */
.whatsapp-widget .widget-header {
  background: #006d5b; /* custom darker green */
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-info {
  display: flex;
  align-items: center;
}
.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}
.profile-name {
  font-weight: bold;
}
.profile-status {
  font-size: 12px;
  opacity: 0.9;
}
.header-actions {
  display: flex;
  align-items: center;
}
.header-actions .time {
  font-size: 12px;
  margin-right: 8px;
}
.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Message Bubble */
.message-bubble {
  margin: 15px;
  background: #e6f9ed;
  padding: 12px;
  border-radius: 10px;
  position: relative;
  font-size: 14px;
}
.message-meta {
  font-size: 11px;
  text-align: right;
  margin-top: 6px;
  color: #777;
}

/* Chat Button */
.whatsapp-btn {
  display: block;
  margin: 15px;
  padding: 12px;
  background: #006d5b; /* custom darker green */
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.whatsapp-btn:hover {
  background: #004f43; /* darker hover */
}



/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 40px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background-color: var(--secondary);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:hover {
    background-color: #01301a;
    color: white;

}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
    .widget-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    #backToTop {
        bottom: 50px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}