@import 'scss/styles.scss';

.activity-log-container {
  background-color: $white-2;
  width: 350px;
  border-radius: 3px;
  padding: 5px 6px 12px 6px;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  height: calc(100vh - 100px);

  &::-webkit-scrollbar {
    display: none;
  }

  .title-type-container {
    padding: 4px 4px 4px 6px;

    .title-type {
      color: $black;
      font-size: 16px;
    }

    .title-type-icon-container {
      padding: 4px;
      border-radius: 2px;

      .title-type-icon-text {
        font-size: 14px;
        text-align: center;
        color: $bw6-2;
        padding-left: 4px;
        padding-right: 4px;
      }
    }

    .activity-log-search-btn {
      svg {
        path {
          fill: $grey;
        }
      }
    }

    .activity-log-search-btn:hover {
      background-color: $grey-12;
      border-radius: 2px;
      cursor: pointer;
      svg {
        path {
          fill: $black;
        }
      }
    }

    .activity-log-results {
      font-size: 14px;
      line-height: 18px;
      color: $blue-11;
    }
  }

  .search-container {
    padding: 6px 0 8px 0;
  }

  .activity-log-list-container {
    .activity-log-list {
      margin-top: 5px;
    }
  }
}

// activity log item template

.activity-log-item-container {
  .title-text {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid $bw-9;
    line-height: 0.1em;
    margin: 10px 0 20px;
  }

  .title-text span {
    background: $white-2;
    padding: 0 6px;
    color: $black;
    font-size: 14px;
  }

  .activity-log-item {
    padding: 4px 4px;

    &:hover {
      background-color: $ta-light-grey-5;
      cursor: pointer;
      border-radius: 2px;
    }

    &.activity-hovered {
      padding-top: 5px;
    }

    &.activity-focused {
      background-color: $grey-12;
      cursor: pointer;
      border-radius: 2px;
    }

    .activity-log-item-header {
      padding: 2px 4px 2px 2px;
      position: relative;
      height: 25px;
      margin-bottom: 6px;

      .action-log-title {
        padding: 2px;
        border-radius: 2px;
        position: absolute;
        left: 0;

        .title-type-icon-text {
          font-size: 14px;
          padding: 0 4px;
        }
      }

      .action-log-title-created,
      .action-log-title-requested,
      .action-log-title-added {
        background-color: $ta-blue-16;

        .type-icon {
          svg {
            path {
              fill: $blue-8 !important;
            }
          }
        }

        .title-type-icon-text {
          color: $blue-11;
        }

        &.action-log-title-hovered {
          background-color: $blue-8;

          .type-icon {
            svg {
              path {
                fill: $white-4 !important;
              }
            }
          }

          .title-type-icon-text {
            color: $white-2;
          }
        }
      }

      .action-log-title-edited,
      .action-log-title-deactivated,
      .action-log-title-updated,
      .action-log-title-moved,
      .action-log-title-marked,
      .action-log-title-unmarked,
      .action-log-title-reviewed,
      .action-log-title-archived,
      .action-log-title-unarchived,
      .action-log-title-disconected {
        background-color: $grey-12;

        .type-icon {
          svg {
            path {
              fill: $grey !important;
            }
          }
        }

        .title-type-icon-text {
          color: $black;
        }

        &.action-log-title-hovered {
          background-color: $grey;

          .type-icon {
            svg {
              path {
                fill: $white-4 !important;
              }
            }
          }

          .title-type-icon-text {
            color: $white-2;
          }
        }
      }

      .action-log-title-activated,
      .action-log-title-connected {
        background-color: $green-9;

        .type-icon {
          svg {
            path {
              fill: $green-7 !important;
            }
          }
        }

        .title-type-icon-text {
          color: $green-7;
        }

        &.action-log-title-hovered {
          background-color: $green-7;

          .type-icon {
            svg {
              path {
                fill: $white-4 !important;
              }
            }
          }

          .title-type-icon-text {
            color: $white-2;
          }
        }
      }

      .action-log-title-deleted {
        background-color: $white-8;

        .type-icon {
          svg {
            path {
              fill: $red-9 !important;
            }
          }
        }

        .title-type-icon-text {
          color: $red-9;
        }

        &.action-log-title-hovered {
          background-color: $red-9;

          .type-icon {
            svg {
              path {
                fill: $white-4 !important;
              }
            }
          }

          .title-type-icon-text {
            color: $white-2;
          }
        }
      }

      .activity-log-date {
        color: $bw5;
        font-size: 14px;
      }

      .activity-log-date-container {
        gap: 4px;
        position: absolute;
        right: 0;

        .hovered-user-name {
          font-size: 11px;
          line-height: 14px;
          color: $black;
        }
      }
    }

    .activity-log-item-title-container {
      padding: 0 2px;
      white-space: nowrap;

      .activity-log-item-title {
        color: $black;
        font-size: 14px;
        padding-right: 4px;
        flex-shrink: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .vertical-line {
        width: 1px;
        height: 11px;
        background-color: $grey;
      }

      .activity-log-item-subtitle {
        color: $grey;
        font-size: 14px;
        padding-left: 4px;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }

    .activity-log-item-title-container-focused {
      padding: 0 2px;

      .activity-log-item-title {
        color: $black;
        font-size: 14px;
      }

      .activity-log-item-subtitle {
        color: $grey;
        font-size: 14px;
      }
    }
  }

  .horizontal-line {
    width: 99%;
    height: 1px;
    background-color: $white-3;
  }
}

// no data found template

.no-data-container-box {
  .subtle-illustration-container {
    height: 180px;
    background: linear-gradient(
      180deg,
      #eeeeee 0%,
      rgba(238, 238, 238, 0) 100%
    );
  }

  .no-data-container {
    height: 180px;
    gap: 12px;
    .no-data-title {
      font-size: 26px;
      text-align: center;
      color: $grey;
    }

    .no-data-text {
      font-size: 11px;
      text-align: center;
      line-height: 14px;
      color: $grey;
    }

    .no-data-question {
      font-size: 11px;
      line-height: 14px;
      text-align: center;
      color: $grey;
    }

    .no-data-button {
      height: 32px;
      width: 150px;
      border-radius: 2px;
      padding: 6px;
      cursor: pointer;

      &.button-primary {
        background-color: $blue-11;
      }

      &.button-secondary {
        background-color: $grey-2;
      }

      .button-text {
        font-size: 14px;
        line-height: 20px;
        text-align: center;
        color: $white-2;
      }
    }
  }
}
