/* Turbo-specific styles */

/* Progress bar customization */
.turbo-progress-bar {
  height: 3px;
  background-color: #22c55e;
}

/* Flash messages */
#flash-messages {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  pointer-events: none;
}

.flash-notice,
.flash-error,
.flash-alert {
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  animation: slideDown 0.3s ease-out;
}

.flash-notice {
  background-color: #22c55e;
  color: white;
}

.flash-error {
  background-color: #ef4444;
  color: white;
}

.flash-alert {
  background-color: #f59e0b;
  color: white;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading states */
.hidden {
  display: none;
}

.opacity-50 {
  opacity: 0.5;
}

/* Turbo Frame loading indicator */
turbo-frame[busy] {
  opacity: 0.6;
  pointer-events: none;
}

/* Form submission states */
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
