/* this CSS contains only the basic CSS needed to run the app and use it */

.lgraphcanvas {
  /*cursor: crosshair;*/
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  outline: none;

}

.lgraphcanvas * {
  box-sizing: border-box;
}

.litegraph.litecontextmenu {
  position: fixed;
  top: 100px;
  left: 100px;
  min-width: 150px;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden ;
  color: #aaf;
  background-color: #32343D !important;
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 1000;
}


.litegraph.litecontextmenu .litemenu-title img {
  margin-top: 2px;
  margin-left: 2px;
  margin-right: 4px;
}

.litegraph.litecontextmenu .litemenu-entry {
  border-bottom: 1px dotted #232323;
  margin: 5px 0;
  padding: 5px 0;
}
.litegraph.litecontextmenu .litemenu-entry.selected_item{
  background: #FFB422 !important;
  color: #32343D;
}
.litegraph.litecontextmenu .litemenu-entry.submenu {
  background-color: #32343D
}


.litegraph .litemenubar ul {
  margin: 0;
  padding: 0;
}

.litegraph .litemenubar li {
  font-size: 14px;
  color: #999;
  display: inline-block;
  min-width: 50px;
  padding-left: 10px;
  padding-right: 10px;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.litegraph .litemenubar li:hover {
  background-color: #777;
  color: #eee;
}

.litegraph .litegraph .litemenubar-panel {
  position: absolute;
  top: 5px;
  left: 5px;
  min-width: 100px;
  background-color: #444;
  box-shadow: 0 0 3px black;
  padding: 4px;
  border-bottom: 2px solid #aaf;
  z-index: 10;
}

.litegraph .litemenu-entry,
.litemenu-title {
  font-size: 12px;
  color: #fff;
  padding: 0 0 0 4px;
  margin: 2px;
  padding-left: 2px;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

.litegraph .litemenu-entry .icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 2px;
  vertical-align: top;
}

.litegraph .litemenu-entry.checked .icon {
  background-color: #aaf;
}

.litegraph .litemenu-entry .more {
  float: right;
  padding-right: 5px;
}

.litegraph .litemenu-entry.disabled {
  opacity: 0.5;
  cursor: default;
}

.litegraph .litemenu-entry.separator {
  display: block;
  border-top: 1px solid #333;
  border-bottom: 1px solid #666;
  width: 100%;
  height: 0px;
  margin: 3px 0 2px 0;
  background-color: transparent;
  padding: 0 !important;
  cursor: default !important;
}

.litegraph .litemenu-entry.has_submenu {
  border-right: 2px solid #1EA7DF;
}

.litegraph .litemenu-title {
  color: #ffffff;
  background-color: #6b6c70;
  border-bottom: 1px solid #222;
  font-weight: bold;
  margin: 0;
  padding: 4px 8px;
  cursor: default;
  position: sticky;
  top: 0;
}

.litegraph .litemenu-entry:hover:not(.disabled):not(.separator) {
  color: #FFB422;
  transition: all 0.2s;
}

.litegraph .litemenu-entry .property_name {
  display: inline-block;
  text-align: left;
  min-width: 80px;
  min-height: 1.2em;
}

.litegraph .litemenu-entry .property_value {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: right;
  min-width: 80px;
  min-height: 1.2em;
  vertical-align: middle;
  padding-right: 10px;
}

.litegraph.litesearchbox {
  display: flex;
  flex-direction: column;
  color: white;
  position: absolute;
  background-color: rgba(50, 52, 61, 0.5);
  padding-top: 4px;
}

.litegraph.litesearchbox input,
.litegraph.litesearchbox select {
  margin-top: 3px;
  min-width: 95%;
  min-height: 1.5em;
  background-color: #32343D;
  border: 0;
  color: white;
  padding-left: 10px;
  margin-right: 5px;
}

.litegraph.litesearchbox .name {
  display: inline-block;
  min-width: 60px;
  min-height: 1.5em;
  padding-left: 10px;

}

.litegraph.litesearchbox .helper {
  overflow-y: auto;
  max-height: 200px;
  padding: 10px;
}

.litegraph.lite-search-item {

  background-color: rgba(50, 52, 61, 0.5);
  color: white;
  padding-top: 2px;
}

.litegraph.lite-search-item.not_in_filter {
  /*background-color: rgba(50, 50, 50, 0.5);*/
  /*color: #999;*/
  color: #B99;
  font-style: italic;
}

.litegraph.lite-search-item.generic_type {
  /*background-color: rgba(50, 50, 50, 0.5);*/
  /*color: #DD9;*/
  color: #999;
  font-style: italic;
}

.litegraph.lite-search-item:hover,
.litegraph.lite-search-item.selected {
  cursor: pointer;
  background-color: white;
  color: black;
}

/* DIALOGs ******/

.dialog {
  height: 100%;
  padding: 1rem;

}

.dialog .dialog-header {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin: 0.5rem 0;
  color: #AAA;
}

.dialog .dialog-title {
  text-transform: capitalize;
  font-weight: bold;
  font-size: 1.25rem;
}

.dialog .dialog-header .close {
  font-size: 1rem;
  cursor: pointer;
}

.dialog .dialog-content div {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
}
.dialog .dialog-content div:first-child {
  margin: 1rem 0;
  padding: 16px 0;
  border-bottom: 1px solid #AAAAAA;
}
.dialog .dialog-content .separator {
  display: none;
}

.dialog-footer .delete {
  background: #BBBEC8;
  border-radius: 4px;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.node_desc {
  text-align: left;
}

.node_type {
  display: none;
}

.dialog-content .property_name {
  padding: 0.25rem 1rem 0.5rem 0.5rem;
}

.dialog-content .property_value {
  background: #BBBEC8;
  color: #545454;
  padding: 0.25rem 1rem 0.5rem 1rem;
  width: 70%;
  height: 2rem;
  cursor: text;
}

/* Subgraph */
.subgraph_dialog {
  display: flex;
  position: absolute;
  top: 30%;
  left: 40%;
  z-index: 1000;
  background-color: #2A2A2A;
  min-width: 400px;
  min-height: 200px;
  box-shadow: 0 0 4px #111;
  border-radius: 6px;
  height: auto;
  flex-direction: column;
  justify-content: space-between;
  margin: auto;
}

.subgraph_property {
  padding: 4px;
}

.subgraph_property:hover {
  background-color: #333;
}

.subgraph_property span.name {
  font-size: 1.3em;
  padding-left: 4px;
}

.subgraph_property span.type {
  opacity: 0.5;
  margin-right: 20px;
  padding-left: 4px;
}

.subgraph_property span.label {
  display: inline-block;
  width: 60px;
  padding: 0px 10px;
}

.subgraph_property input {
  width: 140px;
  color: #999;
  background-color: #1A1A1A;
  border-radius: 4px;
  border: 0;
  margin-right: 10px;
  padding: 4px;
  padding-left: 10px;
}

.subgraph_property button {
  background-color: #1c1c1c;
  color: #aaa;
  border: 0;
  border-radius: 2px;
  padding: 4px 10px;
  cursor: pointer;
}

.subgraph_property.extra {
  display: flex;
  color: #ccc;
  margin-top: 8px;
}

.subgraph_property.extra input {
  background-color: #111;
}

.bullet_icon {
  margin-left: 10px;
  border-radius: 10px;
  width: 12px;
  height: 12px;
  background-color: #666;
  display: inline-block;
  margin-top: 2px;
  margin-right: 4px;
  transition: background-color 0.1s ease 0s;
  -moz-transition: background-color 0.1s ease 0s;
}

.bullet_icon:hover {
  background-color: #698;
  cursor: pointer;
}

/* OLD */

.graphcontextmenu {
  padding: 4px;
  min-width: 100px;
}

.graphcontextmenu-title {
  color: #dde;
  background-color: #222;
  margin: 0;
  padding: 2px;
  cursor: default;
}

.graphmenu-entry {
  box-sizing: border-box;
  margin: 2px;
  padding-left: 20px;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  transition: all linear 0.3s;
}

.graphmenu-entry.event,
.litemenu-entry.event {
  border-left: 8px solid orange;
  padding-left: 12px;
}

.graphmenu-entry.disabled {
  opacity: 0.3;
}

.graphmenu-entry.submenu {
  border-right: 2px solid #eee;
}

.graphmenu-entry:hover {
  background-color: #555;
}

.graphmenu-entry.separator {
  background-color: #111;
  border-bottom: 1px solid #666;
  height: 1px;
  width: calc(100% - 20px);
  -moz-width: calc(100% - 20px);
  -webkit-width: calc(100% - 20px);
}

.graphmenu-entry .property_name {
  display: inline-block;
  text-align: left;
  min-width: 80px;
  min-height: 1.2em;
}

.graphmenu-entry .property_value,
.litemenu-entry .property_value {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: right;
  min-width: 80px;
  min-height: 1.2em;
  vertical-align: middle;
  padding-right: 10px;
}

.graphdialog {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 2em;
  background-color: #32343D;
  font-size: 14px;
  z-index: 1000;
  padding: 0.5rem 0;
}

.graphdialog.rounded {
  border-radius: 12px;
}
.graphdialog .searchbox_header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  color: #FFB422;
  width: 100%;
}
.graphdialog .close_dialog {
  cursor: pointer;
}
.graphdialog .name {
  display: inline-block;
  min-width: 60px;
  min-height: 1.5em;
  padding: 0.5rem 1rem;
}

.graphdialog input,
.graphdialog textarea,
.graphdialog select {
  margin: 3px;
  min-width: 150px;
  min-height: 1.5em;
  background-color: #32343D;
  border: 0;
  color: white;
  padding-left: 10px;
  outline: none;
}

.graphdialog textarea {
  min-height: 150px;
  min-width: 300px;
}

.graphdialog button {
  background-color: #FFB422;
  border: 0;
  color: #333438;
  width: 80%;
  margin: 0.5rem 0;
}

.graphdialog button.rounded,
.graphdialog input.rounded {
  border-radius: 12px;
}

.graphdialog .helper {
  overflow: auto;
  max-height: 200px;
}

.graphdialog .help-item {
  padding-left: 10px;
}

.graphdialog .help-item:hover,
.graphdialog .help-item.selected {
  cursor: pointer;
  background-color: white;
  color: black;
}

.litegraph .dialog {
  min-height: 0;
}

.litegraph .dialog .dialog-content {
  display: block;
}

.litegraph .dialog .dialog-content .subgraph_property {
  padding: 5px;
}

.litegraph .dialog .dialog-footer {
  margin: 0;
}

.litegraph .dialog .dialog-footer .subgraph_property {
  margin-top: 0;
  display: flex;
  align-items: center;
  padding: 5px;
}

.litegraph .dialog .dialog-footer .subgraph_property .name {
  flex: 1;
}

.litegraph .graphdialog {
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 4px 10px;
  position: fixed;
}

.litegraph .graphdialog .name {
  padding: 0;
  min-height: 0;
  font-size: 16px;
  vertical-align: middle;
}

.litegraph .graphdialog .value {
  font-size: 16px;
  min-height: 0;
  margin: 0 10px;
  padding: 2px 5px;
}

.litegraph .graphdialog input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.litegraph .graphdialog button {
  padding: 4px 18px;
  border-radius: 20px;
  cursor: pointer;
}

.multiline-input {
  background: #32343D;
  padding: 2px 8px;
  color: white;
  border: 1px solid #565862;
  border-radius: 6px;
  font-size: 0.75rem;
}
.multiline-input:focus {
  outline: none !important;
  border-color: #1EA7DF;
}
