/* ======================================
   GLOBAL ACTIVITY NOTIFICATIONS
   ====================================== */

#global-activity-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

.global-activity-notification {
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.95), rgba(25, 25, 35, 0.95));
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 255, 157, 0.1) inset,
        0 4px 16px rgba(0, 255, 157, 0.15);
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.global-activity-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.05), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.global-activity-notification:hover {
    transform: translateX(-4px);
    border-color: rgba(0, 255, 157, 0.4);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 255, 157, 0.2) inset,
        0 6px 24px rgba(0, 255, 157, 0.25);
}

.global-activity-notification.fade-out {
    animation: fadeOutRight 0.3s ease-out forwards;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.activity-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.5));
}

.activity-item {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-bright);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 70, 229, 0.1);
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.activity-user {
    font-weight: 800 !important;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.activity-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-message {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    font-weight: 500;
}

.activity-location {
    font-weight: 700 !important;
    color: var(--accent-bright);
    text-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

.activity-query {
    font-family: var(--font-mono);
    font-weight: 700 !important;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.activity-action {
    color: #a855f7;
    font-weight: 600;
}

.activity-timestamp {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 6px;
    font-family: var(--font-mono);
    opacity: 0.7;
}

.activity-time {
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 600;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #global-activity-container {
        right: 12px;
        bottom: 12px;
        width: 280px;
    }
}