.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
    pointer-events: none;
  }
  
  .custom-popup.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
    pointer-events: auto;
  }
  
  .popup-content {
    position: relative;
    background-color: #333;
    color: white;
    border-radius: 4px;
    padding: 12px 16px;
    z-index: 1;
    transform-origin: top center;
    margin-top: 16px;
    text-align: center;
    font-size: 0.9rem;
    max-width: 280px;
  }
  
  .popup-content.error {
    background-color: #FF3B5C;
  }
  
  .popup-content.success {
    background-color: #10B981;
  }
  
  .popup-content.warning {
    background-color: #F59E0B;
  }
  
  .popup-content.info {
    background-color: #3B82F6;
  }
  
  @keyframes popIn {
    0% {
      transform: translateY(-50px);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes popOut {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(-50px);
      opacity: 0;
    }
  }
  
  @media (max-width: 640px) {
    .popup-content {
      width: 90%;
      font-size: 0.85rem;
      padding: 10px 14px;
    }
  }