/* ============================================================
   Sleek Academia — Floating WhatsApp Conversion Button
   Installed in the bottom right corner across all pages.
   ============================================================ */

/* Suppress previous bot launcher if loaded */
#sa-chat-root {
  display: none !important;
}

.sa-wa-widget {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom, 22px));
  right: max(22px, env(safe-area-inset-right, 22px));
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

/* Teaser / Tooltip Pill */
.sa-wa-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #1b1f24;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.25s ease;
  animation: sa-wa-pill-appear 0.4s cubic-bezier(0.24, 1.24, 0.36, 1) 0.5s backwards;
}

[data-theme="dark"] .sa-wa-pill {
  background: rgba(22, 27, 34, 0.94);
  color: #f0f6fc;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sa-wa-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
  animation: sa-wa-pulse 2s infinite;
}

/* Floating WhatsApp Circular Button */
.sa-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #ffffff;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.24, 1.24, 0.36, 1), box-shadow 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.sa-wa-btn svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
  transition: transform 0.3s cubic-bezier(0.24, 1.24, 0.36, 1);
}

/* Hover & Active States */
.sa-wa-widget:hover .sa-wa-btn {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sa-wa-widget:hover .sa-wa-btn svg {
  transform: scale(1.05);
}

.sa-wa-widget:hover .sa-wa-pill {
  transform: translateX(-2px);
}

.sa-wa-widget:active .sa-wa-btn {
  transform: translateY(0) scale(0.96);
}

/* Keyframes */
@keyframes sa-wa-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes sa-wa-pill-appear {
  0% {
    opacity: 0;
    transform: translateX(12px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .sa-wa-pill {
    display: none; /* Hide pill banner on mobile to save screen real estate */
  }

  .sa-wa-btn {
    width: 54px;
    height: 54px;
  }

  .sa-wa-btn svg {
    width: 30px;
    height: 30px;
  }
}
