/*
BSD LICENSE

Copyright(c) 2022 Intel Corporation. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in
    the documentation and/or other materials provided with the
    distribution.
  * Neither the name of Intel Corporation nor the names of its
    contributors may be used to endorse or promote products derived
    from this software without specific prior written permission.
    
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

/* You can add global styles to this file, and also import other style files */

@import "~@angular/material/theming";
$roboto-font-path: "~roboto-fontface/fonts" !default;

@import "~roboto-fontface/css/roboto/sass/roboto-fontface";
$material-design-icons-font-directory-path: "~material-design-icons-iconfont/dist/fonts/";
@import "material-design-icons-iconfont/src/material-design-icons";
@include mat-core();

$int-primary-color: (
  50: #e0edf6,
  100: #b3d2e9,
  200: #80b4da,
  300: #4d95cb,
  400: #267fc0,
  500: #0068b5,
  600: #0060ae,
  700: #0055a5,
  800: #004b9d,
  900: #003a8d,
  A100: #b9d0ff,
  A200: #86aeff,
  A400: #538cff,
  A700: #3a7aff,
  contrast: (
    50: #000000,
    100: #000000,
    200: #000000,
    300: #000000,
    400: #ffffff,
    500: #ffffff,
    600: #ffffff,
    700: #ffffff,
    800: #ffffff,
    900: #ffffff,
    A100: #000000,
    A200: #000000,
    A400: #000000,
    A700: #ffffff,
  ),
);

$intel-primary: mat-palette($int-primary-color);
$intel-accent: mat-palette($mat-pink, 500, 900, A100);
$intel-warn: mat-palette($mat-deep-orange);
$intel-theme: mat-light-theme($intel-primary, $intel-accent, $intel-warn);

@include angular-material-theme($intel-theme);

:root {
    --cbm-disabled-bg: rgb(0, 0, 0, 0.07);
}

html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Roboto, "Helvetica Neue", sans-serif;
}

.mat-card-title {
  font-size: 18px;
}

.snackError {
  min-width: 15rem;
  background: #f44336;
  color: #ffffff;
}

.snackSuccess {
  min-width: 15rem;
  background: green;
  color: #ffffff;
}

.mat-snack-bar-container {
  margin: 100px 24px 24px !important;
}

.mat-button-toggle-checked {
  background-color: mat-color($intel-primary);

  .mat-button-toggle-label-content {
    color: #ffffff;
  }
}

.mat-slider-thumb-label {
  transform: rotate(45deg) !important;
  border-radius: 50% 50% 0 !important;
}

.mat-slider-thumb {
  transform: scale(0) !important;
}

.mat-slider-thumb-label-text {
  opacity: 1 !important;
}

.mat-tab-label-active {
  opacity: 1 !important;
}
