// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

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

body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
    "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #1e1e1e;
  user-select: none;
}

.lm_drag_handle {
  top: -3px !important;
  height: 9px !important;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background-color: $scrollbarColor;
  outline: 1px solid black;
}
::-webkit-scrollbar-corner {
  background: #1e1e1e;
}
::-webkit-scrollbar-thumb:horizontal:hover,
::-webkit-scrollbar-thumb:vertical:hover {
  background-color: $scrollbarColor;
}
::-webkit-scrollbar-thumb:horizontal:active,
::-webkit-scrollbar-thumb:vertical:active {
  background-color: $scrollbarColor;
}

::placeholder {
  color: grey !important;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: grey !important;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: grey !important;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

html,
body {
  /* reset default inner and outer space to avoid oversizing */
  margin: 0;
  padding: 0;
}

.main-grid {
  display: grid;
  grid-gap: 0px;
  grid-template-rows: 48px auto;
  font-size: 12px;
  height: 100vh;
  overflow: hidden;
}

.header {
  grid-row: 1;
  background-color: #3c3c41;
  padding: 2px;
  color: white;
  padding: 0 8px 0 16px;
  align-items: center;
  display: flex;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;

  .top-bar-title {
    vertical-align: top;
    padding-left: 16px;
    font-size: 15px;
    display: inline;
    font-weight: normal;
  }
}

.toolbar {
  grid-row: 2;
  background-color: #1e1e1e;
  padding-top: 2px;
  padding-bottom: 2px;
  color: white;
}

.work-area {
  position: relative;
  height: calc(100vh - 52px);
  color: white;
  width: 100vw;
}

.json-markup-string {
  color: lightgreen;
}
.json-markup-number {
  color: darkorange;
}
.json-markup-bool {
  color: lightblue;
}
.json-markup-null {
  color: magenta;
}
.json-markup-key {
  color: orange;
}

.ms-Dropdown-title {
  background: $inputColor;
  border: 1px solid $inputOutlineColor;
  border-radius: 0;
  color: $textColorLight1;
  font-size: 14px;
}

.ms-Dropdown-item {
  background: $inputColor;
  border-radius: 0;
  color: $textColorLight1;
  font-size: 14px;
}

.featured-dropdown {
  .ms-Dropdown-title {
    background: $buttonColor;
    border-radius: 0;
    color: $textColorLight1;
    font-size: 14px;
    border: none;
    text-align: center;
  }

  .ms-Dropdown-item {
    background: $inputColor;
    border-radius: 0;
    color: $textColorLight1;
    font-size: 14px;
  }
}

.error-page {
  color: $textColorLight1;
  font-size: 18px;
  font-family: $fontFamilyMain;
  padding: 30px;
}

.configuration-input {
  font-size: 12px;
  font-weight: 200;
  margin-bottom: 10px;
  font-family: $fontFamilyMain;
  color: $textColorLight2;
  label {
    color: $textColorLight2;
    font-weight: 400;
  }
  .ms-Toggle-background {
    border-color: transparent;
    background: $backgroundColor3;
    .ms-Toggle-thumb {
      background: white;
    }
  }
  &.is-checked {
    .ms-Toggle-background {
      background: $buttonColor;
    }
    .ms-Toggle-thumb {
      background: var(--toggle-knob-active);
    }
  }
}

:not(pre) > code[class*="language-"], pre[class*="language-"] {
  background: transparent;
  text-shadow: none;
}

code[class*="language-"], pre[class*="language-"] {
  text-shadow: none;
  user-select: text;
}

.cytoscape-navigator{
	position: fixed;
	border: 1px solid #000;
	background: #fff;
	z-index: 99999;
	width: 400px;
	height: 400px;
	bottom: 0;
	right: 0;
	overflow: hidden;
}

.cytoscape-navigator > img{
	max-width: 100%;
	max-height: 100%;
}

.cytoscape-navigator > canvas{
	position: absolute;
	top: 0;
	left: 0;
	z-index: 101;
}

.cytoscape-navigatorView{
	position: absolute;
	top: 0;
  left: 0;
  cursor: move;
	background: #B7E1ED;
	-moz-opacity: 0.50;
	opacity: 0.50;
	z-index: 102;
}

.cytoscape-navigatorOverlay{
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
  z-index: 103;
}

.language-js {

  *::selection {
    background:rgba(255,255,255, 0.25) !important;
  }

  .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string {
    background: transparent;
  }

  .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted {
    color: orange;
  }

  .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted {
    color: lightgreen;
  }

}

#cy-popper {
  background-color: $backgroundColor2;
  box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  color: white;
  border: 1px solid $backgroundColor4;
  div {
    padding: 8px;
    border-bottom: 1px solid rgb(78, 76, 82);
    &:last-child {
      border-bottom: none;
    }
  }
  >div {
    p {
      &:last-child {
        margin-bottom: 0;
      }
    }
  }
  h4, p, ul {
    margin: 0;
    padding: 0;
  }
  h4 {
    color: $textColorLight2;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
  }
  p {
    color: $textColorLight1;
    margin-bottom: 10px;
    font-size: 14px;
  }
  ul {
    list-style: none;
    max-height: 50px;
    overflow: auto;

    li {
      padding: 2px 8px 2px 4px;
      font-size: 13px;
    }
  }
}
.top-area{
  background-color: var(--background-color5);
  position: relative;
}
.query-explorer-header{
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0px;
}

