@import "tailwindcss";

@custom-variant dark (&:where(.dark, .dark *));

:root {
  color-scheme: light;

  --background: #f7f8fa;
  --foreground: #1e1e2e;
  --card: #ffffff;
  --card-foreground: #1e1e2e;
  --popover: #ffffff;
  --popover-foreground: #1e1e2e;
  --primary: #f2994a;
  --primary-foreground: #ffffff;
  --secondary: #eef1f6;
  --secondary-foreground: #1e1e2e;
  --muted: #eef1f6;
  --muted-foreground: #6b7280;
  --accent: #e8f4fd;
  --accent-foreground: #1e1e2e;
  --info: #2d9cdb;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e8ebf0;
  --input: #ffffff;
  --ring: #f2994a;
  --radius: 1rem;
  --shadow-soft: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-soft-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.dark {
  color-scheme: dark;

  --background: #0f1419;
  --foreground: #f0f2f5;
  --card: #1a2230;
  --card-foreground: #f0f2f5;
  --popover: #1a2230;
  --popover-foreground: #f0f2f5;
  --primary: #f2994a;
  --primary-foreground: #ffffff;
  --secondary: #232d3d;
  --secondary-foreground: #f0f2f5;
  --muted: #232d3d;
  --muted-foreground: #9ca3af;
  --accent: #1e3044;
  --accent-foreground: #f0f2f5;
  --info: #2d9cdb;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #2a3548;
  --input: #1a2230;
  --ring: #f2994a;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-soft-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-info: var(--info);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 16px);
  --font-sans: var(--font-vazirmatn);
}

* {
  border-color: var(--border);
}

html,
body {
  overflow-x: clip;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans), Tahoma, Arial, sans-serif;
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-soft-sm {
  box-shadow: var(--shadow-soft-sm);
}
