/* Fluent 2 design tokens for License-q (#14048).
   ==========================================================================================

   The Microsoft Fluent 2 token set this admin is styled with, as CSS custom properties under Fluent's
   own names (--colorNeutralBackground1, --borderRadiusMedium, --spacingHorizontalM, --shadow4 ...), so
   any value can be checked against the Fluent documentation or the @fluentui/tokens package by name.
   Only what this app uses is here.

   Light and dark live in ONE declaration per token via light-dark(), so the two themes cannot drift
   apart; which half applies follows the used color-scheme, set in app.css and by theme.js.

   The brand ramp replaces Fluent's default blue with the Opti-Q purple. It was generated, not picked:
   the OKLCH hue of #662483 is held, each step's lightness is solved so its relative luminance equals
   the same step of Fluent's own brandWeb ramp, and chroma rises to the key's and tapers to white. So
   every contrast ratio Fluent designed its step choices around holds for the purple too. The key
   colour lands on step 50 and is pinned there verbatim.

   Deliberate deviations from Fluent's own theme, each because the Fluent value measured below WCAG AA
   (4.5:1) on a surface this app actually draws text on -- see FluentTokensTests, which recomputes them:
   - light brand backgrounds use step 50 (the exact Opti-Q purple, 9.8:1 with white) instead of 80;
   - dark links use brand110, not brand100 (4.50:1 on a hovered grid row; brand110 is 5.2:1);
   - dark danger text is Fluent's red tint30 #e37d80 (Fluent's #dc626d is 4.2:1 on #292929);
   - the app's own row hover in dark is #333333, not Background1Hover #3d3d3d (see app.css). */