.draggable {
  width: 3px;
  background-color: $backgroundColor2;
  transition: background-color 200ms ease;

  &:hover {
    cursor: col-resize;
    background-color: #3f3f3f;
  }
  &.horizontal {
    width: 100%;
    height: 3px;
    &:hover {
      cursor: row-resize;
    }
  }
}
.full-height {
  height: 100%;
}
.tab-pivot {
  div[role=tablist] {
    background-color: $backgroundColor4;
    >div {
      height: 100%;
    }
  }
  .ms-Pivot-link {
    height: 36px;
    font-size: 12px;
    &.is-selected{
      font-weight: bolder;
    }
  }
  &.output-console {
    div[role=tabpanel]{
      height: 100%;
    }
    div[role=tabpanel] > div {
      height: 100%;
    }
  }
}
.tab-pivot-panel {
  height: calc(100% - 35px);
  background-color: $backgroundColor5;
  >div {
    height: 100%;
    &.hidden {
      visibility: hidden;
      height: 0;
    }
  }
}
.tab-button {
  &::before {
    display: none;
  }
}
.relative {}

.bottom-area-content {
  display: flex;
  height: calc(100% - 3px);
  >div {
    flex: 1;
    height: 100%;
    &:first-child {
      margin-right: 5px;
    }
    .tab-pivot {
      height: 100%;
    }
  }
}

.ms-TextField-fieldGroup {
  &::after {
    border: 2px solid $outlineFocusColor !important;
  }
  input {
    &::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
      color: $inputPlaceholderColor !important;
      opacity: 1; /* Firefox */
    }
  }
}

.ms-CommandBarItem-link {
  &:hover {
    .ms-Button-icon {
      color: $textColorLight1;
    }
  }
}

.light-command-bar {
  .ms-CommandBarItem-link {
    .ms-Button-icon {
      color: white;
      
    }
    &.is-disabled {
      .ms-Button-icon {
        color: rgb(89, 89, 89);
      }
    }
    &:hover {
      .ms-Button-icon {
        color: white;
      }
    }
  }
}

.mvg-filter, .gv-filter {
  i {
    background-color: $buttonColor;
  }
}

.custom-svg-icon {
  path {
    fill: $darkFabricPrimary;
  }
  &:hover {
    path {
      fill: $textColorLight1;
    }
  }
}

.close-content-tab {
  font-size: 10px;
  margin-left: 8px;
  color: $textColorLight2;
}