/* Scenique24 design tokens. Default palette: "Black & White" - stone canvas,
   near-black ink, gray hairlines, no hue anywhere. Alternate palettes
   (Indigo Pop, Bubblegum, Sunset Citrus, Midnight Mint) override the color
   roles for both themes via [data-palette] blocks below. */

:root {
  --label-size: 0.6875rem;
  --label-tracking: 0.14em;
  --background: #f7f8fa;
  --foreground: #29292e;
  --card: #ffffff;
  --card-foreground: #29292e;
  --popover: #ffffff;
  --popover-foreground: #29292e;
  --primary: #111111;
  --primary-foreground: #ffffff;
  --secondary: #f1f2f5;
  --secondary-foreground: #43454c;
  --muted: #f1f2f5;
  --muted-foreground: #6b7280;
  --accent: #eef0f4;
  --accent-foreground: #29292e;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --success: #346538;
  --warning: #956400;
  --converted: #3e4f9c;
  --border: #e4e6ea;
  --input: #dfe1e6;
  --ring: #52525b;
  --radius: 0.75rem;

  /* Motion system: heavy-mass deceleration + spring press curves. */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 700ms;

  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", monospace;

  /* Shell ladder: gray rail, white canvas, stone masthead. */
  --sidebar-bg: #eceef1;
  --sidebar-active: #ffffff;
  --banner-bg: #f6f4ef;
  --brand-ink: #1c1917;
  --brand-deep: #f6f4ef;
  --brand-mist: #d6d3d1;
  --brand-navy: #57534e;

  /* Whisper shadows in cool neutral. */
  --shadow-card: 0 1px 2px rgba(20, 22, 30, 0.04), 0 8px 24px -20px rgba(20, 22, 30, 0.18);
  --shadow-pop: 0 18px 36px -24px rgba(20, 22, 30, 0.4);
  --toast-success: #346538;
  --toast-error: #b91c1c;
}

[data-theme="dark"] {
  --background: #17181b;
  --foreground: #e8e8ea;
  --card: #202124;
  --card-foreground: #e8e8ea;
  --popover: #202124;
  --popover-foreground: #e8e8ea;
  --primary: #fafaf9;
  --primary-foreground: #17181b;
  --secondary: #26272b;
  --secondary-foreground: #d4d4d8;
  --muted: #232427;
  --muted-foreground: #9b9aa0;
  --accent: #2a2b30;
  --accent-foreground: #d4d4d8;
  --destructive: #f87171;
  --destructive-foreground: #17181b;
  --success: #86efac;
  --warning: #fbbf24;
  --converted: #a5b4fc;
  --border: #33353a;
  --input: #33353a;
  --ring: #a1a1aa;

  --sidebar-bg: #141518;
  --sidebar-active: #2a2b30;
  --banner-bg: #26262a;
  --brand-ink: #f0ece4;
  --brand-deep: #26262a;
  --brand-mist: #5a5b60;
  --brand-navy: #d8d8dc;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -20px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 18px 36px -20px rgba(0, 0, 0, 0.75);
  --toast-success: #86efac;
  --toast-error: #f87171;
}

/* ---------- Indigo Pop ---------- */

[data-palette="indigo-pop"] {
  --background: #eef1ff;
  --foreground: #23233f;
  --card: #ffffff;
  --card-foreground: #23233f;
  --popover: #ffffff;
  --popover-foreground: #23233f;
  --primary: #5b5bd6;
  --primary-foreground: #ffffff;
  --secondary: #eceefc;
  --secondary-foreground: #3c3f66;
  --muted: #eceefc;
  --muted-foreground: #5a5f79;
  --accent: #e3e2fd;
  --accent-foreground: #2f2f7a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --success: #16a34a;
  --warning: #d97706;
  --converted: #4338ca;
  --border: #d9ddf5;
  --input: #cdd2f0;
  --ring: #5b5bd6;
  --sidebar-bg: #e4e8ff;
  --sidebar-active: #ffffff;
  --banner-bg: #e3e2fd;
  --brand-ink: #232360;
  --brand-deep: #f4f4fe;
  --brand-mist: #c7ccf2;
  --brand-navy: #4a4e7a;
  --shadow-card: 0 1px 2px rgba(60, 64, 130, 0.06), 0 8px 24px -20px rgba(60, 64, 130, 0.25);
  --shadow-pop: 0 18px 36px -24px rgba(60, 64, 130, 0.45);
  --toast-success: #16a34a;
  --toast-error: #dc2626;
}

