/* ==========================================================================
   Wati.io-Grade Clean Enterprise Design System
   Core Color Tokens, Typography, Elevation, and CSS Reset
   Strictly Professional B2B SaaS - Zero AI Slop
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Wati.io Signature Palette */
  --primary-50: #E8FAF2;
  --primary-100: #CAFDE8;
  --primary-200: #97FAD1;
  --primary-300: #58F3B4;
  --primary-500: #00E785; /* Wati signature neon-mint green */
  --primary-600: #00C76F;
  --primary-700: #009E57;
  --primary-800: #0B7A53; /* Deep professional WhatsApp emerald */
  --primary-900: #064E35;

  /* Executive Neutrals & Slate */
  --slate-25: #FCFDFD;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --slate-950: #0A0F1D;

  /* WhatsApp Authentic Elements */
  --wa-teal: #128C7E;
  --wa-dark-teal: #075E54;
  --wa-light-green: #25D366;
  --wa-chat-bg: #EFEAE2;
  --wa-outgoing-bubble: #E7FCE3;
  --wa-incoming-bubble: #FFFFFF;
  --wa-check-blue: #53BDEB;

  /* Semantic UI Colors */
  --color-success: #10B981;
  --color-success-bg: #ECFDF5;
  --color-warning: #F59E0B;
  --color-warning-bg: #FFFBEB;
  --color-danger: #EF4444;
  --color-danger-bg: #FEF2F2;
  --color-info: #0284C7;
  --color-info-bg: #F0F9FF;

  /* Brand Accents */
  --accent-meta: #0081FB;
  --accent-tiktok: #000000;
  --accent-google: #4285F4;
  --accent-salla: #004D40;
  --accent-zid: #5C2483;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Elevation (Crisp, subtle enterprise SaaS shadows) */
  --shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.08), 0 1px 2px -1px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.07), 0 2px 4px -2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(16, 24, 40, 0.07), 0 4px 6px -4px rgba(16, 24, 40, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(16, 24, 40, 0.08), 0 8px 10px -6px rgba(16, 24, 40, 0.04);

  /* Borders & Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Layout dimensions */
  --header-height: 64px;
  --tenant-bar-height: 48px;
  --sidebar-width: 260px;
  --inbox-list-width: 330px;
  --inbox-inspector-width: 360px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--slate-50);
  color: var(--slate-900);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
}

p, span, li, a, button, input, select, textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input, textarea, select {
  font-size: inherit;
  color: inherit;
}

/* Clean Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}
