/* Toast Notification - Modern Design */

/* Toast container */
.toast {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}

/* Toast box */
.toast.toast-success, .toast.toast-error {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    min-width: 280px;
    max-width: 350px;
    background-color: #0d1117;
    opacity: 1 !important;
    color: #fff;
    padding: 20px 20px 20px 60px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    animation: toast-slide-in 0.4s ease, fade-out 0.4s ease forwards;
    animation-delay: 0s, 4.5s;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Electric Arc */
.toast.toast-success .electric-arc, .toast.toast-error .electric-arc{
    width: 300px;
    height: 2px;
    background: linear-gradient(to right, #00ffab, #33ffc4, #00ffab);
    animation: arcFlash 0.3s ease-out;
    box-shadow: 0 0 12px #00ffab;
    margin-bottom: 12px;
}

/* Toast title */
.toast-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: 0.2px;
}

/* Toast message */
.toast-message {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: #ccc;
    letter-spacing: 0.3px;
}

/* Floating Text */
.floating-text {
    text-align: center;
    margin-top: 20px;
    animation: floatIn 0.6s ease-out, fadeOut 2.5s ease-in 4s forwards;
    color: #00ffab;
    text-shadow: 0 0 10px #00ffab;
}

.floating-text span {
    font-size: 14px;
    display: block;
}

.floating-text strong {
    font-size: 14px;
    display: block;
    font-weight: 600;
}

/* Dollar Floating Effect */
.dollar-float {
    position: absolute;
    font-size: 24px;
    color: #00ffab;
    opacity: 0.5;
    animation: floatDollar 3s ease-out infinite;
    left: calc(50% + 20px);
    top: 10px;
}

.delay-1 {
    animation-delay: 0.5s;
    left: calc(50% - 40px);
}

.delay-2 {
    animation-delay: 1s;
    left: calc(50% + 80px);
}

/* Close button */
.toast-close-button {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.toast-close-button:hover {
    color: #fff;
}

/* Animations */

/* Arc Flash Animation */
@keyframes arcFlash {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        width: 300px;
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Slide In */
@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade Out */
@keyframes fade-out {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Dollar Floating Animation */
@keyframes floatDollar {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-80px);
        opacity: 0;
    }
}
