/* Custom WhatsApp iOS Dark Mode Styling Overrides */
body {
  background-color: #0f172a;
  /* Slate 900 */
}

/* Local Font Asset Scoping - SF Pro Display */
@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/SFPRODISPLAYMEDIUM.OTF') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/SFPRODISPLAYBOLD.OTF') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* Force Title and Description font */
.web-title {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

.web-desc {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 300 !important;
  font-style: italic !important;
}

/* Force custom font family execution ONLY on the simulator canvas */
.whatsapp-chat-scope {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Scrollbar Behavior */
#chatBody::-webkit-scrollbar {
  width: 5px;
}

#chatBody::-webkit-scrollbar-track {
  background: transparent;
}

#chatBody::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Slow spin visual for missing album art discs */
.animate-spin-slow {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* High Fidelity WhatsApp Doodle Wallpaper Overlay (Contrast: 6%-8%) */
.whatsapp-doodle-overlay {
  background-color: #0b141a;
  background-image: url('../images/background.jfif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
}

/* High Fidelity iOS Curved Tail Systems */
.bubble-in-tail::after {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 13px;
  background-color: #202c33;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.bubble-out-tail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 13px;
  background-color: #005c4b;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Typing Indicator Staggered Animations */
.typing-indicator-dot {
  width: 6px;
  height: 6px;
  background-color: #8696a0;
  border-radius: 50%;
  display: inline-block;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }
}

/* Fullscreen device parameters for native resolution frame captures */
#deviceWrapper:fullscreen,
#deviceWrapper:-webkit-full-screen {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  ring: none !important;
  --tw-ring-shadow: none !important;
  background-color: #0b141a;
}

/* Hide the phone notch in fullscreen mode */
#deviceWrapper:fullscreen>div:first-child,
#deviceWrapper:-webkit-full-screen>div:first-child {
  display: none !important;
}