/* In your CSS file (e.g., app/assets/stylesheets/application.css) */

.flash-container {
    z-index: 1050; /* Higher than default Bootstrap navbar z-index */
    pointer-events: none; /* Allow clicks to pass through the container */
    max-width: 600px;
    margin: 0 auto;
  }
  
  .flash-message {
    pointer-events: auto; /* Re-enable clicks on the actual messages */
    margin-bottom: 10px;
    border-radius: 8px;
    opacity: 0.95;
    transition: all 0.3s ease;
  }
  
  .flash-message.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
  }
  
  .alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
  }
  
  .alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
  }
  
  .alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 4px solid #ffc107;
  }
  
  .alert-info {
    background-color: #cff4fc;
    color: #055160;
    border-left: 4px solid #0dcaf0;
  }
  
  @keyframes slideInDown {
    from {
      transform: translate3d(0, -20px, 0);
      opacity: 0;
    }
    to {
      transform: translate3d(0, 0, 0);
      opacity: 0.95;
    }
  }
  
  .flash-message {
    animation: slideInDown 0.3s forwards;
  }