.flash-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .flash {
    min-width: 260px;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    color: var(--stay-white);
    animation: flash-slide-in 0.18s ease-out;
  }
  
  .flash-error {
    background-color: #b91c1c;    /* red-700 */
  }
  
  .flash-success {
    background-color: #15803d;    /* green-700 */
  }
  
  /* you can also support "info" and "warning" later if you want */
  .flash-info {
    background-color: #1d4ed8;
  }
  
  .flash-warning {
    background-color: #b45309;
  }
  
  .flash-message {
    flex: 1 1 auto;
  }
  
  .flash-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
  }
  
  /* Tiny slide-in animation */
  @keyframes flash-slide-in {
    from {
      transform: translateY(-6px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  