@import url("/fonts/yekan-bakh/yekan-bakh.css");

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  /* Brand (white-label) */
  --color-primary: #0284c7;
  --color-secondary: #0f172a;
  --color-primary-muted: rgba(2, 132, 199, 0.12);
  --color-primary-soft: rgba(2, 132, 199, 0.08);
  --color-secondary-muted: rgba(15, 23, 42, 0.06);

  /* Design system surfaces */
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --muted: #64748b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  /* Healthcare module accents */
  --health-accent: #0d9488;
  --health-accent-soft: rgba(13, 148, 136, 0.12);
  --health-calm: #14b8a6;
  --health-success: #059669;
  --health-warning: #d97706;
  --health-danger: #dc2626;

  /* CRM module accents — professional slate-indigo */
  --crm-accent: #6366f1;
  --crm-accent-soft: rgba(99, 102, 241, 0.12);
  --crm-slate: #475569;
  --crm-success: #059669;
  --crm-warning: #d97706;
  --crm-danger: #dc2626;

  /* Hospitality module accents — warm F&B palette */
  --hospitality-accent: #ea580c;
  --hospitality-accent-soft: rgba(234, 88, 12, 0.12);
  --hospitality-warm: #f97316;
  --hospitality-success: #059669;
  --hospitality-warning: #d97706;
  --hospitality-danger: #dc2626;

  /* Sports Center module accents — energetic premium palette */
  --sports-accent: #2563eb;
  --sports-accent-soft: rgba(37, 99, 235, 0.12);
  --sports-energy: #3b82f6;
  --sports-success: #059669;
  --sports-warning: #d97706;
  --sports-danger: #dc2626;

  /* Loyalty Platform module accents — engagement teal */
  --loyalty-accent: #0d9488;
  --loyalty-accent-soft: rgba(13, 148, 136, 0.12);
  --loyalty-success: #059669;
  --loyalty-warning: #d97706;
  --loyalty-danger: #dc2626;

  /* Beauty module accents — warm luxury palette */
  --beauty-accent: #b76e79;
  --beauty-accent-soft: rgba(183, 110, 121, 0.14);
  --beauty-warm: #c9a87c;
  --beauty-calm: #d4a5a5;
  --beauty-success: #059669;
  --beauty-warning: #d97706;
  --beauty-danger: #dc2626;

  /* Delivery module accents — logistics teal/blue */
  --delivery-accent: #0891b2;
  --delivery-accent-soft: rgba(8, 145, 178, 0.12);
  --delivery-map: #0e7490;
  --delivery-success: #059669;
  --delivery-warning: #d97706;
  --delivery-danger: #dc2626;

  /* Experience module accents — cyan/sky pages builder */
  --experience-accent: #0891b2;
  --experience-accent-soft: rgba(8, 145, 178, 0.12);
  --experience-success: #059669;
  --experience-warning: #d97706;
  --experience-danger: #dc2626;

  /* Communication module accents — indigo messaging */
  --communication-accent: #6366f1;
  --communication-accent-soft: rgba(99, 102, 241, 0.12);
  --communication-success: #059669;
  --communication-warning: #d97706;
  --communication-danger: #dc2626;
}

.dark {
  --color-primary: #38bdf8;
  --color-secondary: #f1f5f9;
  --color-primary-muted: rgba(56, 189, 248, 0.16);
  --color-primary-soft: rgba(56, 189, 248, 0.1);
  --color-secondary-muted: rgba(241, 245, 249, 0.08);

  --canvas: #0b1220;
  --surface: #111827;
  --surface-muted: #1e293b;
  --border: #334155;
  --muted: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);

  --health-accent: #2dd4bf;
  --health-accent-soft: rgba(45, 212, 191, 0.15);
  --health-calm: #5eead4;
  --health-success: #34d399;
  --health-warning: #fbbf24;
  --health-danger: #f87171;

  --crm-accent: #818cf8;
  --crm-accent-soft: rgba(129, 140, 248, 0.16);
  --crm-slate: #94a3b8;
  --crm-success: #34d399;
  --crm-warning: #fbbf24;
  --crm-danger: #f87171;

  --hospitality-accent: #fb923c;
  --hospitality-accent-soft: rgba(251, 146, 60, 0.16);
  --hospitality-warm: #fdba74;
  --hospitality-success: #34d399;
  --hospitality-warning: #fbbf24;
  --hospitality-danger: #f87171;

  --beauty-accent: #e8b4bc;
  --beauty-accent-soft: rgba(232, 180, 188, 0.18);
  --beauty-warm: #d4b896;
  --beauty-calm: #e8c4c4;
  --beauty-success: #34d399;
  --beauty-warning: #fbbf24;
  --beauty-danger: #f87171;

  --sports-accent: #60a5fa;
  --sports-accent-soft: rgba(96, 165, 250, 0.16);
  --sports-energy: #93c5fd;
  --sports-success: #34d399;
  --sports-warning: #fbbf24;
  --sports-danger: #f87171;

  --loyalty-accent: #2dd4bf;
  --loyalty-accent-soft: rgba(45, 212, 191, 0.15);
  --loyalty-success: #34d399;
  --loyalty-warning: #fbbf24;
  --loyalty-danger: #f87171;

  --delivery-accent: #22d3ee;
  --delivery-accent-soft: rgba(34, 211, 238, 0.16);
  --delivery-map: #67e8f9;
  --delivery-success: #34d399;
  --delivery-warning: #fbbf24;
  --delivery-danger: #f87171;

  --experience-accent: #22d3ee;
  --experience-accent-soft: rgba(34, 211, 238, 0.16);
  --experience-success: #34d399;
  --experience-warning: #fbbf24;
  --experience-danger: #f87171;

  --communication-accent: #818cf8;
  --communication-accent-soft: rgba(129, 140, 248, 0.16);
  --communication-success: #34d399;
  --communication-warning: #fbbf24;
  --communication-danger: #f87171;
}

body {
  font-family: "Yekan Bakh FaNum", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  @apply bg-[var(--canvas)] text-secondary antialiased;
}

@layer utilities {
  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@keyframes ty-route-progress {
  0% {
    transform: translateX(100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

