/*
 * 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 admin-trade-warning-pulse {
  0%, 100% {
    background-color: #991b1b;
    box-shadow: 0 0 4px rgba(127, 29, 29, 0.25);
  }

  50% {
    background-color: #ef4444;
    box-shadow:
      0 0 30px rgba(239, 68, 68, 0.95),
      0 0 54px rgba(239, 68, 68, 0.65);
  }
}

.admin-trade-warning {
  animation: admin-trade-warning-pulse 0.9s ease-in-out infinite;
  background-color: #991b1b !important;
  color: #fff !important;
}

/* Critical lightbox layout lives outside Tailwind so the overlay remains
 * fullscreen even when a local Tailwind watch/build has not picked up newly
 * added utility classes yet. */
.lead-lightbox-overlay {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.9);
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.lead-lightbox-overlay.hidden {
  display: none;
}

.lead-lightbox-frame {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
  width: 100%;
}

.lead-lightbox-close {
  color: #fff;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1020;
}

.lead-lightbox-image {
  max-height: 90vh;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1010;
}

@media (prefers-color-scheme: dark) {
  .admin-trade-warning {
    animation-name: admin-trade-warning-pulse;
    background-color: #991b1b !important;
    border-color: #fca5a5 !important;
  }
}
