/*******************************************************************************
 * Licensed Materials - Property of IBM
 * (c) Copyright IBM Corporation 2018, 2019. All Rights Reserved.
 * Copyright (c) 2020 Red Hat, Inc.
 *
 * Note to U.S. Government Users Restricted Rights:
 * Use, duplication or disclosure restricted by GSA ADP Schedule
 * Contract with IBM Corp.
 *******************************************************************************/
 @import 'node_modules/carbon-components/scss/globals/scss/_colors';

.node {
  .shape {
    stroke-width: 3px;
    stroke-opacity: 1;
    fill: $color__gray-3;
    cursor: pointer;

    &.disabled {
     stroke: $color__navy-gray-7;
   }
  }

  text {
      text-anchor: middle;
      font-size: .75rem;
      fill: $color__navy-gray-4;
      cursor: default;
  }

  .title {
     font-weight: bold;
  }

  rect {
      fill: $color__white;
      opacity: 0.85;
      pointer-events: none;
  }

  .shadow {
    stroke-width: 2px;
    stroke-opacity: 0;
    stroke: #0062FF;
    fill: none;
    cursor: pointer;

  }

  &:hover .shadow {
    stroke-opacity: 0.4;
  }

  &.selected .shadow {
    stroke-opacity: 1;
    fill: #ECF4FF;
  }

  .pulse {
    &.red {
      fill: #ff8080;
    }
    &.yellow {
      fill: #efc100;
    }
    &.green {
      fill: green;
    }
  }

  .centralCircle {
    stroke-width: 0px;
    stroke-opacity: 0;
    opacity: 1;
    pointer-events: none;
  }

  &:focus, &:focus-within {
    * {
        outline: none;
    }
  }

}

.container {
  stroke: $color__teal-40;
  fill: $color__teal-40;
  border-top: 6px solid $color__teal-40;
}
.daemonset {
  stroke: $color__teal-60;
  fill: $color__teal-60;
  border-top: 6px solid $color__teal-60;
}
.deployment {
  stroke: $color__purple-60;
  fill: $color__purple-60;
  border-top: 6px solid $color__purple-60;
}
.host {
  stroke: $color__blue-30;
  fill: $color__blue-30;
  border-top: 6px solid $color__blue-30;
}
.internet {
  stroke: $color__blue-40;
  fill: $color__blue-40;
  border-top: 6px solid $color__blue-40;
}
.pod {
  stroke: $color__purple-30;
  fill: $color__purple-30;
  border-top: 6px solid $color__purple-30;
}
.service {
  stroke: $color__blue-50;
  fill: $color__blue-50;
  border-top: 6px solid $color__blue-60;
}
.statefulset {
  stroke: $color__green-40;
  fill: $color__green-40;
  border-top: 6px solid $color__green-40;
}

.design {
  stroke: $color__navy-gray-5;
  fill: $color__navy-gray-5;
}

.default {
  stroke: $color__blue-40;
  fill: $color__blue-40;
  border-top: 6px solid $color__blue-40;
}


div.tooltip {
  position: absolute;
  z-index: 10000;
  text-align: left;
  width: auto;
  height: auto;
  max-width: 500px;
  background: white;
  padding: 8px;
  cursor: default;
  font-size: 14px;
  border: 1px solid #DFE3E6;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.1);

  div {
    height: 100%;
    padding:0;
    margin:2px;

    .label {
      font-weight: bold;
      color: $color__blue-90;
    }

    .value {
      color: $color__navy-gray-6;
     }

    .link {
      color: $color__blue-51;
      text-decoration: none;
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

div.tooltip:after {
  top: 100%;
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  margin-left: -5px;
  border-width: 5px;
  border-color: transparent;
  border-top-color: white;
}

