/* WhatsApp Chat Background pattern */
.chat-bg {
  background-color: #efeae2;
  background-image: radial-gradient(#d1d7db 0.75px, transparent 0.75px), radial-gradient(#d1d7db 0.75px, #efeae2 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Bubble tails */
.bubble-kevin {
  background-color: #d9fdd3;
  position: relative;
}

.bubble-dan {
  background-color: #ffffff;
  position: relative;
}

/* WhatsApp Voice Note Player */
.wa-audio-player {
  background-color: rgba(240, 242, 245, 0.85);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 320px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.wa-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #00a884;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.wa-play-btn:hover {
  background-color: #008f6f;
  transform: scale(1.04);
}

.wa-play-btn:active {
  transform: scale(0.95);
}

.wa-wave-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-wave-track {
  height: 4px;
  background-color: #cbd5e1;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.wa-wave-fill {
  height: 100%;
  width: 0%;
  background-color: #00a884;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.wa-audio-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
