.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 90%; /* Prevent it from being too wide */
    white-space: nowrap; /* Prevent text from wrapping */
  }
  
  .notification.show {
    opacity: 1;
    z-index: 9999;
    visibility: visible;
  }
  
  /* Success and error styles */
  .notification.success {
    background-color: #4CAF50; /* Green for success */
  }
  
  .notification.error {
    background-color: #f44336; /* Red for error */
  }

  .loading-btn {
    position: relative;
    padding: 10px 20px;
    font-size: 16px;
    cursor: not-allowed;
    pointer-events: none;
    color: transparent; /* Hide the text */
  }
  
  .loading-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid #fff;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }