@import "compass/css3/images";

$DARK_GREY: #3A3A3A;
$DARKER_GREY: #2B2B2B;

@mixin product-font-icon($char-code, $icon-color) {
  @include common-font-icon($char-code);
  &.active, &:hover {
    color: $icon-color
  };
}

.v-sidebar {
  width: 64px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  background-color: $DARK_GREY;
  text-align: center;
  z-index: 1000;

  .gradient {
    @include background-image(linear-gradient(left, $DARK_GREY, $DARKER_GREY));
    width: 15px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
  }

  ul {
    list-style: none;
    &, li {
      margin: 0;
      padding: 0;
    }
    li {
      position: relative;
      margin-top: 20px;
      margin-bottom: 4px;

      .product-icon {
        font-size: $LARGE_ICON_SIZE;
        color: $SECONDARY_FONT_COLOR;
        &.RM {
          @include product-font-icon("\e133", $REPUTATION_INTELLIGENCE_COLOR);
        }
        &.SM {
          @include product-font-icon("\e135", $SOCIAL_MARKETING_COLOR);
        }
        &.MS {
          @include product-font-icon("\e136", $PRESENCE_BUILDER_COLOR);
        }
        &.VBC {
          @include product-font-icon("\e171", $BUSINESS_CENTER_COLOR);
        }
        &.GS {
          @include product-font-icon("\e024", $GLOBAL_SETTINGS_COLOR);
        }
      }

      .sidebar-tooltip {
        @include border-radius($DEFAULT_BORDER_RADIUS);
        position: absolute;
        top: 3px;
        left: 75px;
        background-color: $DARKER_GREY;
        color: $WHITE_FONT_COLOR;
        text-align: left;
        height: 30px;
        line-height: 30px;
        padding: 0px 10px;
        white-space: nowrap;
        z-index: 1000;

        .arrow {
          position: absolute;
          left: -6px;
          top: 9px;
          border-top: 6px solid transparent;
          border-bottom: 6px solid transparent;
          border-right: 6px solid $DARKER_GREY;
        }
      }

      .sidebar-tooltip-hover {
        display: none;
      }

      &:hover {
        .sidebar-tooltip-hover {
          display: block;
        }
      }
    }
  }
}
@media screen and (max-width: 1100px) {
  .sidebar-padding {
    padding-left: 63px;
  }
}
