@import "tailwindcss";
@import "tw-animate-css";
@plugin "@tailwindcss/typography";

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

@theme inline {
  --font-sans:
    "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-mono:
    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --font-serif:
    "Oswald", ui-sans-serif, system-ui, sans-serif;

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --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-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);

  /* Hex versions of the Tailwind colors the app uses, for older Android / POS browsers */
  --color-blue-400: #51a2ff;
  --color-blue-500: #2b7fff;
  --color-blue-600: #155dfc;
  --color-blue-700: #1447e6;
  --color-emerald-100: #d0fae5;
  --color-emerald-200: #a4f4cf;
  --color-emerald-300: #5ee9b5;
  --color-emerald-400: #00d492;
  --color-emerald-500: #00bc7d;
  --color-emerald-600: #009966;
  --color-emerald-800: #006045;
  --color-emerald-900: #004f3b;
  --color-emerald-950: #002c22;
  --color-orange-400: #ff8904;
  --color-red-400: #ff6467;
  --color-red-500: #fb2c36;
  --color-red-600: #e7000b;
  --color-red-700: #c10007;
  --color-sky-400: #00bcff;
  --color-zinc-300: #d4d4d8;
}

/* Hex colors (not oklch) so older Android / POS browsers like the Sunmi V2 Pro show the theme */
/* Single dark appearance: near-black base, maroon cards, rose-pink highlights, amber points */
:root {
  color-scheme: dark;
  --radius: 0.9rem;
  --background: #0a0606;
  --foreground: #f5f0f1;
  --card: #1a0d0f;
  --card-foreground: #f5f0f1;
  --popover: #1d0f11;
  --popover-foreground: #f5f0f1;
  --primary: #e77687;
  --primary-foreground: #130809;
  --secondary: #301a1d;
  --secondary-foreground: #f5f0f1;
  --muted: #251617;
  --muted-foreground: #b1a0a0;
  --accent: #f2af48;
  --accent-foreground: #1b0e04;
  --destructive: #f94144;
  --border: #47292d;
  --input: #47292d;
  --ring: #e77687;
  --chart-1: #e77687;
  --chart-2: #f2af48;
  --chart-3: #9b7dcd;
  --chart-4: #44b782;
  --chart-5: #9c7477;
  --sidebar: #130b0c;
  --sidebar-foreground: #f5f0f1;
  --sidebar-primary: #e77687;
  --sidebar-primary-foreground: #130809;
  --sidebar-accent: #301a1d;
  --sidebar-accent-foreground: #f5f0f1;
  --sidebar-border: #47292d;
  --sidebar-ring: #e77687;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
  }

  button:not(:disabled),
  [role="button"]:not(:disabled) {
    cursor: pointer;
  }
}
