@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.skeleton {
  background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
  background-size: 800px 104px;
  animation: shimmer 1.25s linear infinite forwards;
}

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.flex.flex-col.items-center.justify-center.mb-6 {
  position: relative;
  z-index: 1;
}

.toast {
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translateX(120%);
  opacity: 0;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(120%);
  opacity: 0;
}

.progress-rect {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: border-shrink 5s linear forwards;
}

@keyframes border-shrink {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 100; }
}

.notification-slide-out {
  overflow: hidden;
  max-height: 100px;
  opacity: 1;
  transition: all 0.4s ease-in-out;
}

.notification-slide-out.slide-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
}

/* --- Syntax Highlighter Editor Feel --- */
.ql-syntax {
    background-color: #282c34 !important; /* The Atom One Dark background */
    color: #abb2bf !important;            /* Light gray text */
    padding: 1.25rem !important;
    border-radius: 0.75rem !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin: 1rem 0 !important;
    overflow-x: auto !important;          /* Add a scrollbar if the code is too wide */
    border: 1px solid #181a1f !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Make sure the text inside stays the right color */
.ql-syntax span {
    font-family: inherit !important;
}
