@import './scrollbar';

#items-column {
  background-color: var(--items-column-background-color);
  border-left: 1px solid var(--items-column-border-left-color);
  border-right: 1px solid var(--items-column-border-right-color);
  font-size: var(--sn-stylekit-font-size-h2);
  user-select: none;

  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;

  .empty-items-list {
    flex-grow: 1;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--sn-stylekit-font-size-h3);
  }

  .content {
    display: flex;
    flex-direction: column;
  }

  #items-title-bar-container {
    padding: 0.8125rem;
  }

  #items-title-bar {
    font-weight: normal;
    overflow: visible;

    .section-title-bar-header .title {
      width: calc(90% - 45px);
    }

    p {
      font-size: var(--sn-stylekit-font-size-p);
    }
  }

  #items-menu-bar {
    position: relative;
  }

  #notes-options-menu {
    margin-left: 10px;
  }

  .filter-section {
    clear: left;
    max-height: 80px;
    margin-top: 10px;
    position: relative;
    display: flex;
    flex-direction: column;

    .filter-bar {
      background-color: var(--items-column-search-background-color);
      border-radius: var(--sn-stylekit-general-border-radius);
      height: 100%;
      color: #909090;
      text-align: center;
      font-weight: normal;
      font-size: var(--sn-stylekit-font-size-h3);

      border-style: solid;
      border-color: transparent;
      width: 100%;
      position: relative;
      height: 28px;
    }

    .search-options {
      margin-top: 10px;

      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;

      font-size: var(--sn-stylekit-font-size-p);
      white-space: nowrap;

      overflow-x: auto;
    }

    #search-clear-button {
      padding: 0;
      border: none;
      border-radius: 50%;
      width: 17px;
      height: 17px;
      cursor: default;
      background-color: var(--sn-stylekit-neutral-color);
      color: var(--sn-stylekit-neutral-contrast-color);
      font-size: 10px;
      line-height: 17px;
      text-align: center;
      position: absolute;
      top: 20%;
      transform: translateY(-50%);
      right: 10px;
      cursor: pointer;

      transition: background-color 0.15s linear;

      &:hover {
        background-color: var(--sn-stylekit-info-color);
      }
    }
  }

  .infinite-scroll {
    @include minimal_scrollbar();
    height: inherit;
    background-color: var(--items-column-items-background-color);
  }

  .content-list-item {
    &.selected, &:hover {
      background-color: var(--item-cell-selected-background-color);
    }

    progress {
      background-color: var(--note-preview-progress-background-color);
      color: var(--note-preview-progress-color);
      border: none;

      &::-webkit-progress-bar {
        background-color: var(--note-preview-progress-background-color);
      }

      &::-webkit-progress-value {
        background-color: var(--note-preview-progress-color);
      }

      &::-moz-progress-bar {
        background-color: var(--note-preview-progress-color);
      }
    }

    &.selected {
      background-color: var(--item-cell-selected-background-color);
      border-left: 2px solid var(--item-cell-selected-border-left-color);

      progress {
        background-color: var(--note-preview-selected-progress-background-color);
        color: var(--note-preview-selected-progress-color);

        &::-webkit-progress-bar {
          background-color: var(--note-preview-selected-progress-background-color);
        }

        &::-webkit-progress-value {
          background-color: var(--note-preview-progress-color);
        }

        &::-moz-progress-bar {
          background-color: var(--note-preview-progress-color);
        }
      }
    }
  }
}
