@import "../../theme.scss";

#settings-page .sidebar-navigation {
  header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 2rem;

    h1,
    h2 {
      margin: 0;
      line-height: normal !important;
    }

    h1 {
      font-size: 2rem;
      color: inherit;
    }

    h2 {
      font-size: 1.4rem;
      color: $secondary;
    }
  }

  li.sidebar-menu-item {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    color: $text-primary;

    .navItem-disabled {
      color: $text-disabled;
      pointer-events: none;
    }

    p {
      margin: 0 !important;
      color: inherit;
    }

    svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }

    a {
      display: flex;
      align-items: center;
      gap: 12px;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      font-size: 0.85rem;
      font-weight: 500;
      padding: 0.75rem 0.75rem;

      &.active {
        background: rgba(174, 174, 174, 0.11);
        position: relative;
        font-weight: 600;
        color: $secondary;

        &::before {
          content: "";
          position: absolute;
          right: 100%;
          height: 50%;
          width: 3px;
          border-radius: $border-radius;
          background-color: $secondary;
          margin-right: 2px;
        }
      }

      &:hover {
        background: rgba(174, 174, 174, 0.16);
      }

      &:focus {
        box-shadow:
          0 0 0 1px #5a7af955,
          0 0 1px 1px rgba(90, 122, 249, 0.6) !important;
      }
    }
  }

  &.sidebar-navigation-mobile {
    display: flex;
    justify-content: space-between;
    background-color: white;
    margin-bottom: 1rem;
    padding: 32px;
    border-radius: 8px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    min-width: 450px;

    .menu-icon {
      all: unset;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;

      svg {
        height: 28px;
        width: 28px;
        transform: scale(1);
        transition: transform 0.3s ease;
        fill: currentColor;

        &:hover {
          transform: scale(1.1);
        }
      }
    }

    header {
      margin-bottom: unset;
      flex-direction: row;
      align-items: center;

      span {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        border: 1px solid black;
        background-color: black;
        display: inline-block;
        margin-inline: 6px;
        transform: translateY(2px);
      }

      h1 {
        font-size: 1.4rem;
      }
    }

    .menu-list-container {
      display: none;
      position: absolute;
      top: 0;
      left: 0;
      transform: translateY(84px);
      width: 100%;
      background-color: white;
      padding: 8px 32px 32px;
      box-shadow:
        rgba(0, 0, 0, 0.01) 0px 8px 4px -1px,
        rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
      border-bottom-right-radius: 8px;
      border-bottom-left-radius: 8px;
      z-index: 999;

      html[dir="rtl"] & {
        left: unset;
        right: 0;
      }

      ul {
        margin: 0;
      }

      &.show-container {
        display: block;
      }
    }
  }
}
