/* You can add global styles to this file, and also import other style files */
@use '@angular/material' as mat;
@use 'sass:map';

$gm-palette: (
  primary: (
    0: #000000,
    10: #20005e,
    20: #370095,
    25: #4400b2,
    30: #500ec9,
    35: #5c27d5,
    40: #6838e1,
    50: #8256fb,
    60: #9a7aff,
    70: #b49cff,
    80: #cdbdff,
    90: #e8ddff,
    95: #f5eeff,
    98: #fdf7ff,
    99: #fffbff,
    100: #ffffff,
  ),
  secondary: (
    0: #000000,
    10: #1d192b,
    20: #322e41,
    25: #3e394c,
    30: #494458,
    35: #554f64,
    40: #656565,
    50: #7a748a,
    60: #948da5,
    70: #afa8c0,
    80: #b2b2b2,
    90: #e7def8,
    95: #e5e5e5,
    98: #fdf7ff,
    99: #fffbff,
    100: #ffffff,
  ),
  tertiary: (
    0: #000000,
    10: #31111e,
    20: #492533,
    25: #56303e,
    30: #633b49,
    35: #704655,
    40: #7d5261,
    50: #986a7a,
    60: #b48394,
    70: #d19dae,
    80: #eeb8c9,
    90: #ffd9e4,
    95: #ffecf0,
    98: #fff8f8,
    99: #fffbff,
    100: #ffffff,
  ),
  neutral: (
    0: #000000,
    10: #1c1b1e,
    20: #313033,
    25: #3d3b3e,
    30: #48464a,
    35: #545156,
    40: #605d62,
    50: #79767a,
    60: #938f94,
    70: #AEAEAE,
    80: #c9c5ca,
    90: #e6e1e6,
    95: #f4eff4,
    98: #fdf8fd,
    99: #fffbff,
    100: #ffffff,
    4: #0f0e11,
    6: #141316,
    12: #201f23,
    17: #2b292d,
    22: #363438,
    24: #3a383c,
    87: #ddd8dd,
    92: #ece7eb,
    94: #f1ecf1,
    96: #f7f2f7,
  ),
  neutral-variant: (
    0: #000000,
    10: #1d1a22,
    20: #322f38,
    25: #3d3a43,
    30: #48454e,
    35: #54515a,
    40: #605d66,
    50: #79757f,
    60: #938f99,
    70: #aea9b4,
    80: #cac4cf,
    90: #e6e0ec,
    95: #f5eefa,
    98: #F5F5F5,
    99: #fffbff,
    100: #ffffff,
  ),
  error: (
    0: #000000,
    10: #410002,
    20: #690005,
    25: #7e0007,
    30: #93000a,
    35: #a80710,
    40: #ba1a1a,
    50: #de3730,
    60: #ff5449,
    70: #ff897d,
    80: #ffb4ab,
    90: #ffdad6,
    95: #ffedea,
    98: #fff8f7,
    99: #fffbff,
    100: #ffffff,
  ),
);

$gm-collection: (
  secondary: map.get($gm-palette, secondary),
  neutral: map.get($gm-palette, neutral),
  neutral-variant: map.get($gm-palette, neutral-variant),
  error: map.get($gm-palette, error),
);

$gm-primary: map.merge(map.get($gm-palette, primary), $gm-collection);
$gm-tertiary: map.merge(map.get($gm-palette, tertiary), $gm-collection);

@include mat.core();

$gm-theme: mat.define-theme((
    color: (
      primary: $gm-primary,
      tertiary: $gm-tertiary,
    )
  ));

html {
  @include mat.core-theme($gm-theme);
  @include mat.button-theme($gm-theme);
  @include mat.table-theme($gm-theme);
  @include mat.dialog-theme($gm-theme);
  @include mat.divider-theme($gm-theme);
  @include mat.icon-theme($gm-theme);

  @include mat.input-theme($gm-theme);
  @include mat.form-field-theme($gm-theme);
  @include mat.select-theme($gm-theme);
  @include mat.datepicker-theme($gm-theme);
  @include mat.checkbox-theme($gm-theme);
  @include mat.autocomplete-theme($gm-theme);

  @include mat.menu-theme($gm-theme);
  @include mat.chips-theme($gm-theme);
  @include mat.bottom-sheet-theme($gm-theme);
  @include mat.sidenav-theme($gm-theme);

  @include mat.progress-bar-theme($gm-theme);
  @include mat.tooltip-theme($gm-theme);
  @include mat.snack-bar-theme($gm-theme);
  @include mat.slide-toggle-theme($gm-theme);
  @include mat.tabs-theme($gm-theme);
}