[data-palette="indigo-pop"][data-theme="dark"] {
  --background: #12131f;
  --foreground: #e6e7fb;
  --card: #1a1c2b;
  --card-foreground: #e6e7fb;
  --popover: #1a1c2b;
  --popover-foreground: #e6e7fb;
  --primary: #8b8bf5;
  --primary-foreground: #101123;
  --secondary: #22243a;
  --secondary-foreground: #c9ccf0;
  --muted: #22243a;
  --muted-foreground: #9fa3c7;
  --accent: #2c2f4a;
  --accent-foreground: #c9ccf0;
  --destructive: #f87171;
  --destructive-foreground: #101123;
  --success: #4ade80;
  --warning: #fbbf24;
  --converted: #a5b4fc;
  --border: #2c2f4a;
  --input: #2c2f4a;
  --ring: #8b8bf5;

  --sidebar-bg: #0e1020;
  --sidebar-active: #2c2f4a;
  --banner-bg: #2c2f4a;
  --brand-ink: #dfe2ff;
  --brand-deep: #1c1e30;
  --brand-mist: #4a4d78;
  --brand-navy: #c9ccf0;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -20px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 18px 36px -20px rgba(0, 0, 0, 0.75);
  --toast-success: #4ade80;
  --toast-error: #f87171;
}

/* ---------- Bubblegum ---------- */

[data-palette="bubblegum"] {
  --background: #fff5f7;
  --foreground: #4a1d33;
  --card: #ffffff;
  --card-foreground: #4a1d33;
  --popover: #ffffff;
  --popover-foreground: #4a1d33;
  --primary: #ec4899;
  --primary-foreground: #ffffff;
  --secondary: #fbe9f0;
  --secondary-foreground: #7a3a55;
  --muted: #fbe9f0;
  --muted-foreground: #9d5c78;
  --accent: #fce7f0;
  --accent-foreground: #7a1f4a;
  --destructive: #f43f5e;
  --destructive-foreground: #ffffff;
  --success: #0d9488;
  --warning: #d97706;
  --converted: #2563eb;
  --border: #f9d8e5;
  --input: #f3cadd;
  --ring: #ec4899;
  --sidebar-bg: #ffe4ee;
  --sidebar-active: #ffffff;
  --banner-bg: #fce7f0;
  --brand-ink: #59173d;
  --brand-deep: #fff0f5;
  --brand-mist: #f3bcd4;
  --brand-navy: #8a4463;
  --shadow-card: 0 1px 2px rgba(120, 40, 80, 0.06), 0 8px 24px -20px rgba(120, 40, 80, 0.25);
  --shadow-pop: 0 18px 36px -24px rgba(120, 40, 80, 0.45);
  --toast-success: #0d9488;
  --toast-error: #f43f5e;
}

[data-palette="bubblegum"][data-theme="dark"] {
  --background: #1f1418;
  --foreground: #fbdce9;
  --card: #2a1b21;
  --card-foreground: #fbdce9;
  --popover: #2a1b21;
  --popover-foreground: #fbdce9;
  --primary: #f472b6;
  --primary-foreground: #2a0a18;
  --secondary: #38232c;
  --secondary-foreground: #f3c2d6;
  --muted: #38232c;
  --muted-foreground: #d09ab2;
  --accent: #432230;
  --accent-foreground: #f3c2d6;
  --destructive: #fb7185;
  --destructive-foreground: #2a0a18;
  --success: #2dd4bf;
  --warning: #fbbf24;
  --converted: #93c5fd;
  --border: #45242f;
  --input: #45242f;
  --ring: #f472b6;
  --sidebar-bg: #170f13;
  --sidebar-active: #432230;
  --banner-bg: #432230;
  --brand-ink: #fbdce9;
  --brand-deep: #2c1a22;
  --brand-mist: #5c3242;
  --brand-navy: #f3c2d6;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -20px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 18px 36px -20px rgba(0, 0, 0, 0.75);
  --toast-success: #2dd4bf;
  --toast-error: #fb7185;
}

/* ---------- Sunset Citrus ---------- */

[data-palette="sunset-citrus"] {
  --background: #fdf6ec;
  --foreground: #452a10;
  --card: #fffdf9;
  --card-foreground: #452a10;
  --popover: #fffdf9;
  --popover-foreground: #452a10;
  --primary: #ea580c;
  --primary-foreground: #ffffff;
  --secondary: #fdf0e0;
  --secondary-foreground: #7a4a22;
  --muted: #fdf0e0;
  --muted-foreground: #92603a;
  --accent: #ffedd5;
  --accent-foreground: #8a4210;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --success: #0d9488;
  --warning: #ca8a04;
  --converted: #1d4ed8;
  --border: #f5e3c8;
  --input: #f0dcb8;
  --ring: #ea580c;
  --sidebar-bg: #faedd6;
  --sidebar-active: #fffdf9;
  --banner-bg: #ffedd5;
  --brand-ink: #4e2a0c;
  --brand-deep: #fbf3e4;
  --brand-mist: #eed9b8;
  --brand-navy: #7a5326;
  --shadow-card: 0 1px 2px rgba(120, 72, 20, 0.07), 0 8px 24px -20px rgba(120, 72, 20, 0.3);
  --shadow-pop: 0 18px 36px -24px rgba(120, 72, 20, 0.5);
  --toast-success: #0d9488;
  --toast-error: #dc2626;
}

