/*
 * 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.
 */

@keyframes pulse-running {
  0%, 100% {
    background: rgba(34, 197, 94, 0.3);
  }
  50% {
    background: rgba(34, 197, 94, 0.8);
  }
}

.app-running {
  animation: pulse-running 1.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

.operation-succeeded{
  animation: pulse-running 1.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

.app-completed {
}


/* Status dot indicators */
.status-dot-running {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3), 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-dot-completed {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  background: #94a3b8;
  border-radius: 50%;
  opacity: 0.6;
}

/* Compact button variant */
.button-compact {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

/* Turbo Frame transitions for raider facts results */
turbo-frame#raider_facts_results {
  display: block;
}

#raider_facts {
  transition: opacity 0.2s ease-in-out;
}

turbo-frame#raider_facts_results[busy] #raider_facts {
  opacity: 0.8;
}

turbo-frame#raider_facts_results[complete] #raider_facts {
  animation: fadeIn 0.2s ease-in-out;
}

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