/* ===========================================
   Live Activity Toast Notifications
   =========================================== */

#toast-container {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 320px;
}

.activity-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-left: 4px solid var(--primary, #6366f1);
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
    padding: 12px 16px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
    max-width: 320px;
}

.activity-toast.toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.activity-toast.toast-hide {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
}

.activity-toast .toast-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary, linear-gradient(135deg, #6366f1, #8b5cf6));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.activity-toast .toast-body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.activity-toast .toast-title {
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}

.activity-toast .toast-title .toast-name {
    color: var(--primary, #6366f1);
}

.activity-toast .toast-meta {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.activity-toast .toast-meta i {
    color: var(--success, #10b981);
    font-size: 0.6rem;
}

.activity-toast .toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.activity-toast .toast-close:hover {
    color: var(--text-primary, #0f172a);
}

@media (max-width: 480px) {
    #toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    .activity-toast {
        max-width: none;
    }
}
