/* Toast Container */
.toast-box {
    position: fixed;
    bottom: 90px;
    
    /* ✅ CHANGED: Now anchored to the right side */
    right: 20px; 
    
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 5px solid #6c5ce7;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Segoe UI', sans-serif;
    z-index: 1000;
    max-width: 350px;

    /* Animation Initial State */
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* The Active State (Visible) */
.toast-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
/* Typography Styling */
.toast-icon {
    font-size: 24px;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-header {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.toast-header .user-name {
    color: #6c5ce7;
}

.toast-body {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #666;
}
@media (max-width: 480px) {
    .toast-box {
        right: auto; /* Reset right positioning */
        left: 50%;   /* Center it */
        transform: translateX(-50%) translateY(50px);
        width: 90%;
        bottom: 10px;
    }
    
    .toast-box.active {
        transform: translateX(-50%) translateY(0);
    }
}

/* Add this if you don't have it already to color the names inside the JS strings */
.user-name {
    color: #6c5ce7; /* Purple accent */
    font-weight: bold;
}