/* Daroyab AI - FarsiUI & Zinc Official Design Tokens & Base CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Light Theme (FarsiUI / shadcn Zinc Light) */
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  
  --radius: 0.75rem;

  /* Clinical Decision Signals */
  --clinical-safe: 142.1 76.2% 36.3%;
  --clinical-safe-bg: 142.1 76.2% 95%;
  --clinical-safe-border: 142.1 76.2% 80%;

  --clinical-caution: 38 92% 50%;
  --clinical-caution-bg: 48 96% 94%;
  --clinical-caution-border: 38 92% 75%;

  --clinical-danger: 0 84.2% 60.2%;
  --clinical-danger-bg: 0 84.2% 96%;
  --clinical-danger-border: 0 84.2% 80%;

  --brand-gradient: linear-gradient(135deg, hsl(240 5.9% 10%), hsl(240 5.9% 25%));

  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Outfit', sans-serif;
}

[data-theme='dark'] {
  /* Dark Theme (shadcn/ui Zinc Dark - Premium Midnight) */
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  
  --card: 240 10% 5.5%;
  --card-foreground: 0 0% 98%;
  
  --popover: 240 10% 5.5%;
  --popover-foreground: 0 0% 98%;
  
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 98%;
  
  --border: 240 3.7% 17%;
  --input: 240 3.7% 17%;
  --ring: 240 4.9% 83.9%;

  --clinical-safe: 142.1 70.6% 45.3%;
  --clinical-safe-bg: 142.1 70.6% 10%;
  --clinical-safe-border: 142.1 70.6% 22%;

  --clinical-caution: 38 92% 50%;
  --clinical-caution-bg: 38 92% 10%;
  --clinical-caution-border: 38 92% 25%;

  --clinical-danger: 0 84.2% 60.2%;
  --clinical-danger-bg: 0 84.2% 12%;
  --clinical-danger-border: 0 84.2% 25%;

  --brand-gradient: linear-gradient(135deg, hsl(0 0% 98%), hsl(240 5% 65%));
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 14px;
}

body {
  font-family: var(--font-fa);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle selection styling */
::selection {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Base link reset */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}
