/* Kerjakode Online Users Widget - Compact & Bottom Right */
.kk-online-widget {
    position: fixed;
    bottom: 110px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.92) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25), 0 3px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 999998;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideInFromBottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kk-online-widget:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35), 0 5px 14px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation */
.kk-online-pulse {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Icon */
.kk-online-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.kk-online-icon svg {
    width: 14px;
    height: 14px;
}

/* Content */
.kk-online-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: white;
}

.kk-online-count {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.kk-online-label {
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Number Change Animation */
.kk-online-count.kk-count-change {
    animation: numberPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet */
    .kk-online-widget {
        bottom: 105px;
        right: 18px;
    }
}

@media (max-width: 768px) {
    .kk-online-widget {
        bottom: 85px;
        right: 12px;
        padding: 6px 11px;
        gap: 6px;
    }
    
    .kk-online-pulse {
        left: 6px;
        width: 7px;
        height: 7px;
    }
    
    .kk-online-icon {
        width: 24px;
        height: 24px;
    }
    
    .kk-online-icon svg {
        width: 13px;
        height: 13px;
    }
    
    .kk-online-count {
        font-size: 14px;
    }
    
    .kk-online-label {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .kk-online-widget {
        bottom: 80px;
        right: 10px;
        padding: 6px 10px;
        gap: 6px;
    }
    
    .kk-online-icon {
        width: 22px;
        height: 22px;
    }
    
    .kk-online-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .kk-online-count {
        font-size: 13px;
    }
    
    .kk-online-label {
        font-size: 8px;
    }
}

/* Shine Effect */
.kk-online-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    border-radius: 50px;
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}
