.toast { position: fixed !important; top: 20px; right: 20px; padding: 10px 20px; margin: 5px; border-radius: 15px; color: white; font-weight: bold; z-index: 9999; border: 1px solid #ffffff1a; transition: right 0.3s ease-in-out; animation: fadeIn 2s ease; display: flex; justify-content: space-between; align-items: center; overflow: hidden; } .toast.success { background-color: #000000bf; backdrop-filter: blur(10px); } .toast.error { background-color: #000000bf; backdrop-filter: blur(10px); } .toast a { margin-left: 5px; display: inline-block; } .toast i { margin-right: 8px; } .toast.show { animation: slideIn 0.3s forwards; } .toast.hide { animation: slideOut 0.3s forwards; } .toast .progress-bar { position: absolute; bottom: 0; left: 0; height: 4px; background-color: #ffffff; width: 100%; border-radius: 20px; animation: progress 3s linear forwards; } .toast .toast-close { background: none; border: none; color: #888888; font-size: 18px; cursor: pointer; padding: 0; margin-left: 10px; transition: 0.3s; } .toast-close:hover { color: #ffffff; } @keyframes slideIn { 0% { right: -300px; } 100% { right: 20px; } } @keyframes slideOut { 0% { right: 20px; } 100% { right: -1000px; } } @keyframes progress { 0% { width: 100%; } 100% { width: 0%; } }