@use "../../scss/globals.scss";

.notifications {
  display: flex;
  flex-direction: column;
  gap: calc(globals.$spacing-unit * 2);
  padding: calc(globals.$spacing-unit * 3);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(globals.$spacing-unit * 2);
  }

  &__filter-tabs {
    display: flex;
    gap: globals.$spacing-unit;
    position: relative;
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  &__tab-wrapper {
    position: relative;
  }

  &__tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: calc(globals.$spacing-unit) calc(globals.$spacing-unit * 2);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color ease 0.2s;
    display: flex;
    align-items: center;
    gap: calc(globals.$spacing-unit * 0.5);

    &:hover {
      color: rgba(255, 255, 255, 0.8);
    }

    &--active {
      color: white;
    }
  }

  &__tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 20px;
  }

  &__tab-underline {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
  }

  &__actions {
    display: flex;
    gap: globals.$spacing-unit;
    justify-content: flex-end;
  }

  &__content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  &__list {
    display: flex;
    flex-direction: column;
    gap: globals.$spacing-unit;
    padding-bottom: calc(globals.$spacing-unit * 3);
  }

  &__empty {
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: globals.$spacing-unit;
  }

  &__empty-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: calc(globals.$spacing-unit * 6);
    color: globals.$body-color;
  }

  &__icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(globals.$spacing-unit * 2);
  }

  &__loading {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }

  &__load-more {
    display: flex;
    justify-content: center;
    padding: calc(globals.$spacing-unit * 2);
    padding-bottom: calc(globals.$spacing-unit * 3);
  }
}
