@use '../base/typography' as *;
@use '../layout/spacing' as *;
@use '../abstracts/variables' as *;
@use '../abstracts/tokens' as *;

.mat-button-toggle-group.custom-button-toggle {
  background-color: #f1f2f4;
  border-radius: 999px;
  padding: $spacing-xs;
  display: inline-flex;
  border: 1px solid #f1f2f4;
  .mat-button-toggle {
    border: none;
    border-radius: $br-2xl;
    padding: 0 $spacing-md;
    font-family: $font-main;
    font-size: $font-sizes-body-sm;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
    width: 66px;
  }

  .mat-button-toggle-checked {
    background-color: $bg-purple;
    color: $bg-primary-light;
  }

  .mat-button-toggle:not(.mat-button-toggle-checked):hover {
    background-color: rgba(0, 0, 0, 0.04);
  }

  .mat-button-toggle-button {
    line-height: normal;
    .mat-button-toggle-label-content{
      padding: 0;
    }
  }
}

.mat-button-toggle-group-appearance-standard.custom-button-toggle .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard {
  border-left: none;
}

.mat-button-toggle-appearance-standard.mat-button-toggle-checked.custom-button-toggle {
  background: $bg-purple;
  color: $text-primary-light;
}