[data-palette="sunset-citrus"][data-theme="dark"] {
  --background: #1e1712;
  --foreground: #f9e8d4;
  --card: #2a1f16;
  --card-foreground: #f9e8d4;
  --popover: #2a1f16;
  --popover-foreground: #f9e8d4;
  --primary: #fb923c;
  --primary-foreground: #241000;
  --secondary: #322417;
  --secondary-foreground: #e8cfa8;
  --muted: #322417;
  --muted-foreground: #d0a888;
  --accent: #3d2c17;
  --accent-foreground: #f0c896;
  --destructive: #f87171;
  --destructive-foreground: #241000;
  --success: #2dd4bf;
  --warning: #facc15;
  --converted: #93c5fd;
  --border: #43301e;
  --input: #43301e;
  --ring: #fb923c;
  --sidebar-bg: #17110b;
  --sidebar-active: #3d2c17;
  --banner-bg: #3d2c17;
  --brand-ink: #f9e8d4;
  --brand-deep: #291e14;
  --brand-mist: #5c4530;
  --brand-navy: #e8cfa8;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -20px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 18px 36px -20px rgba(0, 0, 0, 0.75);
  --toast-success: #2dd4bf;
  --toast-error: #f87171;
}

/* ---------- Midnight Mint ---------- */

[data-palette="midnight-mint"] {
  --background: #f0fbf8;
  --foreground: #0b3b33;
  --card: #ffffff;
  --card-foreground: #0b3b33;
  --popover: #ffffff;
  --popover-foreground: #0b3b33;
  --primary: #0d9488;
  --primary-foreground: #ffffff;
  --secondary: #e2f6f1;
  --secondary-foreground: #14544a;
  --muted: #e2f6f1;
  --muted-foreground: #3f7a6e;
  --accent: #ccfbef;
  --accent-foreground: #0b544a;
  --destructive: #e11d48;
  --destructive-foreground: #ffffff;
  --success: #65a30d;
  --warning: #d97706;
  --converted: #4f46e5;
  --border: #cdeee6;
  --input: #b8e6db;
  --ring: #0d9488;
  --sidebar-bg: #dcf5ee;
  --sidebar-active: #ffffff;
  --banner-bg: #ccfbef;
  --brand-ink: #0b3b33;
  --brand-deep: #ecfbf7;
  --brand-mist: #a8dfd2;
  --brand-navy: #2c6b5f;
  --shadow-card: 0 1px 2px rgba(10, 80, 66, 0.06), 0 8px 24px -20px rgba(10, 80, 66, 0.28);
  --shadow-pop: 0 18px 36px -24px rgba(10, 80, 66, 0.5);
  --toast-success: #65a30d;
  --toast-error: #e11d48;
}

[data-palette="midnight-mint"][data-theme="dark"] {
  --background: #0d1517;
  --foreground: #d7f0ea;
  --card: #122022;
  --card-foreground: #d7f0ea;
  --popover: #122022;
  --popover-foreground: #d7f0ea;
  --primary: #2dd4bf;
  --primary-foreground: #04201c;
  --secondary: #16282a;
  --secondary-foreground: #a9d9d0;
  --muted: #16282a;
  --muted-foreground: #7fb8ad;
  --accent: #16302f;
  --accent-foreground: #8fe0d4;
  --destructive: #fb7185;
  --destructive-foreground: #04201c;
  --success: #a3e635;
  --warning: #fbbf24;
  --converted: #a5b4fc;
  --border: #1d3a3c;
  --input: #1d3a3c;
  --ring: #2dd4bf;
  --sidebar-bg: #081011;
  --sidebar-active: #16302f;
  --banner-bg: #16302f;
  --brand-ink: #d7f0ea;
  --brand-deep: #102024;
  --brand-mist: #234a48;
  --brand-navy: #a9d9d0;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -20px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 18px 36px -20px rgba(0, 0, 0, 0.75);
  --toast-success: #a3e635;
  --toast-error: #fb7185;
}
