@import url("/assets/actiontext-df6bcb12.css");

trix-editor {
  background: white;
}

/* Loading spinner container */
turbo-frame.with-loader {
  position: relative;
}

/* The spinner */
turbo-frame.with-loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #09f;
  animation: spinner .6s linear infinite;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Show spinner when frame is busy */
turbo-frame.with-loader[busy]::after {
  visibility: visible;
  opacity: 1;
}

/* Dim content when loading */
turbo-frame.with-loader[busy] {
  opacity: 0.7;
}

.tooltip:hover .tooltip-text {
  display: block;
  left: 150%; /* Adjust this value based on your layout */
  bottom: 100%; /* Adjust based on icon position */
  margin-left: -60px; /* Centers the tooltip */
}

.tooltip .tooltip-text {
  transition: opacity 0.3s;
}

label:has(+ input:required):after {
  content: ' *';
  color: red;
}