:root {
    /* --- Brand ramp (Opti-Q purple, key colour at step 50) ------------------------------------ */
    --oq-brand-10:  #250831;
    --oq-brand-20:  #350f46;
    --oq-brand-30:  #441559;
    --oq-brand-40:  #561d6f;
    --oq-brand-50:  #662483;
    --oq-brand-60:  #753493;
    --oq-brand-70:  #80409f;
    --oq-brand-80:  #8f4faf;
    --oq-brand-90:  #a46ebf;
    --oq-brand-100: #b58acc;
    --oq-brand-110: #be99d3;
    --oq-brand-120: #c7a6d9;
    --oq-brand-130: #d3b9e1;
    --oq-brand-140: #dfccea;
    --oq-brand-150: #eaddf1;
    --oq-brand-160: #f6f0f9;

    /* --- Brand aliases (light step / dark step) ------------------------------------------------ */
    --colorBrandBackground:            light-dark(var(--oq-brand-50),  var(--oq-brand-70));
    --colorBrandBackgroundHover:       light-dark(var(--oq-brand-40),  var(--oq-brand-80));
    --colorBrandBackgroundPressed:     light-dark(var(--oq-brand-20),  var(--oq-brand-40));
    --colorBrandBackgroundSelected:    light-dark(var(--oq-brand-40),  var(--oq-brand-60));
    --colorBrandBackground2:           light-dark(var(--oq-brand-160), var(--oq-brand-20));
    --colorBrandForeground1:           light-dark(var(--oq-brand-50),  var(--oq-brand-100));
    --colorBrandForeground2:           light-dark(var(--oq-brand-40),  var(--oq-brand-110));
    --colorBrandForegroundLink:        light-dark(var(--oq-brand-50),  var(--oq-brand-110));
    --colorBrandForegroundLinkHover:   light-dark(var(--oq-brand-40),  var(--oq-brand-120));
    --colorBrandStroke1:               light-dark(var(--oq-brand-50),  var(--oq-brand-100));
    --colorBrandStroke2:               light-dark(var(--oq-brand-140), var(--oq-brand-50));
    --colorCompoundBrandBackground:    light-dark(var(--oq-brand-50),  var(--oq-brand-100));
    --colorCompoundBrandBackgroundHover: light-dark(var(--oq-brand-40), var(--oq-brand-110));
    --colorCompoundBrandStroke:        light-dark(var(--oq-brand-50),  var(--oq-brand-100));
    --colorCompoundBrandForeground1:   light-dark(var(--oq-brand-50),  var(--oq-brand-100));
    --colorNeutralForegroundOnBrand:   #ffffff;

    /* --- Neutrals ------------------------------------------------------------------------------ */
    --colorNeutralForeground1:         light-dark(#242424, #ffffff);
    --colorNeutralForeground2:         light-dark(#424242, #d6d6d6);
    --colorNeutralForeground3:         light-dark(#616161, #adadad);
    --colorNeutralForeground4:         light-dark(#707070, #999999);
    --colorNeutralForegroundDisabled:  light-dark(#bdbdbd, #5c5c5c);
    --colorNeutralForegroundInverted:  light-dark(#ffffff, #242424);

    --colorNeutralBackground1:         light-dark(#ffffff, #292929);
    --colorNeutralBackground1Hover:    light-dark(#f5f5f5, #3d3d3d);
    --colorNeutralBackground1Pressed:  light-dark(#e0e0e0, #1f1f1f);
    --colorNeutralBackground1Selected: light-dark(#ebebeb, #383838);
    --colorNeutralBackground2:         light-dark(#fafafa, #1f1f1f);
    --colorNeutralBackground3:         light-dark(#f5f5f5, #141414);
    --colorNeutralBackground4:         light-dark(#f0f0f0, #0a0a0a);
    --colorNeutralBackground5:         light-dark(#ebebeb, #000000);
    --colorNeutralBackground6:         light-dark(#e6e6e6, #333333);
    --colorNeutralBackgroundDisabled:  light-dark(#f0f0f0, #141414);

    --colorSubtleBackground:           transparent;
    --colorSubtleBackgroundHover:      light-dark(#f5f5f5, #383838);
    --colorSubtleBackgroundPressed:    light-dark(#e0e0e0, #2e2e2e);
    --colorSubtleBackgroundSelected:   light-dark(#ebebeb, #333333);

    --colorNeutralStroke1:             light-dark(#d1d1d1, #666666);
    --colorNeutralStroke1Hover:        light-dark(#c7c7c7, #757575);
    --colorNeutralStroke1Pressed:      light-dark(#b3b3b3, #6b6b6b);
    --colorNeutralStroke2:             light-dark(#e0e0e0, #525252);
    --colorNeutralStroke3:             light-dark(#f0f0f0, #3d3d3d);
    --colorNeutralStrokeAccessible:    light-dark(#616161, #adadad);
    --colorNeutralStrokeAccessibleHover: light-dark(#575757, #bdbdbd);
    --colorNeutralStrokeDisabled:      light-dark(#e0e0e0, #424242);
    --colorStrokeFocus1:               light-dark(#ffffff, #000000);
    --colorStrokeFocus2:               light-dark(#000000, #ffffff);

    --colorNeutralShadowAmbient:       light-dark(rgba(0, 0, 0, .12), rgba(0, 0, 0, .24));
    --colorNeutralShadowKey:           light-dark(rgba(0, 0, 0, .14), rgba(0, 0, 0, .28));
    --colorBackgroundOverlay:          light-dark(rgba(0, 0, 0, .4), rgba(0, 0, 0, .5));

    /* --- Status -------------------------------------------------------------------------------- */
    --colorStatusDangerBackground1:    light-dark(#fdf3f4, #3b0509);
    --colorStatusDangerBackground3:    #c50f1f;
    --colorStatusDangerBackground3Hover: light-dark(#b10e1c, #b10e1c);
    --colorStatusDangerForeground1:    light-dark(#b10e1c, #e37d80);
    --colorStatusDangerBorder1:        light-dark(#eeacb2, #c50f1f);
    --colorPaletteRedBorder2:          light-dark(#c50f1f, #dc626d);

    --colorStatusSuccessBackground1:   light-dark(#f1faf1, #052505);
    --colorStatusSuccessBackground3:   #107c10;
    --colorStatusSuccessForeground1:   light-dark(#0e700e, #54b054);
    --colorStatusSuccessBorder1:       light-dark(#9fd89f, #107c10);

    --colorStatusWarningBackground1:   light-dark(#fff9f5, #4a1e04);
    --colorStatusWarningBackground2:   light-dark(#fdcfb4, #8a3707);
    --colorStatusWarningBackground3:   #f7630c;
    --colorStatusWarningForeground1:   light-dark(#bc4b09, #faa06b);
    --colorStatusWarningForeground2:   light-dark(#8a3707, #fdcfb4);
    --colorStatusWarningBorder1:       light-dark(#fdcfb4, #f7630c);

    /* --- Shape --------------------------------------------------------------------------------- */
    --borderRadiusNone:     0;
    --borderRadiusSmall:    2px;
    --borderRadiusMedium:   4px;
    --borderRadiusLarge:    6px;
    --borderRadiusXLarge:   8px;
    --borderRadiusCircular: 10000px;

    --strokeWidthThin:     1px;
    --strokeWidthThick:    2px;
    --strokeWidthThicker:  3px;
    --strokeWidthThickest: 4px;

    /* --- Elevation: Fluent's shadows, composed from the two themed shadow colours ----------------- */
    --shadow2:  0 0 2px var(--colorNeutralShadowAmbient), 0 1px 2px var(--colorNeutralShadowKey);
    --shadow4:  0 0 2px var(--colorNeutralShadowAmbient), 0 2px 4px var(--colorNeutralShadowKey);
    --shadow8:  0 0 2px var(--colorNeutralShadowAmbient), 0 4px 8px var(--colorNeutralShadowKey);
    --shadow16: 0 0 2px var(--colorNeutralShadowAmbient), 0 8px 16px var(--colorNeutralShadowKey);
    --shadow28: 0 0 8px var(--colorNeutralShadowAmbient), 0 14px 28px var(--colorNeutralShadowKey);
    --shadow64: 0 0 8px var(--colorNeutralShadowAmbient), 0 32px 64px var(--colorNeutralShadowKey);

    /* --- Spacing (4px grid) -------------------------------------------------------------------- */
    --spacingHorizontalXXS:   2px;  --spacingVerticalXXS:   2px;
    --spacingHorizontalXS:    4px;  --spacingVerticalXS:    4px;
    --spacingHorizontalSNudge: 6px; --spacingVerticalSNudge: 6px;
    --spacingHorizontalS:     8px;  --spacingVerticalS:     8px;
    --spacingHorizontalMNudge: 10px; --spacingVerticalMNudge: 10px;
    --spacingHorizontalM:     12px; --spacingVerticalM:     12px;
    --spacingHorizontalL:     16px; --spacingVerticalL:     16px;
    --spacingHorizontalXL:    20px; --spacingVerticalXL:    20px;
    --spacingHorizontalXXL:   24px; --spacingVerticalXXL:   24px;
    --spacingHorizontalXXXL:  32px; --spacingVerticalXXXL:  32px;

    /* --- Type ---------------------------------------------------------------------------------- */
    /* Fluent's own stack: Segoe UI on Windows, the platform UI font elsewhere. Nothing is downloaded. */
    --fontFamilyBase: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    --fontFamilyMonospace: Consolas, 'Courier New', Courier, monospace;

    --fontSizeBase100: 10px;  --lineHeightBase100: 14px;   /* caption2 */
    --fontSizeBase200: 12px;  --lineHeightBase200: 16px;   /* caption1 */
    --fontSizeBase300: 14px;  --lineHeightBase300: 20px;   /* body1 */
    --fontSizeBase400: 16px;  --lineHeightBase400: 22px;   /* body2, subtitle2 */
    --fontSizeBase500: 20px;  --lineHeightBase500: 28px;   /* subtitle1 */
    --fontSizeBase600: 24px;  --lineHeightBase600: 32px;   /* title3 */
    --fontSizeHero700: 28px;  --lineHeightHero700: 36px;   /* title2 */
    --fontSizeHero800: 32px;  --lineHeightHero800: 40px;   /* title1 */

    --fontWeightRegular:  400;
    --fontWeightMedium:   500;
    --fontWeightSemibold: 600;
    --fontWeightBold:     700;

    /* --- Motion -------------------------------------------------------------------------------- */
    --durationUltraFast: 50ms;
    --durationFaster:    100ms;
    --durationFast:      150ms;
    --durationNormal:    200ms;
    --durationGentle:    250ms;
    --durationSlow:      300ms;
    --durationSlower:    400ms;
    --durationUltraSlow: 500ms;
    --curveDecelerateMid: cubic-bezier(0, 0, 0, 1);
    --curveAccelerateMid: cubic-bezier(1, 0, 1, 1);
    --curveEasyEase:      cubic-bezier(.33, 0, .67, 1);
}
