/* Live Feed Styling for SSE Updates */

.psa-feed-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.psa-feed-item:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

.psa-feed-item.psa-feed-session {
    background-color: rgba(34, 197, 94, 0.03);
}

.psa-feed-item.psa-feed-turn {
    background-color: rgba(99, 102, 241, 0.02);
}

.psa-feed-item.psa-feed-alert {
    background-color: rgba(239, 68, 68, 0.05);
}

.psa-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.psa-feed-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.psa-feed-badge.psa-critical {
    background-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.psa-feed-time {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

.psa-feed-content {
    font-size: 12px;
    color: var(--text-primary);
}

.psa-feed-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.psa-feed-content small {
    display: block;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: monospace;
}

.psa-empty-state {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
}

.psa-error {
    padding: 16px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    font-size: 12px;
    text-align: center;
}

/* Pulse animation for new items */
.psa-feed-item.new {
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        background-color: rgba(99, 102, 241, 0.2);
    }
    100% {
        background-color: transparent;
    }
}
