/*
 * Copyright (C) 2024 BIRU
 *
 * This file is part of Tenzu.
 *
 * Tenzu is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
 *
 * You can contact BIRU at ask@biru.sh
 *
 */

@use '@angular/material' as mat;

.mdc-snackbar {
  &.mat-mdc-snack-bar-container {
   @apply m-4;
  }
  .mat-mdc-snackbar-surface {
    box-shadow: var(--mat-sys-level3);
    @apply pr-1;
  }
  .mat-mdc-simple-snack-bar {
    @apply items-center;
  }
  .mdc-snackbar__label {
    @apply py-1.5 px-2;
  }
}
@mixin tokens-overrides() {
  @include mat.snack-bar-overrides((
      container-shape: var(--mat-sys-corner-medium)
  ));
  .mdc-snackbar {
    &.snackbar-success {
      @include mat.snack-bar-overrides((
        container-color: var(--mat-sys-tertiary-container),
        supporting-text-color: var(--mat-sys-on-tertiary-container)
      ));
    }
    &.snackbar-info {
      @include mat.snack-bar-overrides((
        container-color: var(--mat-sys-secondary-container),
        supporting-text-color: var(--mat-sys-on-secondary-container)
      ));
    }
    &.snackbar-error {
      @include mat.snack-bar-overrides((
        container-color: var(--mat-sys-error-container),
        supporting-text-color: var(--mat-sys-on-error-container)
      ));
    }
    &.snackbar-warning {
      @include mat.snack-bar-overrides((
        container-color: var(--mat-sys-warning-container),
        supporting-text-color: var(--mat-sys-on-warning-container)
      ));
    }
  }
}
