/* ==========================================================================
   Sira Admin — design tokens
   Ported from sira-vendor-app (src/styles/theme.css) so the admin surface
   shares one visual identity with the vendor dashboard.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Helvetica Neue', sans-serif;
  --font-size: 16px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Surfaces */
  --background: #ffffff;
  --surface: #f8f9fa;             /* page background */
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;

  /* Primary brand (red) */
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-foreground: #ffffff;

  /* Muted / neutral */
  --muted: #ececf0;
  --muted-foreground: #717182;
  --secondary: #f1f2f5;
  --secondary-foreground: #030213;
  --accent: #e9ebef;
  --accent-foreground: #030213;

  /* Destructive */
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;

  /* Borders + inputs */
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);
  --input: transparent;
  --input-background: #f3f3f5;
  --ring: rgba(0, 0, 0, 0.35);

  /* Sidebar (light, vendor-app style) */
  --sidebar: #ffffff;
  --sidebar-foreground: #0a0a0a;
  --sidebar-muted: #717182;
  --sidebar-primary: #dc2626;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f5f5f6;
  --sidebar-accent-foreground: #0a0a0a;
  --sidebar-border: rgba(0, 0, 0, 0.08);

  /* Radii */
  --radius: 0.625rem;             /* 10px */
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* Status colours — match vendor-app's order management palette */
  --status-pending: #f97316;
  --status-pending-bg: #fff7ed;
  --status-accepted: #3b82f6;
  --status-accepted-bg: #eff6ff;
  --status-ready: #a855f7;
  --status-ready-bg: #faf5ff;
  --status-completed: #22c55e;
  --status-completed-bg: #f0fdf4;
  --status-issue: #ef4444;
  --status-issue-bg: #fef2f2;
  --status-neutral: #64748b;
  --status-neutral-bg: #f1f5f9;

  /* Charts */
  --chart-1: #dc2626;
  --chart-2: #3b82f6;
  --chart-3: #22c55e;
  --chart-4: #f97316;
  --chart-5: #a855f7;
}

/* Base */
html {
  font-size: var(--font-size);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
  color: var(--foreground);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
  margin: 0;
}
h2 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  margin: 0;
}
h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
  margin: 0;
}
h4 {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  margin: 0;
}

label,
button {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}
