html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Manrope, Inter, sans-serif;
}

/* Foco visível só na navegação pelo teclado, na cor da marca */
:focus-visible {
  outline: 2px solid #009B6B;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.bg-light {
  --tw-bg-opacity: 1;
  background: linear-gradient(90deg, #F6F9F7 10%, #F1F7F3 74%, #EAF5EF 100%);
}

.dark\:bg-dark:is(.dark *) {
  --tw-bg-opacity: 1;
  background: linear-gradient(90deg, #071B22 10%, #0D292E 74%, #071B22 100%);
}

.text-purple {
  color: #009B6B;
}

.bg-purple {
  background-color: #009B6B;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.fade-in {
  animation: fade-in 0.6s;
}

.flowchart-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#flowchart {
  transform-origin: 0 0;
  transform: translate(0, 0);
  width: 10000px;
  height: 10000px;
  cursor: move;
}

#area-flowchart {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
}

.zoom-scale {
  transform-origin: 0 0;
  transition: transform 0.2s;
  position: absolute;
  width: 100%;
  height: 100%;
}

.flowchart {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
}

.node {
  background-color: #009B6B14;
  padding: 20px;
  border: 1px solid #63E0A8;
  border-radius: 14px;
  width: 300px;
  text-align: center;
  cursor: grab;
}

.main-trigger {
  background-color: #009B6B;
  padding: 20px;
  border-radius: 14px;
  width: 330px;
  text-align: center;
  cursor: grab;
}

.connector {
  width: 12px;
  height: 12px;
  background-color: rgb(128, 128, 128);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: -7px; /* Posicionar à direita */
  transform: translateY(-50%);
  cursor: pointer;
}

.jtk-connector > path {
  stroke: #009B6B
}

.observation-node {
  min-width: 100px;
  max-width: 300px;
  word-wrap: break-word;
  color: #333;
  font-size: 14px;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Radio e checkbox nunca encolhem numa linha flex: sem espaço, ficavam achatados */
input[type="radio"],
input[type="checkbox"] {
  flex-shrink: 0;
}
