/* WebSocket Status Indicator */
.websocket-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

.status-dot.disconnected {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: none;
}

.status-dot.reconnecting {
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
    animation: pulse 1s infinite;
}

.status-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Server Stats Display */
.server-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.server-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.95rem;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4ade80;
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.1), rgba(0, 0, 0, 0.9));
}

.notification-info {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(0, 0, 0, 0.9));
}

.notification-update {
    border-left: 4px solid #a855f7;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), rgba(0, 0, 0, 0.9));
}

.notification-error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), rgba(0, 0, 0, 0.9));
}

/* Rank Update Animation */
.rank-updated {
    animation: rankUpdate 3s ease;
}

@keyframes rankUpdate {
    0% {
        background: rgba(168, 85, 247, 0);
    }
    20% {
        background: rgba(168, 85, 247, 0.3);
        transform: scale(1.02);
    }
    100% {
        background: rgba(168, 85, 247, 0);
        transform: scale(1);
    }
}

/* Live Update Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: livePulse 2s infinite;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: liveDot 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes liveDot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .websocket-status {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .server-stats {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 5px;
    }
}