@use 'src/styles/abstracts' as *;

.ExperimentNavigationPopover {
  height: 20rem;
  width: 28rem;
  &__contentContainer {
    height: calc(100% - 2.25rem);
    display: flex;
    &__experimentsListContainer {
      background: $white;
      width: 100%;
      height: 100%;
      position: relative;
      padding: $space-xxs $space-xs 0 $space-xs;
      &::before {
        content: '';
        position: absolute;
        background: linear-gradient(
          180deg,
          rgba(248, 250, 253, 0) 0%,
          #f8fafd 75.52%
        );
        height: $space-xs;
        width: 100%;
        bottom: 0;
        left: 0;
        z-index: 1;
      }
      &__experimentList {
        overflow-y: auto;
        height: 100%;
        .experimentBox {
          position: relative;
          width: 100%;
          text-decoration: none;
          height: auto;
          padding: $space-xs;
          display: flex;
          align-items: flex-start;
          cursor: pointer;
          text-decoration: unset;
          margin-bottom: $space-xxxxs;
          position: relative;
          flex-direction: column;
          border-radius: 0.25rem;

          &:hover {
            background: $cuddle-20;
          }
          &__experimentName {
            width: 100%;
            word-break: break-all;
            margin-bottom: 0.375rem;
            @include monospaceFontFamily();
          }
          &__date {
            display: flex;
            align-items: center;
            @include monospaceFontFamily(14);
            i {
              margin-right: $space-xxs;
            }
          }
          &.selected {
            background: $primary-color-10;
            &:hover {
              border-radius: 0.3125rem 0 0 0.3125rem;
            }
          }
          &:last-child {
            margin-bottom: 0;
          }
        }
      }
    }
  }
  &__headerContainer {
    background: $primary-color-5;
    width: 100%;
    height: 2.25rem;
    display: flex;
    border-bottom: $border-main;
    i {
      transform: rotate(90deg);
      align-items: center;
      display: flex;
    }
    &__titleContainer {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      &:first-child {
        border-right: $border-main;
      }
    }
  }

  &__loaderContainer {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .MuiPaper-root {
    width: 37.5rem;
    background: $white;
    border: $border-main;
    box-sizing: border-box;
    box-shadow: 0 0.25rem 0.375rem rgba(144, 175, 218, 0.2);
    border-radius: 0.3125rem 0.3125rem 0 0;
    height: 20rem;
  }
}
