@import "../../../themes/themes.style.scss";

mb-topbar-notifications {
  // position: absolute;
  // left: 0;
  z-index: 7000;
  height: 100%;
  display: flex;
  align-items: center;
}

.link {
  border-bottom: none;
  color: var(--neutral2);
  font-size: 1.1rem;
  margin-top: 0px;
  &:hover {
    color: initial;
    text-decoration: underline;
  }
}

.mb-notification-label-category {
  width: 100%;
  font-size: 14px;
  text-align: left;
  padding: 0 15px;
  line-height: 1.2 !important;
  color: var(--primary);
}

.see-more-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-see-more {
  color: #666;
  width: 100%;
  font-size: 14px;
  text-align: center;
  padding: 0 15px;
  line-height: 2.2 !important;
}

.button-see-more:hover {
  color: #666;
  font-weight: bold;
}

.mb[notifications] {
  height: 50px;
  width: 50px;
  text-align: center;
  line-height: 50px;
  font-size: 25px;
  color: #8034ad;
  @include themify(color, color1);
  cursor: pointer;
  position: relative;
  transform-origin: center;
  transition: transform 350ms ease;
  .mb-tn-number, i.bell {
    transition: transform 350ms ease;
  }

  > .mb-tn-number {
    position: absolute;
    top: 5px;
    right: 0;
    line-height: 23px;
    width: 23px;
    height: 23px;
    border-radius: 11.5px;
    background-color: map-get($semantic, error);
    font-size: 12px;
    font-weight: 700;
    color: white;
  }
  .mb-tn-wrapper {
    width: 30rem;
    background: #fff;
    transform: translateY(0);
    pointer-events: none;
    opacity: 0;
    transition: transform 350ms ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1), 0 0 70px rgba(0, 0, 0, 0.25);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    position: relative;
    .notifition-item {
      width: 100%;
      overflow: hidden;
      display: flex;
      padding: 7px 0px;
      &:last-child {
        border: none;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
      }
      &:hover {
        cursor: pointer;
        background: #f5f5f5;
        * {
          cursor: pointer;
        }
        &:nth-child(2) {
          ~ .arrow-up  {
            &:before {
              border-bottom: 14px solid #f5f5f5;
            }
          }
        }
      }
      .notification-icon {
        width: 64px;
      }
      .notification-metadata {
				padding-right: 14px;
				display: flex;
				flex: 1;
				flex-direction: column;
        align-items: flex-start;
        * {
          line-height: normal;
          font-size: 11px;
          color: #666;
        }

				label {
					text-align: left;
					margin: 0;
					color: #666;
					font-weight: 100;
				}
        .notification-time {
					font-size: 10px;
					margin-bottom: 8px;
          line-height: 1;
          i {
            margin-right: 2px;
            font-size: 10px;
          }
        }
        .notification-title {
					font-size: 12px;
					margin-bottom: 4px;
					line-height: 1;
        }
        .notification-body {
          width: 100%;
          font-size: 11px;
          line-height: 1.4;
        }
        .notification-actions {
          display: flex;
          width: 100%;
          justify-content: space-between;
          margin-top: 8px;
          button {
            font-size: 12px;
            line-height: 1.4;
            border-radius: 4px;
            color: #666;
            padding: 5px 8px;
            cursor: pointer;
            outline: none;
            &:hover {
              @include themify(color, color1);
              @include themify(border-color, color1);
            }
          }
        }
      }
    }
    .empty-notification {
      padding: 44px 0;
      svg {
        width: 84px;
        fill: #666;
      }
      label {
        font-size: 14px;
        color: #666;
        padding: 0;
        margin: 0;
      }
    }
    .arrow-up {
      position: absolute;
      left: 0;
      top: 0;
      pointer-events: none;
      &:before {
        pointer-events: none;
        content: "";
        display: inline-block;
        vertical-align: middle;
        width: 0;
        height: 0;
        border-left: 14px solid transparent;
        border-right: 14px solid transparent;
        border-bottom: 14px solid #ffffff;
        margin-top: -68px;
        margin-left: 10px;
      }
    }
    &.open {
      transform: translateY(14px);
      pointer-events: all;
      opacity: 1;
    }
  }

  .progress-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    height: 14px;

    .mbg-progress-bar {
      width: 100%;
      height: 4px;
      background-color: #dedede;
      border-radius: 50px;
      position: relative;
      display:flex;
      &::after {
        content: "";
        position: absolute;
        left:0px;
        height: 100%;
        width: var(--percentage);
        background: var(--contrast);
        border-radius: 50px;
        transition: width 500ms ease;
      }
    }
    label.progress-label {
      font-size: 11px;
      margin-left: 14px !important;
      min-width: 34px;
    }
    .info-import {
      span {
        color: #666;
      }
    }
  }

  .fas.fa-check-circle {
    color: var(--success);
  }

  .fas.fa-times-circle {
    color: var(--error);
  }

  .remove-notification {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-right: 14px;
    }

  .fas.fa-times {
    font-size: 18px;
    color: #666;
  }

  .notification-bottom {
    border-bottom: .5px solid #f5f5f5 !important;
  }

  .label-notification-empty {
    display: block;
    justify-content: center;
    align-items: center;
  }
}
