@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --wa-primary: #25D366;
  --wa-primary-dark: #128C7E;
  --wa-deep: #075E54;
  --wa-light: #dcf8c6;
  --wa-chat-bg: #EFEAE2;
  --wa-chat-bg-dark: #0b141a;
  --wa-card-dark: #111b21;
  --wa-bubble-user: #005c4b;
  --wa-bubble-client: #202c33;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  direction: rtl;
  user-select: text;
  -webkit-font-smoothing: antialiased;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.5);
}

/* Glassmorphism & Cards */
.glass-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.msg-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.msg-card:hover {
  transform: translateY(-2px);
}

.msg-card:active {
  transform: scale(0.995);
}

/* WhatsApp message bubble styling */
.wa-bubble {
  position: relative;
  border-radius: 12px;
  line-height: 1.7;
}

.wa-bubble pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
}

/* Toast animation */
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.toast-animate {
  animation: slideDownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulse animation for quick copy badge */
@keyframes pulseGreen {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.pulse-copied {
  animation: pulseGreen 0.35s ease-in-out;
}

/* Tab indicator */
.tab-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Safe areas for iPhone bottom notch */
.safe-bottom {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
