/*
This program has been developed by students from the bachelor Computer Science at Utrecht
University within the Software Project course.
© Copyright Utrecht University (Department of Information and Computing Sciences)
*/
/* editor UI */

.inner-editor-container {
    box-sizing: border-box;
    margin: 1rem;
    width: calc(100% - 2rem);
    height: 100%;
}

.dnd-panel {
    margin-inline-start: auto;
    margin-inline-end: auto;
    background-color: canvas;
    align-content: center;
    margin-bottom: 0.5rem;
    margin-top:auto;
    width: 50%;
    height:7%;
}

.inner-dnd-panel {
    outline: 2.5pt solid black;
    border-radius: 0 0 5pt 5pt;
    border-color: dimgrey;
    background-color: canvas;
    align-items: center;
}

.dnd-node-container {
    background-color: canvas;
    justify-content: center;
}

/* Node Styles */

:global(.react-flow__node.selected) {
    outline: 1px dashed blue !important;
    border-radius: 5pt;
    outline-offset: 4px;
}

.default-node {
    padding: 10px 15px;
    background-color: canvas;
    border-radius: 5pt;
    outline: black solid 2pt;
    filter: drop-shadow(0 0 0.75rem black);
}



.node-norm {
    outline: rgb(0, 149, 25) solid 2pt;
    filter: drop-shadow(0 0 0.25rem forestgreen);
}

.node-goal {
    outline: yellow solid 2pt;
    filter: drop-shadow(0 0 0.25rem yellow);
}

.node-trigger {
    outline: teal solid 2pt;
    filter: drop-shadow(0 0 0.25rem teal);
}

.node-phase {
    outline: dodgerblue solid 2pt;
    filter: drop-shadow(0 0 0.25rem dodgerblue);
}

.node-start {
    outline: orange solid 2pt;
    filter: drop-shadow(0 0 0.25rem orange);
}

.node-end {
    outline: red solid 2pt;
    filter: drop-shadow(0 0 0.25rem red);
}

.node-basic_belief {
    outline: plum solid 2pt;
    filter: drop-shadow(0 0 0.25rem plum);
}

.node-inferred_belief {
    outline: mediumpurple solid 2pt;
    filter: drop-shadow(0 0 0.25rem mediumpurple);
}

.draggable-node {
    padding: 3px 10px;
    background-color: canvas;
    border-radius: 5pt;
    cursor: move;
    outline: black solid 2pt;
    filter: drop-shadow(0 0 0.75rem black);
}

.draggable-node-norm {
    padding: 3px 10px;
    background-color: canvas;
    border-radius: 5pt;
    cursor: move;
    outline: forestgreen solid 2pt;
    filter: drop-shadow(0 0 0.25rem forestgreen);
}

.draggable-node-goal {
    padding: 3px 10px;
    background-color: canvas;
    border-radius: 5pt;
    cursor: move;
    outline: yellow solid 2pt;
    filter: drop-shadow(0 0 0.25rem yellow);
}

.draggable-node-trigger {
    padding: 3px 10px;
    background-color: canvas;
    border-radius: 5pt;
    cursor: move;
    outline: teal solid 2pt;
    filter: drop-shadow(0 0 0.25rem teal);
}

.draggable-node-phase {
    padding: 3px 10px;
    background-color: canvas;
    border-radius: 5pt;
    cursor: move;
    outline: dodgerblue solid 2pt;
    filter: drop-shadow(0 0 0.25rem dodgerblue);
}

.draggable-node-start {
    padding: 3px 10px;
    background-color: canvas;
    border-radius: 5pt;
    cursor: move;
    outline: orange solid 2pt;
    filter: drop-shadow(0 0 0.25rem orange);
}

.draggable-node-end {
    padding: 3px 10px;
    background-color: canvas;
    border-radius: 5pt;
    cursor: move;
    outline: red solid 2pt;
    filter: drop-shadow(0 0 0.25rem red);
}

.draggable-node-basic_belief {
    padding: 3px 10px;
    background-color: canvas;
    border-radius: 5pt;
    cursor: move;
    outline: plum solid 2pt;
    filter: drop-shadow(0 0 0.25rem plum);
}

.draggable-node-inferred_belief {
    padding: 3px 10px;
    background-color: canvas;
    border-radius: 5pt;
    outline: mediumpurple solid 2pt;
    filter: drop-shadow(0 0 0.25rem mediumpurple);
}

.planNoIterate {
  opacity: 0.5;
  font-style: italic;
  text-decoration: line-through;
}

.bottomLeftHandle {
  left: 40% !important;
}

.bottomRightHandle {
  left: 60% !important;
}

.planNoIterate {
  opacity: 0.5;
  font-style: italic;
  text-decoration: line-through;
}
.backButton {
  background: var(--bg-surface);
  box-shadow: var(--panel-shadow);
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.node-toolbar-tooltip {
    background-color: darkgray;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: sans-serif;
    font-weight: bold;
    cursor: help;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.custom-tooltip {
    pointer-events: none;
    background-color: Canvas;
    color: CanvasText;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    outline: CanvasText solid 2px;
    font-size: 14px;
    filter: drop-shadow(0 0 0.25rem CanvasText);
    white-space: nowrap;
    position: relative;
    animation: fadeIn 0.2s ease-out;
}

.custom-tooltip-header {
    pointer-events: none;
    background-color: CanvasText;
    color: Canvas;
    padding: 8px 12px;
    border-radius: 6px 0 0 6px;
    outline: CanvasText solid 2px;
    font-size: 14px;
    font-weight: bold;
    font-variant-caps: small-caps;
    filter: drop-shadow(0 0 0.25rem CanvasText);
    white-space: nowrap;
    position: relative;
    animation: fadeIn 0.2s ease-out;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}