.main {
  padding: 25px;

  @include breakpoint(tablet) {
    padding: 25px 25px 25px 295px;
  }
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99;
  width: 100%;
  height: 100vh;
  max-width: 270px;
  background-color: $white;
  border-right: 1px solid $smoke-blue;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);

  @include breakpoint(tablet) {
    transform: none;
  }

  &-header {
    padding: 25px;
    border-bottom: 1px solid $background;

    // Temporary - start
    .logo {
      font-weight: 700;
      font-size: 32px;
      color: $text-black;

      &::before {
        content: '';
        display: inline-block;
        width: 40px;
        height: 40px;
        margin-right: 10px;
        border-radius: 50%;
        border: 1px solid $smoke-blue;
        background-image: url('/images/logo.svg');
        background-repeat: no-repeat;
        background-size: 27px;
        background-position: center;
        vertical-align: bottom;
      }
    }
    // Temporary - end

    a {
      color: $blue;
      font-size: 0.75rem;

      & + a {
        display: inline-block;
        margin-left: 51px;

        svg {
          width: 13px;
          height: 13px;
          margin-right: 3px;
          vertical-align: text-top;
        }
      }
    }
  }

  &-navigation {
    padding: 25px;

    h3 {
      margin-bottom: 0.5em;

      &:not(:first-child) {
        margin-top: 2.5em;
      }

      svg {
        max-width: 17px;
        vertical-align: sub;
        display: inline-block;
        margin-right: 6px;
      }
    }

    ul {
      padding-left: 0.8rem;
    }

    li {
      position: relative;

      a:first-child {
        display: flex;
        align-items: center;
        padding: 10px;
        transition: background-color 0.35s;
        border-radius: 40px;

        span {
          margin-left: auto;
        }

        &:hover {
          background-color: $smoke-blue;
        }
      }

      &:hover {

        .add-new {
          opacity: 1;
        }
      }
    }

    .add-new {
      @include vertical-center();
      right: 10px;
      width: 20px;
      height: 20px;
      line-height: 20px;
      text-align: center;
      border-radius: 50%;
      background-color: $blue;
      opacity: 0;
      transition: opacity 0.35s;
      z-index: 999;
      color: $white;

      &:hover {

        &::before {
          opacity: 1;
          transform: translateX(-100%);
        }
      }

      &::before {
        content: attr(data-title);
        opacity: 0;
        position: absolute;
        white-space: nowrap;
        font-size: 0.75rem;
        left: 0;
        padding-right: 10px;
        transform: translateX(-90%);
        transition: all 0.35s;
        color: $blue;
      }

      &-link {
        border: 1px dashed $smoke-blue;

        & + .add-new {
          opacity: 1;
        }

        &:hover {

        }
      }
    }
  }

  &-footer {
    border-top: 1px solid $background;
    padding: 25px;
    margin-top: auto;

    &-user {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
    }

    // Temporary - start
    .avatar {
      flex-basis: 40px;
      height: 40px;
      background-color: $smoke-blue;
      border-radius: 50%;
    }
    // Temporary - end

    .user-data {
      flex-basis: calc(100% - 50px);

      .email {
        font-size: 0.75em;
      }
    }
  }
}

.content {
  width: 100%;
  min-height: calc(100vh - 50px);
  position: relative;
}
