/* Smooth HTMX transitions */
.htmx-settling {
  opacity: 0.8;
}
.htmx-swapping {
  opacity: 0.5;
  transition: opacity 0.15s ease-out;
}
.htmx-added {
  opacity: 0;
}
.htmx-added.htmx-settling {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

/* Inline edit highlight */
.inline-edit:focus-within {
  outline: 2px solid #4170ed;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Toast notification */
.toast {
  animation: toast-in 0.3s ease-out, toast-out 0.3s ease-in 2.7s forwards;
}
@keyframes toast-in {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toast-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
