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

/* Feed Configuration Details/Summary Styling */
details[open] summary i.ph-caret-down {
  transform: rotate(180deg);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  display: none;
}

details summary {
  list-style: none;
}

/* Flash Message Auto-Dismiss Animation */
@keyframes flashFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
    position: relative;
  }
  85% {
    opacity: 1;
    transform: translateY(0);
    position: relative;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px);
    position: absolute;
    pointer-events: none;
  }
}

.flash-message {
  animation: flashFadeOut 5s ease-in-out forwards;
}

/* Field row styling based on validation errors */
.field-row:has([id$="-errors"] .text-red-700) {
  border-color: rgb(252 165 165) !important;
  background-color: rgb(254 242 242 / 0.5) !important;
}
