/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Turbo Frame animations */
turbo-frame {
  display: block;
}

/* Smooth transitions for Turbo */
.turbo-progress-bar {
  background-color: #1d6f42;
  height: 3px;
}

/* Fade in animation for new content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply fade-in to turbo frames */
turbo-frame[complete] {
  animation: fadeIn 0.3s ease-in-out;
}

/* Loading state styles */
[data-turbo-submitting] {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth height transitions */
.transition-height {
  transition: height 0.3s ease-in-out;
}

/* Progress bar smooth animation */
.progress-bar-transition {
  transition: width 0.5s ease-in-out;
}
