/* Custom Styles for WhatsApp Bot Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #25D366; /* WhatsApp Green */
  --primary-dark: #128C7E;
  --primary-deep: #075E54;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
  --border-dark: #334155;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.rtl {
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
  text-align: right;
}

/* Pulsing Status Dot */
.status-pulse {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Terminal Log Styling */
.terminal-window {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  background-color: #0b0f19;
  border: 1px solid #1f293d;
}

.log-line {
  line-height: 1.5;
  word-break: break-all;
}

/* QR Code Scan Frame Animation */
.qr-container {
  position: relative;
  display: inline-block;
  padding: 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.qr-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #25D366, transparent);
  animation: scan-move 2.5s ease-in-out infinite;
  box-shadow: 0 0 12px #25D366;
}

@keyframes scan-move {
  0% { top: 10px; }
  50% { top: calc(100% - 10px); }
  100% { top: 10px; }
}

/* Glassmorphism elements */
.glass-panel {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tabs active indicator */
.nav-tab.active {
  background-color: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border-color: #25D366;
}

/* Badge tags */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(37, 211, 102, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
