@import "normalize.css";
@import "@blueprintjs/core/lib/css/blueprint.css";
@import "@blueprintjs/icons/lib/css/blueprint-icons.css";

#app {
  height: 100%;
  display: flex;
  align-items: stretch;
  font-size: 16px;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.graph-view {
  flex: 1;
  background-color: #f4f5f6;
  position: relative;
}

.graph-view-vertex {
  /* References: https://stackoverflow.com/questions/5697067/css-for-grabbing-cursors-drag-drop */
  cursor: move;
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
}

.graph-view-vertex:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

.loading-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(4px);
}

.graph-tooltip {
  position: absolute;
  display: none;
  flex-direction: column;
  line-height: 1.5rem;
  background-color: #404854;
  color: #f6f7f9;
  padding: 6px 12px;
}

.graph-legend {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50px;
  left: 50px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  font-size: 14px;
}

.graph-legend-expand {
  width: 450px;
  padding: 16px 24px 16px 16px;
}

.graph-legend-collapse {
  padding: 16px;
  cursor: pointer;
}

.graph-legend-minimize {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  padding: 12px;
}

.graph-legend-help {
  cursor: pointer;
}

.graph-legend-dependency-type {
  border-bottom: 2px dotted;
  cursor: pointer;
  width: 140px;
  display: inline-block;
}

.graph-legend-switch {
  display: inline-block;
  margin-left: 8px;
}

.explain-dialog {
  font-size: 16px;
  line-height: 1.65rem;
  width: 850px;
}

.explain-dialog-body {
  padding-left: 48px;
  padding-right: 48px;
  overflow: auto;
  position: relative;
}

.explain-dialog-next {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.explain-dialog-prev {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.side-panel {
  flex-shrink: 1;
  position: relative;
  overflow: auto;
}

@media screen and (min-width: 1600px) {
  .side-panel {
    width: 600px;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1600px) {
  .side-panel {
    width: 450px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
  .side-panel {
    width: 300px;
  }
}

.side-panel-header {
  padding: 0 16px;
}

.recompiles-dependencies-list {
  list-style-type: none;
  padding-left: 0;
}

.recompiles-dependency-item {
  padding: 8px 16px;
  border-bottom: 1px solid #d8dee4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.recompiles-dependency-item:first-child {
  border-top: 1px solid #d8dee4;
}

.recompiles-dependency-badge {
  background-color: rgba(175, 184, 193, 0.2);
  padding: 0 8px;
  border-radius: 8px;
  font-weight: 600;
  font-variant: tabular-nums;
}

.recompiles-dependency-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.recompiles-dependency-item-collapsible {
  position: relative;
}

.recompiles-dependency-item-collapsible.active {
  margin-top: 12px;
}

.file-name-box {
  padding: 8px 0;
  display: inline-block;
}

.explanation-dependency-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-snippet-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #d8dee4;
  cursor: pointer;
}

.code-snippet pre[class*="language-"] {
  margin: 0px;
}

/* Custom Prismjs style */
.line-highlight {
  background-color: #ffe7a0 !important;
  opacity: 0.3;
}
