/* 在线用户列表样式 */

.online-users-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 10px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.online-users-container.visible {
    transform: translateX(0);
}

.online-users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.online-users-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.toggle-online-users {
    position: fixed;
    left: 10px;
    top: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 1001;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-online-users:hover {
    background-color: #45a049;
}

.online-user-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.online-user-item:last-child {
    border-bottom: none;
}

.online-user-ip {
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 3px;
}

.online-user-browser {
    color: #666;
    font-size: 12px;
}

.online-user-time {
    color: #999;
    font-size: 11px;
    margin-top: 3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .online-users-container {
        width: 200px;
    }
    
    .toggle-online-users {
        left: 5px;
        top: 5px;
        padding: 6px 10px;
        font-size: 12px;
    }
}