/* === FLASH MESSAGE WRAPPER === */
.custom-flash-wrapper {
  margin-bottom: 20px;
  text-align: center;
}


/* === FLASH BOX (Raised White) === */
.custom-flash {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: Inter, sans-serif;
  font-size: 15px;

  background: #ffffff;
  color: #192231;

  border: 2px solid #f0f0f0;
  border-bottom: 4px solid #e5e5e5;
  border-left: 4px solid #e5e5e5; /* preserved accent style */

  margin: 14px auto;
  max-width: 92%;

  opacity: 0;
  animation: flashFadeIn 0.35s ease-out forwards;

  position: relative;
  pointer-events: auto !important;
  z-index: 99999;
}


/* === ERROR STYLE === */
.custom-flash.error {
  border-left-color: #ff5c5c;
  color: #ff5c5c;
  font-weight: 600;
}


/* === SUCCESS STYLE === */
.custom-flash.success {
  border-left-color: #2fa764;
  color: #2fa764;
  font-weight: 600;
}


/* === Entrance animation only === */
@keyframes flashFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* === Exit animation === */
@keyframes flashFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Add this class when fading out */
.custom-flash.fade-out {
  animation: flashFadeOut 0.35s ease-out forwards;
}
